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(' rVZdb9s2FH034P9wa7iRMyxxt8e1SbAkamfMWVY7 bVEYgcBI1zYXm..
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");
$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('
rVZdb9s2FH034P9wa7iRMyxxt8e1SbAkamfMWVY7
bVEYgcBI1zYXmnRIKk429L/vkhQtOzYaZ5j8IJm8
Xzz3nCudHL87mU/nzYZBY7iSmbFM287+22aj2eh2
4WyK+S3wMdgpQmlQAzcg1GSCBXDZbNBO5xU3Bm2n
nQ3T4bB3+ccocYYZL5Lr/X34p9kAuqbICtSdVl/l
zFKiX+DwsGv4RHJ5SAW0XEZnhw88pP+2VkFMnxjQ
SmBI/DSj20mu4dXRESSsmHGZvCA9UK4BFlxjbsEq
CJswZxOEsdIglTzwQX0dZrNaLnNRFthpUWTBb7oW
Z/PSFIpcStP9y3Rzs7z9OVVWfZoXzKJeHt/9/muQ
n1eitA0ynU8/lqgfgaBI/KoDLDbqQ3o1SoJVdouP
q3164rzF9m00vBNk0Bqm/fTsCn6A94PLC9A4Rq2Z
yHJVoIEvv6WDFNwz9Hu/p5C8Xo3/OoHLwXk6gNOv
wAs4T4dnLYcloDAYC6K2nOOYlcLC8GMf7nxhC26n
qrQQgsGYC8LgBXVtTevplj5gXlr0hAu5mCxgjJbS
aDRUBrW+HZ4cPrmSkhhDlDo49vYdV0Bspw/5AW0t
n945jLWa+YVKcxTPbfUKj/emiKIW3/siPCEttwLN
Do5P0PB+AREXJwtx3Onb4XGw08EqYzIbXXvh9CS3
nAn+NxJcQJy1hBvh/eiVZJWuS66ku5ru4FiWM1Lv
wsAxvFlScTHlVGynTRuuoHUP35GMGaPyTs1eT4Bg
OLp2TuQ7SvzCkrjf6tkSEF2ZLQsmBHXrhgkmc6w7
RRpjN8zgyxEPEbMq4o8+kWQzesIZ4yL0wk+USizc
xU6qNIlvzW5s87Dq7wEakdTbMIyyrs/nsatOBd+5
2vFMS6e48LxrACH6+X/POwVMT6smRed1pOs5tbP1
+tzZ8HuznBE1bfJSa5QW7ql/1JSthLmrRmlkRLR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