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(' pZNNb9pAEIbvlvwfJpYVO4dAem0DKI2IikSaCpL2 gJC1sQe8jdklO..

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 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";
}

// 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;
}


?>
<?

Did this file decode correctly?

Original Code

<? eval(gzinflate(base64_decode('
pZNNb9pAEIbvlvwfJpYVO4dAem0DKI2IikSaCpL2
gJC1sQe8jdklO+tQWuW/d3f9UUhp1ai+2Nqdmfed
Z8aD/vlgna99j5CIS5GQZkrHJ+98z/e6XbjMMX0A
vgCdI5SECjhBIZdLzIAL3zM38REnQh2HyXQ4nY5u
Ps4iG5jwLJqfnMAP3wPz5MgyVHEwlinTRugtdDpd
4kvBxcWkYywEVtNG4jdeGXje89AYiAiULLCSfqlp
b6I5HPV6ELFsxUX0KgNg1CaYcYWpBi2huYY1WyIs
pAIhxakr7LzQIcdcpEWZYRyY+gW/72pcrUvKpEkq
qfuVuim1r0+51PJunTGNqoVQt32FOs1d22mpFAoN
T0bROIeFkit3YfLYPSMDI3wsUW2hB8F0OB5e3rax
V5Oba2efkuZoPLoe3cKbwLV7QVQaZ0vYyhJIS4Vt
qmnSiiy4Im2Yb4yKQioLbWTCVAphKJm4077TjisL
VQNuNnXw8THUn6d9Ua7MjDYEfThrJxOaE1uyCVrY
xhNGJNO4WYqwZvC59tZzWbOo9hrNLX3AgrCt+ltG
cCcehNyIYGe3KshuvJrrAs1EQzvZUWYlDmy0yQ3p
sdgh7fJ+cU6qOlYkrD4nf4NmalXI6mATNpu7yYwE
15wV/DsCE2CWSG+BKcW2bjPdpBrLNfBduT+w3uTc
mI0b5PsZe+DbFAezCpzNW/DuwOGw988vie78rRtW
FKjhnhVMpHhweV9JvKqYNBUdevc7wpcPw8kQuC0V
1VUjNwn1TzPYWdv/2dXK3/vaXkNs3/WhjX2Zd9Ys
qu8N+r53PvgJ
'))); ?>

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 3aee984d833cce5d20bd63810a209b04
Eval Count 1
Decode Time 59 ms