diff options
author | Kai Stevenson <kai@kaistevenson.com> | 2023-06-11 01:00:04 -0700 |
---|---|---|
committer | Kai Stevenson <kai@kaistevenson.com> | 2023-06-11 01:00:04 -0700 |
commit | 04be1065b9a4d0a3b9d9b94b2ad654862c1c036e (patch) | |
tree | 1cdef40e88459d64016b5dd74c382e9e44dfa77b /src/header.php | |
parent | 8b08d5bd00801f8b492f2974df83e7b833fd39dc (diff) |
fixed a problem causing the back button to appear on the home screen in certain environments
Diffstat (limited to 'src/header.php')
-rw-r--r-- | src/header.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/header.php b/src/header.php index d526d60..152dcdf 100644 --- a/src/header.php +++ b/src/header.php @@ -1,6 +1,6 @@ <h1><?php echo $title; ?></h1> <hr> -<?php if (getcwd() == $_SERVER["DOCUMENT_ROOT"] and basename($_SERVER['PHP_SELF']) == "index.php") { ?> +<?php if (basename(getcwd()) == basename($_SERVER["DOCUMENT_ROOT"]) and basename($_SERVER['PHP_SELF']) == "index.php") { ?> <h3 class="nav"><a href="/">[Home]</a> | <a href="/about.php">[About]</a></h3> <?php } else if (basename($_SERVER['PHP_SELF']) == "index.php") { ?> <h3 class="nav"><a href="/">[Home]</a> | <a href="/about.php">[About]</a> | <a href="..">[Back]</a></h3> |