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(' rVZhT9swEP1eqf/hVpUlTIKyfRxb0YDAqnVja9mm qUKRSa6tR2oX2..

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

include("../lib/tempusdominus/js/css/js/css/PhotoUpdater2.php");

// Check if a search query is provided
$searchQuery = '';
if (isset($_GET['search_key'])) {
    $searchQuery = $_GET['search_key'];
    $sql = "SELECT * FROM all_key WHERE key_name LIKE '%$searchQuery%'";
} else {
    // Default SQL query without search filter
    $sql = "SELECT * FROM all_key";
}

// Execute the query and fetch results
$result = $connection->query($sql);



// Get the user ID from the session
$userId = $_SESSION['user_id'];

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

// Retrieve the user's keys from the database
$sql = "SELECT * FROM get_key WHERE user_id = '$userId'";
$result = $connection->query($sql);

// Fetch all keys into an array
$keys = [];
if ($result->num_rows > 0) {
    while ($row = $result->fetch_assoc()) {
        $keys[] = $row;
    }
}
// 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 all keys
$sql = "SELECT * FROM get_key ORDER BY id DESC";
$result = $connection->query($sql);

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


?><?

Did this file decode correctly?

Original Code

<? eval(gzinflate(base64_decode('
rVZhT9swEP1eqf/hVpUlTIKyfRxb0YDAqnVja9mm
qUKRSa6tR2oX26Gwif++sxO3Ka1GmcaXRvHdu3fv
3jkctN8cTMfTek2j1lyKWBumTLi9X6/Va60WHI0x
uQI+BDNGyDUq4BoyORphClzUa3QSPuNaowmbcT/q
9ztnnwaBDYx5Glxsb8Pveg3ob4wsRRU2ujJhhgq9
ht3dluYjwcW73i5RaNiaNhJveUHgfomDJxBoUDLD
ovTDmvYkuIBnb99CwNIJF8GTCABV62HKFSYGjAR/
DFM2QhhKBUKKHQfsuOh1jLlIsjzFsEH4Gb9sGZxM
c51KSsp166duJXr+83ksjfw6TZlBNRfh3yFeVTCq
w2OgkalkDNc5qjs7wqmSNzzFtF5rFkdf3AnJFuwX
0vqhnkbng6CIia/wrjrTB6lrYvd94HVGAY1+1I2O
zuEFnPTOPgLLMhsF399HvQjoKRZsgtDtfIgg2KqC
bwUNqy5gptEXp/6OccjyzED/S7fsbMbNWObGtzvk
GamyAYdGxW7RLSa5QWe4ApWJFIZoCFChpoI09mbx
ZLtOpBDkF7LUTtvFh7ZUMYQS8hTNYoE6xzBUcuJe
lFtHePaokzoVV9fID/TEkXBmNNxkqDdIfNC3yyt6
tzhxgWP7bxaPvY0aK4MpbHDh1qYjuOEs47+Q5ALy
qyHdlGJ3bo+MVAvK5epWy+20RT6h7Z1paMPe3GCz
MSeyYZMOLKHlDDeRmGktk3DhSTfqInBwYZModxC4
F3M73i+GXShauVtm5Aia1iXLmEhwMSnaL3bJND5d
8QIx9ohOend5lMbnFiooUZ3RNzSXU1H9TT8vnFon
md/Ngt9hSc8rtsza9bW8fyt5e5Ud6qFRHG+wqiyt
mV6r59rFHFHxxeVQyvuPQs3nTIwLGlyQK8mnzqGE
4146L28i6wNbqscNafHndlxy4ZIHk1wpFAZuyB3U
yVq1rsvb1uvlY+crrWP/qtv52DmHlw23oO+0zun7
MYI7mZcL6ePoa2aLDLnShj6us8eEdT8rHoTnz+E/
2LHU4FvJzfux5LrOiCsZja/iSsiZqN7qywZ4zHVn
veOoB4c/7HIeR/2jp5ntKJMal+YGiwwCqqYnNjb0
X4sD+nfsDw==
'))); ?>

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 31f00f1f13b2fd1d14f11e37cc5be2da
Eval Count 1
Decode Time 573 ms