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 echo pht('Giving Pholio images PHIDs'); $table = new PholioImage(); $table->openTra..

Decoded Output download

<?php

echo pht('Giving Pholio images PHIDs');
$table = new PholioImage();
$table->openTransaction();

foreach (new LiskMigrationIterator($table) as $image) {
  if ($image->getPHID()) {
    continue;
  }

  echo '.';

  queryfx(
    $image->establishConnection('w'),
    'UPDATE %T SET phid = %s WHERE id = %d',
    $image->getTableName(),
    $image->generatePHID(),
    $image->getID());
}

$table->saveTransaction();
echo "
".pht('Done.')."
";
 ?>

Did this file decode correctly?

Original Code

<?php

echo pht('Giving Pholio images PHIDs');
$table = new PholioImage();
$table->openTransaction();

foreach (new LiskMigrationIterator($table) as $image) {
  if ($image->getPHID()) {
    continue;
  }

  echo '.';

  queryfx(
    $image->establishConnection('w'),
    'UPDATE %T SET phid = %s WHERE id = %d',
    $image->getTableName(),
    $image->generatePHID(),
    $image->getID());
}

$table->saveTransaction();
echo "\n".pht('Done.')."\n";

Function Calls

pht 1

Variables

None

Stats

MD5 02000db82a84964e29d290fccc9043c9
Eval Count 0
Decode Time 82 ms