From 2169d0231fbccdbd5c6f1cb5efffd90debcaf15a Mon Sep 17 00:00:00 2001 From: 5rod <5rod@gravemc.net> Date: Tue, 6 May 2025 14:21:18 +0200 Subject: [PATCH] added some comments --- public/css/style.css | 1 + public/html/{about.php => history.php} | 0 public/html/index.php | 3 ++- public/php/mysqlTables.php | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) rename public/html/{about.php => history.php} (100%) diff --git a/public/css/style.css b/public/css/style.css index ef95c98..829605f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -78,6 +78,7 @@ header .logo img { } + header nav { display: flex; gap: 20px; diff --git a/public/html/about.php b/public/html/history.php similarity index 100% rename from public/html/about.php rename to public/html/history.php diff --git a/public/html/index.php b/public/html/index.php index 4812ff9..229d7d1 100644 --- a/public/html/index.php +++ b/public/html/index.php @@ -12,9 +12,10 @@ // Adjust path for admin pages if (str_starts_with($page, 'admin/')) { - $page_file = '../' . $page_file; // Ensure it's relative to the 'public' directory + $page_file = '../' . $page_file; } +//Check if the file exists and if it does include it on the page if (file_exists($page_file)) { include_once($page_file); } else { diff --git a/public/php/mysqlTables.php b/public/php/mysqlTables.php index e0d379a..af40e66 100644 --- a/public/php/mysqlTables.php +++ b/public/php/mysqlTables.php @@ -30,6 +30,7 @@ )" ]; +// Runs all the tables creations try { foreach ($queries as $sql) { $conn->exec($sql);