![]() 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/ |
<?php
require_once 'config/database.php';
try {
$pdo = getDBConnection();
echo "<h1>🔍 Security Tables Structure</h1>";
$tables = [
'user_login_history',
'security_events',
'page_visits',
'registration_events'
];
foreach ($tables as $table) {
echo "<h2>Table: $table</h2>";
try {
$stmt = $pdo->query("SHOW COLUMNS FROM $table");
$columns = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo "<table border='1' style='border-collapse: collapse; margin: 10px 0;'>";
echo "<tr><th>Column</th><th>Type</th><th>Null</th><th>Key</th><th>Default</th></tr>";
foreach ($columns as $column) {
echo "<tr>";
echo "<td>" . $column['Field'] . "</td>";
echo "<td>" . $column['Type'] . "</td>";
echo "<td>" . $column['Null'] . "</td>";
echo "<td>" . $column['Key'] . "</td>";
echo "<td>" . $column['Default'] . "</td>";
echo "</tr>";
}
echo "</table>";
} catch (Exception $e) {
echo "<p style='color: red;'>❌ Error: " . $e->getMessage() . "</p>";
}
}
} catch (Exception $e) {
echo "<p style='color: red;'>❌ Database error: " . $e->getMessage() . "</p>";
}
?>