Remove db.php and add navigation menu to all pages

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-10-22 01:35:14 +00:00
parent 85555549f9
commit dfe1d0d2db
10 changed files with 190 additions and 98 deletions

View file

@ -3,8 +3,10 @@
session_name("gameservers_website");
session_start();
// Include database connection for logging
require_once('db.php');
// Logger function
function logger($logtext){
file_put_contents(__DIR__ . "/logfile.txt", $logtext . PHP_EOL, FILE_APPEND);
}
// Log the logout
if (isset($_SESSION['website_username'])) {