30 lines
No EOL
1 KiB
PHP
Executable file
30 lines
No EOL
1 KiB
PHP
Executable file
<?php
|
|
|
|
$host = $_SERVER['HTTP_HOST'];
|
|
|
|
function echolink($url, $name) {
|
|
global $host;
|
|
if("/$url/" != $_SERVER['REQUEST_URI']) {
|
|
echo "<a href='https://$host/$url/'>$name</a> ";
|
|
} else {
|
|
echo "<span>$name</span> ";
|
|
}
|
|
}
|
|
echo "<nav id='main-nav'>";
|
|
if($_SERVER["DOCUMENT_ROOT"] !== getcwd()) {
|
|
echo "<a href='https://$host/'>home</a> ";
|
|
} else {
|
|
echo("<a href='https://deeptwisty.com' style='text-decoration: none;' title='the website where i post my various art. i like to compartmentalize'><span style=' margin: 0; padding: 0; font-style: italic; background: linear-gradient(135deg, #2e1ae0 0%, #2e1ae0 35%, #00ff00 65%, #ffff00 90%); background-clip: text; -webkit-text-fill-color: transparent;'>deep twisty</span></a>");
|
|
}
|
|
echolink("about", "about");
|
|
echolink("uses", "uses");
|
|
echolink("music", "music");
|
|
echolink("blog", "blog");
|
|
echolink("links", "links");
|
|
echolink("stuff", "stuff");
|
|
echolink("guestbook", "guestbook");
|
|
echolink("stats", "stats");
|
|
echolink("greenhouse", "greenhouse");
|
|
echolink("etc", "etc");
|
|
echo("</nav>")
|
|
?>
|