diff options
author | Kai Stevenson <kai@kaistevenson.com> | 2023-02-23 14:06:11 -0800 |
---|---|---|
committer | Kai Stevenson <kai@kaistevenson.com> | 2023-02-23 14:06:31 -0800 |
commit | 5a2842b262aaa31b564f61eb410de8ebca6b1fc4 (patch) | |
tree | dcb40455eb77db2aaf24f01251ccd85a46b35e06 /src | |
parent | b9647245405f451010a92a39918c08be7be68d2a (diff) |
fixed header php--about page has back button now
Diffstat (limited to 'src')
-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 5ad5a65..d526d60 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"]) { ?> +<?php if (getcwd() == $_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> |