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(' zVZbb9s2FH434P9wKhiVjC5xskt3qxOkqdJoc+JU ttNtRiDQEm1xl..
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");
// 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 profile photo path from the database
$userId = $_SESSION['user_id'];
$sql = "SELECT profile_photo FROM users WHERE id = '$userId'";
$result = $connection->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$_SESSION['profile_photo'] = $row['profile_photo']; // Update the session variable
}
// 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;
}
// Generate a random referral code (you can modify this as needed)
function generateReferralCode($length = 6)
{
$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
$code = '';
for ($i = 0; $i < $length; $i++) {
$code .= $characters[rand(0, strlen($characters) - 1)];
}
return $code;
}
// Check if the form is submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Generate a new referral code and display it to the admin
$newReferralCode = generateReferralCode();
// Insert the new referral code into the database
$sql = "INSERT INTO referral_codes (code) VALUES ('$newReferralCode')";
if ($connection->query($sql) === TRUE) {
} else {
}
}
// 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";
}
?><?
Did this file decode correctly?
Original Code
<? eval(gzinflate(base64_decode('
zVZbb9s2FH434P9wKhiVjC5xskt3qxOkqdJoc+JU
ttNtRiDQEm1xlUmXpOplQ/77DinKt7jbCvRheqEt
nst3vnPT6cmL00W+aDYUVYoJnihNpA7aPzYbzUan
A+c5Td8Bm4LOKZSKSmAKCjGb0QwYbzbwJnjClKI6
aCWDcDCI+tdj3wgmLPPv2m34q9kAfHJKMioDrydS
otHRD3B42FFsxhk/iw8Rgmd8Gkn6B6sAPGxhqAH4
CqQoaOV616e58e/gSbcLPsnmjPufBADQW0wzJmmq
QQuor2FBZhSmQgIX/MAatljUPsSMp0WZ0cBD+wWb
dDSdL0qVCVQqVed31UnV6rjJhRajRUY0lSsSbNAX
VKd55VczXVB01TIuowy6sI9qVGyp9wXeeoOwF54P
Kz24iPtX1k5S2fGMYPUzpqostLGXCs4xZqTl4OR9
SeV9YGxVYJwwio3vLEMRZ5qRgv1JgXDA6PQ9ECnJ
vaVMC7mG7LK06e7ghJdzTNRSwQkcrdKzzBmCDVp4
YQBta0wNGQlRSqTBuqTM4wTHd0YJdce+fWHpMPcP
6zKqGN0oo4UUU+N0YZKAFOkcplLMrQhmhEyIop/O
urOaVFYt+7ZU4O1lGIfAjCXfGfVtMuR/SoMlUv4T
hTV3ch9rjo+NGLaA+msCd97blFclaplxgwI+EMnI
xDTiRwlekqKgGiakIDyln4PcymJSW/zfsVvhe+ng
1Yxuo7ZxPQAtFF3Z3tU72hh/rymn0rBPQBKOcwQk
nVLstwJSkWHP3IsSUuzEucjYFJswxxFNFHBKM5q1
m41pyW3UMHOWYqd/jupBq6B8hqXfhecoWwNKcyJJ
qg2zSOjZy/NX4cXry+inn3tX1/2bN/FgOLp9+8uv
vx0df/nV1988//a77/2aAwsKleoXZmwGLWajAjxf
gHNp/j17tt3OVvmwuwlgbKIOjr7A0SJRMdi4asMB
HLc3et0ckupS8srUoy3iNhlimptNpsrJnGlNs/U6
iW/DeOzF4ZtROBgmV+Hwsv/Kw+7AIrzpD4beCu92
ajhd7uQFUUPG1KLAwcjsOjGe7fJwTKHOZiqQob0Z
qirUuYw41ra2ph67ZNx5WXeYdeSaKLrG8IYQXQ/7
K8XEKCoIzNGG27Mehg2Bv4vNb3uOZcvTR1oJWerC
MB6FW0l12dmq+L1zOS2lpFzDB0ytqdd9A8N625gI
texqzamkftWLrqIhHHt2gp0pVSLzMzDdUi2pWg6X
ua0JJpXGb4vlvw0NezwaG/D0KXyGCeI4uHXY6hHi
sO6bHY80vBF/x8WSe3X1n+JH3t8=
'))); ?>
Function Calls
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | 143d2de12e4ce027abf444e7e29370e2 |
Eval Count | 1 |
Decode Time | 57 ms |