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:
parent
85555549f9
commit
dfe1d0d2db
10 changed files with 190 additions and 98 deletions
|
|
@ -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'])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue