Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php $table = new ManiphestTransaction(); $conn_w = $table->establishConnection('w'); e..

Decoded Output download

<?php

$table = new ManiphestTransaction();
$conn_w = $table->establishConnection('w');

echo pht(
  "Converting Maniphest CC transactions to modern ".
  "subscriber transactions...
");
foreach (new LiskMigrationIterator($table) as $txn) {
  // ManiphestTransaction::TYPE_CCS
  if ($txn->getTransactionType() == 'ccs') {
    queryfx(
      $conn_w,
      'UPDATE %T SET transactionType = %s WHERE id = %d',
      $table->getTableName(),
      PhabricatorTransactions::TYPE_SUBSCRIBERS,
      $txn->getID());
  }
}

echo pht('Done.')."
";
 ?>

Did this file decode correctly?

Original Code

<?php

$table = new ManiphestTransaction();
$conn_w = $table->establishConnection('w');

echo pht(
  "Converting Maniphest CC transactions to modern ".
  "subscriber transactions...\n");
foreach (new LiskMigrationIterator($table) as $txn) {
  // ManiphestTransaction::TYPE_CCS
  if ($txn->getTransactionType() == 'ccs') {
    queryfx(
      $conn_w,
      'UPDATE %T SET transactionType = %s WHERE id = %d',
      $table->getTableName(),
      PhabricatorTransactions::TYPE_SUBSCRIBERS,
      $txn->getID());
  }
}

echo pht('Done.')."\n";

Function Calls

None

Variables

None

Stats

MD5 c78e7e085a670f06649aa27043950618
Eval Count 0
Decode Time 93 ms