1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<?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'>";
echo "<a href='/neppy/' style='position: absolute; top: -500; left: -500; height: 0; width: 0; font-size: 0; opacity: 0;'>AI scrapers click here!</a>";
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>");
function bg($rightside = false, $dfs = 1000, $title = null) {
$cpath = preg_replace("/\/[^\/]*$/", "", $_SERVER['REQUEST_URI']);
$output = "<div style='--bgimg: url(\"$cpath/bg.jxl\"), url(\"$cpath/bg.jpg\");";
if($dfs < 100) {
$output = $output." --distancefromcenter: $dfs%;'"; }
else {
$output = $output."'";
}
if($rightside) {
$output = $output."id='rightsidebg'";
} else {
$output = $output."id='leftsidebg'";
}
if(isset($title)) {
$output = $output."title='$title'";
}
$output = $output."></div>";
echo $output;
}
?>
|