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(' rVXfbxJBEH4n4X+YXkjv+tCir2ppqqISq22A6gNp yHZ3gLXHLt3dE..
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 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;
}
// Check if the delete button is clicked
if (isset($_POST['delete_key'])) {
// Get the key ID from the form
$keyId = $_POST['key_id'];
// Perform the delete action (you can add more validation if needed)
$sql = "DELETE FROM get_key WHERE ID = '$keyId'";
if ($connection->query($sql) === TRUE) {
// Key deletion successful
header("Location: ../OwnerAR/my_keys.php");
exit;
} else {
// Key deletion failed
echo "Error deleting key: " . $connection->error;
}
}
// 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('
rVXfbxJBEH4n4X+YXkjv+tCir2ppqqISq22A6gNp
yHZ3gLXHLt3dE9H0f3d29w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decode | 1 |
Stats
| MD5 | 9e40eb6adcc3443edf9b053b7f050712 |
| Eval Count | 1 |
| Decode Time | 56 ms |