aboutsummaryrefslogtreecommitdiff
path: root/header.php
diff options
context:
space:
mode:
authorFrankie B <floppydisk05@aol.com>2022-09-16 23:07:51 +0000
committerFrankie B <floppydisk05@aol.com>2022-09-16 23:07:51 +0000
commit1d76709b910e260b77e29ed84afc52bb77d10da5 (patch)
treec8300246cdd534a6bf984fa3bce38b3b0c293cce /header.php
parent6ffd5d8c5c48c8c436d4dcf4ea5ed340e1a22438 (diff)
Rename .min.css files to .css
Diffstat (limited to 'header.php')
-rw-r--r--header.php34
1 files changed, 14 insertions, 20 deletions
diff --git a/header.php b/header.php
index f350537..8e0cc6e 100644
--- a/header.php
+++ b/header.php
@@ -1,19 +1,16 @@
-<?php
-ini_set('display_errors', 1);
-ini_set('display_startup_errors', 1);
-error_reporting(E_ALL);
-?>
-
<div class="header">
<nav>
<div>
- <a href="./me/">about</a> |
- <a href="./pics/">pics</a> |
- <a href="./projects/">projects</a> |
- <a href="./cgit">repos</a> |
- <a href="./calculators/">calculators</a> |
- <a href="./computers/">computers</a> |
+ <!--<a href="/me/">about</a> |
+ <a href="/projects/">projects</a> |
+ <a href="/pics/">pics</a> |-->
+ <a href="/dog/">dog</a> |
+ <a href="https://github.com/floppydisk05?tab=repositories">repos</a> |
+ <a href="/calculators/">calculators</a> |
+ <a href="/computers/">computers</a> |
+ <a href="/bookmarks/">bookmarks</a> |
<a href="https://blog.diskfloppy.me/">blog</a>
+ <!--<a href="/sitemap/">sitemap</a>-->
</div>
</nav>
<div class="pagetree">
@@ -21,21 +18,18 @@ error_reporting(E_ALL);
<span class="title">
<?php
$uri = $_SERVER['REQUEST_URI'];
- if ($uri === '/') {
- echo '~floppydisk';
- } else {
+ if ($uri === '/') { echo '~floppydisk'; }
+ else {
$uri = substr(substr($uri, 1), 0, -1);
- if (strpos($uri, '/')) {
+ if (!strpos($uri, '/')) {
$uriArr = explode('/', $uri);
$link = "/";
$links = '<a href="/">~floppydisk</a> / ';
$currentDir = basename(getcwd());
foreach($uriArr as $page) {
if ($page !== $currentDir) {
- if ($link !== '/')
- $link = $link . '/' . $page;
- else
- $link = $link . $page;
+ if ($link !== '/') $link = $link . '/' . $page;
+ else $link = $link . $page;
$links = $links . '<a href="' . $link . '">' . $page . '</a> / ';
}
}