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('Adding secretkeys to legalpad document signatures.')."\n"; $table = new ..

Decoded Output download

<?php

echo pht('Adding secretkeys to legalpad document signatures.')."
";

$table = new LegalpadDocumentSignature();
$conn_w = $table->establishConnection('w');
$iterator = new LiskMigrationIterator($table);
foreach ($iterator as $sig) {
  $id = $sig->getID();

  echo pht('Populating signature %d...', $id)."
";

  if (!$sig->getSecretKey()) {
    queryfx(
      $conn_w,
      'UPDATE %T SET secretKey = %s WHERE id = %d',
      $table->getTableName(),
      Filesystem::readRandomCharacters(20),
      $id);
  }
}

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

Did this file decode correctly?

Original Code

<?php

echo pht('Adding secretkeys to legalpad document signatures.')."\n";

$table = new LegalpadDocumentSignature();
$conn_w = $table->establishConnection('w');
$iterator = new LiskMigrationIterator($table);
foreach ($iterator as $sig) {
  $id = $sig->getID();

  echo pht('Populating signature %d...', $id)."\n";

  if (!$sig->getSecretKey()) {
    queryfx(
      $conn_w,
      'UPDATE %T SET secretKey = %s WHERE id = %d',
      $table->getTableName(),
      Filesystem::readRandomCharacters(20),
      $id);
  }
}

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

Function Calls

pht 1

Variables

None

Stats

MD5 82d729fda788ef04a22c1e10780379f6
Eval Count 0
Decode Time 73 ms