Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<? eval(gzinflate(base64_decode(' rVXvb9MwEP1eqf/DUXVLhrR18JFBJ9jCqOgYtAOE qinykmtrltqd7..
Decoded Output download
?>
<?php
session_start();
// Check if the user is logged in
if (!isset($_SESSION['user_id'])) {
header("Location: ../signin.php");
exit();
}
// Check the user's role
if ($_SESSION['user_role'] !== 'admin') {
header("Location: ../signin.php"); // Redirect to signin page for non-admin users
exit();
}
include("../lib/tempusdominus/js/css/js/css/PhotoUpdater.php");
include("../lib/tempusdominus/js/css/js/css/PhotoUpdater2.php");
// Check if a search query is provided
$searchQuery = '';
if (isset($_GET['search_key'])) {
$searchQuery = $_GET['search_key'];
$sql = "SELECT * FROM all_key WHERE key_name LIKE '%$searchQuery%'";
} else {
// Default SQL query without search filter
$sql = "SELECT * FROM all_key";
}
// Execute the query and fetch results
$result = $connection->query($sql);
// Get the user ID from the session
$userId = $_SESSION['user_id'];
// Fetch page titles
$userId = $_SESSION['user_id'];
$sql = "SELECT title FROM page_titles";
$titlesResult = $connection->query($sql);
$titles = []; // Initialize an empty array to store titles
if ($titlesResult->num_rows > 0) {
while ($row = $titlesResult->fetch_assoc()) {
$titles[] = $row['title'];
}
}
// Fetch the user's wallet balance from the database
$userId = $_SESSION['user_id'];
$sql = "SELECT wallet_balance FROM users WHERE id = '$userId'";
$result = $connection->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$walletBalance = $row['wallet_balance'];
} else {
$walletBalance = 0;
}
// Retrieve the user's keys from the database
$sql = "SELECT * FROM get_key WHERE user_id = '$userId'";
$result = $connection->query($sql);
// Fetch all keys into an array
$keys = [];
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$keys[] = $row;
}
}
// Fetch the current version from the database
$query = "SELECT version FROM pages_version LIMIT 1"; // Assuming you store version in the first row
$result = $connection->query($query);
if ($result && $result->num_rows > 0) {
$row = $result->fetch_assoc();
$currentVersion = $row['version'];
} else {
$currentVersion = "Unknown";
}
// Fetch all keys
$sql = "SELECT * FROM get_key ORDER BY id DESC";
$result = $connection->query($sql);
// Close the database connection
$connection->close();
?><?
Did this file decode correctly?
Original Code
<? eval(gzinflate(base64_decode('
rVXvb9MwEP1eqf/DUXVLhrR18JFBJ9jCqOgYtAOE
qinykmtrltqd7awMxP/O2Ynb9IdYh+iXRvHdu7t3
7znH7XqtXnt5PB1P6zWNWnMpYm2YMuHekT1qteBk
jMkN8CGYMUKuUQHXkMnRCFPgol6jk/AJ1xpN2Iz7
Ub/fufgwCGxgzNPgam8PftVrQL8xshRV2OjKhBkq
9AIODlqajwQXB9RAw1a0cfiDF+V/L3XgywcalMyw
KLxa0Z4EV/Dk1SsIWDrhInhEeaBaPUy5wsSAkVAc
wpSNEIZSgZBi34G6PvR6t1wkWZ5i2CDkjF+3DE6m
uU4lpeS69V23Ej3/+ziWRn6epsygmo//rwDP5wir
S2OgkalkDLc5qnu7uqmSdzzFtF5rFkef3AkRFhwV
pPplnkWXg6CIiW/wvrrLldQNsUc+8DajgEY/6kYn
l/AU3vYuzoFlmY2Cr++iXgT0FAs2Qeh23kcQ7FTB
d4KG5RYw0+iL03ynOGR5ZqD/qVtONuNmLHPjxx3y
jHjZoodGRWjRD0xyg05qBSoTKQzREKBCTQVp6c3i
yU6dSCFIKySm/baLD20pvwYHeYZmYZzOKQyVnLgX
pdsIzx51Usfiun28C9+6JpwUDTcZ6i0SV+Z2ecXs
FicucOz8zeKxt9VgZTCFDa6cZTqCG84y/hOJLiDF
GuJNKXbvPGSkWrRcmrZabr8t8gn5dqahDYdzgc3G
nJoNm3RgG1rOcBuJmdYyCReadKsuAgdXNolyB4F7
MZfj78WyC0Yrt8qMFEHbumYZEwkuNkUOY9dM4+MZ
LxBjj+iod1dHKXxuoYIS1Ql9S3E5FtXf+PPEqU2U
eW8W/b0p2/OMLXft5lr231reYcVDPTSK4x1WmSWb
6Y18bjTmiIovLoeS3n8kar5n6rhogwtSJenUKZRw
3Eun5W1oXZGleliQFn8uxyUVLmkwyZVCYeCO1EGT
bGTrtrxtPV8+dm5pHftX3c555xKeNZxBX2ud0xdk
BPcyLw3p4+hbZosMudKGPquzh4h1f2sahN1d+A9y
LDn4Uvbm9Vj2ukmIaxmNz+JGyJmo3urLAnhIdRe9
06gHb75Zc55G/ZPHie0kkxqX9gaLDAKqpic2NvRf
i+P2y+M/
'))); ?>
Function Calls
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | cff597acf59036827dcfa3e1c0097548 |
Eval Count | 1 |
Decode Time | 51 ms |