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(' zVZtb1o3FP6OxH/wEOqFiUL7tRmJuuZ2Q0uTLCTq BxRdGV8DXnxta..
Decoded Output download
?><?php
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");
$userId = $_SESSION['user_id'];
// Fetch user data from the database including the "status" column
$sql = "SELECT id, username, email, wallet_balance, status FROM users WHERE id = '$userId'";
$result = $connection->query($sql);
if ($result->num_rows === 1) {
$row = $result->fetch_assoc();
$status = $row['status'];
if ($status === 'blocked') {
// Redirect the blocked user to a blocked page or display a message
header("Location: blocked_page.php");
exit();
}
// 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;
}
if (isset($_GET['keyId'])) {
$keyId = $_GET['keyId'];
if (isset($_POST['confirm'])) {
// Perform the reset action for the key with the given keyId
// Update the UDID column to NULL
$updateQuery = "UPDATE get_key SET UDID = NULL WHERE ID = $keyId";
$updateResult = mysqli_query($connection, $updateQuery);
if ($updateResult) {
// Update successful, redirect back to my_keys.php
header("Location: ../ResellerEN/my_keys.php");
exit();
} else {
$error = "An error occurred while resetting the key.";
}
}
// Fetch key details from the database based on keyId
$fetchQuery = "SELECT * FROM get_key WHERE ID = $keyId";
$fetchResult = mysqli_query($connection, $fetchQuery);
if ($fetchResult && mysqli_num_rows($fetchResult) > 0) {
$keyData = mysqli_fetch_assoc($fetchResult);
} else {
$error = "Key not found.";
}
}
// 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
}
} else {
// User not found, handle accordingly
header("Location: ../signin.php");
exit();
}
// Close the database connection
$connection->close();
?><?
Did this file decode correctly?
Original Code
<? eval(gzinflate(base64_decode('
zVZtb1o3FP6OxH/wEOqFiUL7tRmJuuZ2Q0uTLCTq
BxRdGV8DXnxtavs2o1X++45frrkOaZVpmzSQgHs4
r89zzrFPjn862W623Y6mWjMpCm2wMoPhUbfT7Uwm
6N2GkjvEVshsKKo1VYhpxOV6TUvERLcD/wx+YFpT
M+gX83w+n12cLzKrWLAyux0O0dduB8FrQ3FJ1aB3
Jgk2EOgNGo8nmq0FE2NIoGcjWj36J/PhH2wGTBBe
l3TQA2XOlhNDq22tS1kxUevJH3pCdPy63Egjb7Yl
NlRFl/bdt+nMSjRFT6XYVPqeGrLxJYILjFZKVq5q
+7TEmiKfDBNrJ+4BUqbWPUQkryuAoq8/cYjRm+dn
+btrxMqR8yZwRUeIVpjxEbrHnFNTLDHHgoDY+0Dv
ry4+OGWNPv6aX+VgDJ6ykHjWgxz7iuqaG1sEkUJQ
YkF8efyppmo3sKF9tZaPoPryWNRVoeS9RtPpFL2O
VPRBZv00aitbeYG1lmTQ0NAPmU2d9iLzjwEtq+AC
NUrgPltySe5omcUw9gW4XtGSKUjXgRaUPMxGIhwl
W7ymSAL2TG853sE/FXQkCPfODlsoGBfWOOmipJPs
w0PCsgtmmOFUP6M9HhHr7Dxl1k/h/TiO/M+rZzEV
lEFtcXtkgZoJZhjm7AtFWEDDbA2goBRgAUBpI9U+
5cBzO1yL7WP0KpJwv2GQ7KChPLVIiE94C4qL29gA
TuDgCHCmiDbrIdOhx1Ho8cM5+vuIp1Pzn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