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/.cursor-server/data/User/History/-2b74c0f9/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.cursor-server/data/User/History/-2b74c0f9/5dhM.php
<?php
// Test admin authentication
session_start();
error_reporting(E_ALL);
ini_set('display_errors', 1);

echo "<h1>Admin Authentication Test</h1>\n";

echo "<h2>Session Variables:</h2>\n";
echo "user_id: " . ($_SESSION['user_id'] ?? 'NOT SET') . "<br>\n";
echo "is_admin: " . ($_SESSION['is_admin'] ?? 'NOT SET') . "<br>\n";

echo "<h2>Authentication Check:</h2>\n";
if (!isset($_SESSION['user_id']) || !isset($_SESSION['is_admin']) || !$_SESSION['is_admin']) {
    echo "❌ User is NOT authenticated as admin<br>\n";
    echo "Redirecting to login...<br>\n";
} else {
    echo "✅ User is authenticated as admin<br>\n";
    echo "User ID: " . $_SESSION['user_id'] . "<br>\n";
    echo "Is Admin: " . ($_SESSION['is_admin'] ? 'Yes' : 'No') . "<br>\n";
}

echo "<h2>Current Tab:</h2>\n";
$current_tab = $_GET['tab'] ?? 'dashboard';
echo "Tab: " . $current_tab . "<br>\n";

if ($current_tab === 'email') {
    echo "<h2>Email Tab Test:</h2>\n";
    try {
        ob_start();
        include 'admin_includes/email_management.php';
        $output = ob_get_clean();
        echo "✅ Email management loaded successfully<br>\n";
        echo "Output length: " . strlen($output) . " characters<br>\n";
    } catch (Exception $e) {
        echo "❌ Email management error: " . $e->getMessage() . "<br>\n";
    }
}

echo "<h2>Test Complete</h2>\n";
?> 

CasperSecurity Mini