diff options
Diffstat (limited to 'header.php')
-rw-r--r-- | header.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/header.php b/header.php new file mode 100644 index 0000000..f4096c0 --- /dev/null +++ b/header.php @@ -0,0 +1,7 @@ +<?php if (getcwd() == $_SERVER["DOCUMENT_ROOT"]) { ?> + <h1><?php echo $title; ?></h1> +<?php } else if (basename($_SERVER['PHP_SELF']) == "index.php") { ?> + <h1><?php echo $title; ?> | <a class="backbutton" href="..">[Back]</a></h1> +<?php } else { ?> + <h1><?php echo $title; ?> | <a class="backbutton" href=".">[Back]</a></h1> +<?php } ?>
\ No newline at end of file |