diff --git a/core/config.php b/core/config.php index 8ce6bb7..06b9626 100644 --- a/core/config.php +++ b/core/config.php @@ -11,7 +11,7 @@ if($devmode) { error_reporting(E_ALL); } -$pagename = ucfirst(str_replace(".php", NULL, str_replace("/", NULL, $_SERVER['DOCUMENT_URI']))); +$pagename = ucfirst(str_replace(".php", NULL, str_replace("/", NULL, $_SERVER['DOCUMENT_URI'] ?? $_SERVER['PHP_SELF'] ))); $maintainers = array("Mario1", "qzip", "nolanwhy"); diff --git a/error.php b/error.php index 5e8ebd7..0ab526b 100644 --- a/error.php +++ b/error.php @@ -36,7 +36,7 @@ $getitstarted = new PartyStarter; $getitstarted->header(); ?> -
diff --git a/home.php b/home.php index 09ec3aa..1ad2357 100644 --- a/home.php +++ b/home.php @@ -35,7 +35,7 @@ $getitstarted = new PartyStarter; $getitstarted->header(); ?> -
diff --git a/index.php b/index.php index daf3260..f3f4621 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@ body { width: 50%; } -
diff --git a/login.php b/login.php
index a95038b..b237fa7 100644
--- a/login.php
+++ b/login.php
@@ -39,7 +39,7 @@ $result = file_get_contents("https://useless-facts.sameerkumar.website/api");
$thefunfact = json_decode($result);
?>
- |
+ |
diff --git a/register.php b/register.php
index 99ad0f5..f89bc83 100644
--- a/register.php
+++ b/register.php
@@ -64,7 +64,7 @@ $result = file_get_contents("https://useless-facts.sameerkumar.website/api");
$thefunfact = json_decode($result);
?>
- |
+ |
diff --git a/user.php b/user.php
index e600234..b85f11c 100644
--- a/user.php
+++ b/user.php
@@ -30,7 +30,7 @@ $getitstarted = new PartyStarter;
$getitstarted->header();
?>
- |
+ |