%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/www/website_6031bb72/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/www/website_6031bb72/admin/logout.php
<?php 
include "function.php";
$fetch_admin_role = mysqli_fetch_array(mysqli_query($conn,"SELECT `admin_id`,`roles` FROM `admin` WHERE `admin_id`='".$_SESSION['admin_id']."'"));
if($fetch_admin_role['roles']==1 || $fetch_admin_role['roles']==2){
    unset($_SESSION['admin_id']);
    echo "<script>window.location='login.php';</script>";
}else{
    unset($_SESSION['admin_id']);
    echo "<script>window.location='".$base_url."login';</script>";
}
?>

VaKeR 2022