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(' zVRNj9owEL0j8R+mCCnhsGTPpQWpK1ZF2nYraNUD QpFJBuLW2FmPU..

Decoded Output download

?><?php
// Start the session
session_start();

// Check if the user is logged in
if (!isset($_SESSION['user_id'])) {
    header("Location: signin.php");
    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;
}



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

// Close the database connection
$connection->close();
?><?

Did this file decode correctly?

Original Code

<? eval(gzinflate(base64_decode('
zVRNj9owEL0j8R+mCCnhsGTPpQWpK1ZF2nYraNUD
QpFJBuLW2FmPU0or/ns9TvhaoaqVeqgviTxv3rx5
Y3s0fDUqi7LdShKYOWEduAKBkEga3W41PylxKO4N
2q2AvCsw+wpyFcAVoQVJoMx6jTlIn+Yj8QtJhC7u
prPxbDZ5fD+PGJjKPFr0evCz3QK/ChQ52rjzYDLh
fKGXQHKtpe57TR0uxyD8Luvaey4vdaaqHONOv58o
uUwcbsqKcrORuqLkCyUZHT8fCuPMpzIXDu2RMnRw
jy4roBRrBCedQmq3uqxvksNruKbZJ3bpSfloZzZ+
GN99rPPgfvr4LvCkNU+HgfXvFKlSjvkyozVm3ODN
8KlCu4uZqxbTgD1svhiAlzbR0kmh5A8EocF353Yg
rBU7cAbIGXuSXDt9Ue5mqKtNas2WYAi3R6O3hfRi
464PsKDLjBWbkQoik8Wn2fBqgPMFJ/nceRQ2gh0c
3zdDOfP0cCQigq1QCh0shRI6Q1hZswlhPw+xFIR/
73nNmB4Yg/kMJ/j8djwdg2SqqGGNwizsH00h+Gh/
5+DBOnvNtMaObq3vTSPv4Nml6tDXHlARHrmf590O
jsZet7a0ZsUTLfmE+/Pnin9hb8Oa1qz/nbunHi6E
RqfT+Ww/3Kf6/p+/a/BNWCmWChuT+UVThvDCPTg1
5Ps87y5jbFA18q/nLw==
'))); ?>

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 8b5e783ba65b4ac800cb4e08257010dc
Eval Count 1
Decode Time 59 ms