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(' pZRNb9NAEIbvkfIfppZVu4c25QokFVSpiNRSlLRw iCJra0/ipc5uu..
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");
// 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 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;
}
?><?
Did this file decode correctly?
Original Code
<? eval(gzinflate(base64_decode('
pZRNb9NAEIbvkfIfppZVu4c25QokFVSpiNRSlLRw
iCJra0/ipc5uurNuCKj/ndn1B0kJiIpcYu3OzPvO
M2OfDd6erfJVt0NIJLVKyApj46M33U630+vBeY7p
Pcg52ByhJDQgCQq9WGAGUnU7fBMfSCK0cZhMhpPJ
6PrjNHKBicyi2dER/Oh2gH85igxNHFzqVFgWeg0n
Jz2SCyXVCRsInKKLw2+ykn/acdDIRwRGF1gJP1d0
N9EMDvp9iES2lCp6gTyw1hgzaTC1YDVUl7ASC4S5
NqC0OvZFvQ/a51aqtCgzjAOuXci7nsXlqqRMc1JJ
va/US6n9+5Rrq29XmbBoWgB1yxdo09y3nJbGoLLw
yIrsGuZGL/0F54k7QQwifCjRbKAPwWR4OTy/aWMv
xtdX3j4lzdHl6Gp0A68C3+w7opKdLWCjSyCrDbap
3KQTmUtDlnmvWcUglYVlmTDVSjEjjjseeO24slA1
4OdSBx8eQv14PFDlkuezJhjAaTuVkE9cySZo7hpP
BJFO42YhwprB59pb32dNo9prNHP0AQvCtupvGcGt
uld6rYKtvaog+/FaaQvkiYZusqPMSezZZc4N6aHY
Iu3zfnFOqjpOJKwex3+DxrUqZHUwh01nfjIjJa0U
hfyOIBTwEtkNCGPExu+ln1RjuQa+LfcH1utcstm4
Qb6bsQO+TfEwq8DprAXvDzwOd//0nOjWm7oWRYEW
7kQhVIp7l/eFxKuKSVPRo/evI3z5MBwPQbpSUV01
8pMw/zSDrbX9n12t/L2v7TXEdl3v29jneafNonY7
Z/yF/gk=
'))); ?>
Function Calls
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | c86c6b9f9790254d0b8ebe5dfef1a92a |
Eval Count | 1 |
Decode Time | 54 ms |