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(' lVPBbtpAEL1b8j9MLFSTQ3B7TQMIJU5rKSkpJu0h ipCxB7yN2SW76..
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");
$userId = $_SESSION['user_id'];
// Get the user ID from the form
if (isset($_POST['userId'])) {
$userId = $_POST['userId'];
// Update user status to "active"
$updateStatusQuery = "UPDATE users SET status = 'active' WHERE id = '$userId'";
if ($connection->query($updateStatusQuery)) {
// Redirect back to the user list page or unblocked page
header("Location: ../OwnerAR/unblocked_page.php");
exit();
} else {
echo "Error updating user status: " . $connection->error;
}
} else {
echo "Invalid user ID";
}
// 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";
}
// Close the database connection
$connection->close();
?>
<?
Did this file decode correctly?
Original Code
<? eval(gzinflate(base64_decode('
lVPBbtpAEL1b8j9MLFSTQ3B7TQMIJU5rKSkpJu0h
ipCxB7yN2SW769Coyr93dm2D3XApBwzrmTdv3ns7
Hl2Mt/nWdRQqxQRfKJ1I3T/97DquEwRwmWP6BGwF
OkcoFUpgCgqxXmMGjLsOvemfMKVQ93uLOIzjaPrt
wTeFC5b5j6en8Md1gD45JhnKvncj0kTToHMYDALF
1pzxyWxAFDwz01Tib1YReOtwaAj4CqQosBr970zz
xn+Ek+EQ/CTbMO7/FwGgaTPMmMRUgxbQvIZtskZY
CQlc8DMLbLmoY4wZT4syw75H+AVbBho321JlgppK
FfxSQar2j7tcaHG/zRKNci+C6/QMeJTBEI6J2njz
BfXBlugKVlJs7AER3VT6NM7cTeN5hRB1XGkP6tbY
IaaEBlUEqzmUD10qI46XpJq9oNcg2aLYvv5eonwl
UO/+7moyDyutIA7nTbuxx3b78PNrOAuBGQ5+Tcf3
6ihU39boVHBOrpBxZ6NnA99/P/GwV0187+UyMQkS
B7kKpnTlKpla8mUh0ieKtDk5IByNzHTHUU5mwb5p
YZo6Ce5kwvx5AywUtslhmpOCoZRmvNmD8XVb4HPw
YACdrdEUN4CUtQ5mhRfxl6QgKetEeK1LdI06ze3+
aSklcg0v5AkBH2JDLJJlokiA3nNjYBzehJfzfe31
bHprRVKL5ugmuo3m8Mmzl2eiVLkxq7yKkjYREvet
dGVsNpkk5aXY0RSJqiy0Cd8Rd+2jug42AHXxhw9Q
/zwb8XJDN36nYAQfD5GmEwPZFK3M4otEKZHu/ejV
GvyouQ1t14Nfc7Xp7+r7vsO7509c7Hhb5MtCUEtb
SzhsRgu310xNrWU0HrnOxfgv
'))); ?>
Function Calls
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | a9829987d42d3f61db93ca56fb80fd10 |
Eval Count | 1 |
Decode Time | 57 ms |