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('Populating Questions with mail keys...')."\n"; $table = new PonderQuestio..
Decoded Output download
<?php
echo pht('Populating Questions with mail keys...')."
";
$table = new PonderQuestion();
$table->openTransaction();
foreach (new LiskMigrationIterator($table) as $question) {
$id = $question->getID();
echo pht('Question %d: ', $id);
if (!$question->getMailKey()) {
queryfx(
$question->establishConnection('w'),
'UPDATE %T SET mailKey = %s WHERE id = %d',
$question->getTableName(),
Filesystem::readRandomCharacters(20),
$id);
echo pht('Generated Key')."
";
} else {
echo "-
";
}
}
$table->saveTransaction();
echo pht('Done.')."
";
?>
Did this file decode correctly?
Original Code
<?php
echo pht('Populating Questions with mail keys...')."\n";
$table = new PonderQuestion();
$table->openTransaction();
foreach (new LiskMigrationIterator($table) as $question) {
$id = $question->getID();
echo pht('Question %d: ', $id);
if (!$question->getMailKey()) {
queryfx(
$question->establishConnection('w'),
'UPDATE %T SET mailKey = %s WHERE id = %d',
$question->getTableName(),
Filesystem::readRandomCharacters(20),
$id);
echo pht('Generated Key')."\n";
} else {
echo "-\n";
}
}
$table->saveTransaction();
echo pht('Done.')."\n";
Function Calls
pht | 1 |
Stats
MD5 | 2935e51542bb5cde731feb85dbb90e0c |
Eval Count | 0 |
Decode Time | 97 ms |