2022-10-03 10:03:42 +00:00
|
|
|
<script src="/res/js/themeswap.js"></script>
|
2022-09-04 00:25:49 +00:00
|
|
|
<div class="header">
|
|
|
|
<nav>
|
|
|
|
<div>
|
2022-10-02 17:08:06 +00:00
|
|
|
<a href="/projects/">projects</a> |
|
2022-09-16 23:07:51 +00:00
|
|
|
<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> |
|
2022-10-02 17:10:23 +00:00
|
|
|
<a href="https://blog.diskfloppy.me/">blog</a> |
|
|
|
|
<a href="/guestbook/">guestbook</a>
|
2022-09-04 00:25:49 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="pagetree">
|
|
|
|
<span class="title">
|
|
|
|
<?php
|
|
|
|
$uri = $_SERVER['REQUEST_URI'];
|
2022-09-16 23:07:51 +00:00
|
|
|
if ($uri === '/') { echo '~floppydisk'; }
|
|
|
|
else {
|
2022-09-04 00:25:49 +00:00
|
|
|
$uri = substr(substr($uri, 1), 0, -1);
|
2022-09-16 23:07:51 +00:00
|
|
|
if (!strpos($uri, '/')) {
|
2022-09-04 00:25:49 +00:00
|
|
|
$uriArr = explode('/', $uri);
|
|
|
|
$link = "/";
|
|
|
|
$links = '<a href="/">~floppydisk</a> / ';
|
|
|
|
$currentDir = basename(getcwd());
|
|
|
|
foreach($uriArr as $page) {
|
|
|
|
if ($page !== $currentDir) {
|
2022-09-16 23:07:51 +00:00
|
|
|
if ($link !== '/') $link = $link . '/' . $page;
|
|
|
|
else $link = $link . $page;
|
2022-09-04 00:25:49 +00:00
|
|
|
$links = $links . '<a href="' . $link . '">' . $page . '</a> / ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$links = substr($links, 0, -3) . ' / ' . $currentDir;
|
|
|
|
echo $links;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
<div style="float: right;"><a onclick="javascript:toggleTheme()">dark / light mode</a></div>
|
2022-10-26 22:34:51 +00:00
|
|
|
</div> <!-- pagetree -->
|
2022-09-04 00:25:49 +00:00
|
|
|
</div> <!-- header -->
|