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 $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1; // Check user..
Decoded Output download
<?php
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Check user to ensure they are admin
if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
header("HTTP/1.1 404 Page not found");
die("404 Page not found");
}
if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
$debug->append('No cached version available, fetching from backend', 3);
if (isset($_REQUEST['id']) && !empty($_REQUEST['id'])) {
$aTransactionSummary = $transaction->getTransactionSummary($_REQUEST['id']);
$aTransactionSummaryByTime = $transaction->getTransactionTypebyTime($_REQUEST['id']);
$smarty->assign('USERNAME', $user->getUsername($_REQUEST['id']));
$smarty->assign('SUMMARY', $aTransactionSummary);
$smarty->assign('BYTIME', $aTransactionSummaryByTime);
}
} else {
$debug->append('Using cached page', 3);
}
$smarty->assign('CONTENT', 'default.tpl');
?>
Did this file decode correctly?
Original Code
<?php
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Check user to ensure they are admin
if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
header("HTTP/1.1 404 Page not found");
die("404 Page not found");
}
if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
$debug->append('No cached version available, fetching from backend', 3);
if (isset($_REQUEST['id']) && !empty($_REQUEST['id'])) {
$aTransactionSummary = $transaction->getTransactionSummary($_REQUEST['id']);
$aTransactionSummaryByTime = $transaction->getTransactionTypebyTime($_REQUEST['id']);
$smarty->assign('USERNAME', $user->getUsername($_REQUEST['id']));
$smarty->assign('SUMMARY', $aTransactionSummary);
$smarty->assign('BYTIME', $aTransactionSummaryByTime);
}
} else {
$debug->append('Using cached page', 3);
}
$smarty->assign('CONTENT', 'default.tpl');
Function Calls
cfip | 1 |
Stats
MD5 | 87bda4223998f9eec928bc04105d5fdf |
Eval Count | 0 |
Decode Time | 89 ms |