From 4e7751c878fb00a90a6e90dd0dac8e6c053531a6 Mon Sep 17 00:00:00 2001 From: BreadTeleporter <103989916+BreadTeleporter@users.noreply.github.com> Date: Sun, 25 Jun 2023 08:06:53 +0100 Subject: [PATCH] Added a config file --- admin/admin_panel.php | 4 ++-- config.php | 7 +++++++ dashboard.php | 7 ++++--- db/request_logs.json | 1 - index.php | 7 ++++--- login.php | 3 ++- register.php | 3 ++- 7 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 config.php diff --git a/admin/admin_panel.php b/admin/admin_panel.php index 202ab4b..f92c673 100644 --- a/admin/admin_panel.php +++ b/admin/admin_panel.php @@ -20,7 +20,7 @@ - PHPSocial - Admin Panel + <?php echo $configs["sitename"] ?> - Admin Panel diff --git a/config.php b/config.php new file mode 100644 index 0000000..8d311be --- /dev/null +++ b/config.php @@ -0,0 +1,7 @@ + 'PHPSocial', + 'theme' => 'light.css', // Themes are stored in the /css directory, remeber to include the extension when changing the theme + 'adminEnabled' => true +); \ No newline at end of file diff --git a/dashboard.php b/dashboard.php index 21ff7f2..b2b5549 100644 --- a/dashboard.php +++ b/dashboard.php @@ -20,6 +20,7 @@ - PHPSocial - Dashboard - + <?php echo $configs["sitename"] ?> - Dashboard + ">
@@ -123,7 +124,7 @@
-

PHPSocial

+

- PHPSocial - Home - + <?php echo $configs["sitename"] ?> - Home + ">
-

PHPSocial

+

diff --git a/login.php b/login.php index 8e1a24a..be1ef62 100644 --- a/login.php +++ b/login.php @@ -20,6 +20,7 @@ - PHPSocial - User Login + <?php echo $configs["sitename"] ?> - User Login diff --git a/register.php b/register.php index 74e891b..32da46d 100644 --- a/register.php +++ b/register.php @@ -20,6 +20,7 @@ - PHPSocial - User Registration + <?php echo $configs["sitename"] ?> - User Registration