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(' rVZtb9MwEP5eqf/hqArpEFuBj7xsgi1ARcegHSBU TZGXXFsz1+5sh..
Decoded Output download
?><?php
session_start();
// Check if the user is logged in
if (!isset($_SESSION['user_id'])) {
header("Location: ../signinAR.php");
exit();
}
// Check the user's role
if ($_SESSION['user_role'] !== 'admin') {
header("Location: ../signinAR.php"); // Redirect to signinAR page for non-admin users
exit();
}
include("../lib/tempusdominus/js/css/js/css/PhotoUpdater.php");
include("../lib/tempusdominus/js/css/js/css/PhotoUpdater2.php");
$searchQuery = '';
if (isset($_GET['search_key'])) {
$searchQuery = $_GET['search_key'];
$sql = "SELECT * FROM referral_codes WHERE code LIKE '%$searchQuery%' ORDER BY id DESC";
} else {
// Default SQL query without search filter
$sql = "SELECT * FROM referral_codes ORDER BY id DESC";
}
// 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, username, email FROM users WHERE id = '$userId'";
$result = $connection->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$userId = $row['id'];
$username = $row['username'];
$email = $row['email'];
$walletBalance = $row['wallet_balance'];
$walletBalance = $row['wallet_balance'];
} else {
$walletBalance = 0;
}
// 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";
}
// Query to retrieve all referral codes
$sql = "SELECT * FROM referral_codes 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('
rVZtb9MwEP5eqf/hqArpEFuBj7xsgi1ARcegHSBU
TZGXXFsz1+5sh24g/jtnJ07atWKdoF+S2vfy+Lnn
zjnYf3Ewn86bDYPGcCUTY5m2nZ3nzUaz0e3C4RTT
C+BjsFOE3KAGbkCoyQQz4LLZoJ3OPW4M2k47GcbD
Ye/kwyhyhgnPorOdHfjVbAD9psgy1J1WX6XMUqJn
sLfXNXwiuXw12CMILZfTWeIVLwD8XsEQAEQGtBJY
pL6Z0+1EZ3Dv5UuIWDbjMroTAKBsA8y4xtSCVRC2
Yc4mCGOlQSq56wN7LGYTYi5TkWfYaVF8wc+7Fmfz
3GSKnHLT/W66qakeH6fKqs/zjFnUFQn/EuRpFaVt
kOl0+ilHfQ1ER+QjO9JCud7Gp6OosEou8Hq5Wjec
N9g+D4aXggxaw7gfH57CQ3gzODkGjWPUmokkVRka
+PouHsTg3qHfex9DdH85/v0ITgZH8QBefwOewVE8
PGw5LgGFwQCICnOEY5YLC8NPfbj0wBbcTlVuoQgG
Yy6IgTvg2pjWSy6+wjS36EVX5GIygzFaSqPREAwq
fbt4c/ykSkrSDMlqd9/bdxyAUEwf8i3auol6RzDW
auYXys6jeG6rl3m+11spdOQbD8IL0nIr0GzheIMN
71cw4uIkRRx3+nbxOtjqYKUxmY3OfOv0JLecCf4T
iS4gxVrijfi+9r1kla4hl+27nG53X+Yz6uCFgX14
XElxMeUEttOmDQdo1cNXJGHGqLRTq9cLoDAcnTkn
8h1FfqES7u96vhSMLs2XBROCqnXOBJMp1pWiDmPn
zODdGS8iJmXERz6RZDN6wxnjoqiFnyhls3AXOyrT
RL4026nN06r/RmhgUm/iMLR1fT7PXXkq+MuvHc5U
OYWF210LEoKf/3e7U8Hp67JIwXmV6XpObW29OnfW
/B5XM6KWTZprjdLCD6ofFWWjYC7LURoUEWyrLjRJ
WOr3jnun8KTle+qVMTkN/Qlcq7zsoWBHl5BLMuba
WLoTF7dpxD/WVAIPHsB/EEzJwZcSWyC4xLqJ2TWP
1md5IdVC1mO4uH9oeGi0muMPmitCVFPc3yhmrde2
n/VbtpT7BBHK4EpJofagQMvuqbP1xBzQx9Uf
'))); ?>
Function Calls
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | 2213d03d57429e877d27126b56dd348d |
Eval Count | 1 |
Decode Time | 54 ms |