diff options
| author | Hannah Isopod <me@bathynomus.xyz> | 2025-06-13 01:13:52 -0600 |
|---|---|---|
| committer | Hannah Isopod <me@bathynomus.xyz> | 2025-06-13 01:13:52 -0600 |
| commit | 4ace83da3951c37f18fbb9676542239be4d051ee (patch) | |
| tree | d079e79bd76cb2575faee5e64de4b44e96477b98 /nav.php | |
| parent | 9b88bf8e5fe84b41918cacca69df191e0de3a7b1 (diff) | |
various minor changes + blog post
a bunch of minor alterations, of particular import
is the new blog post and the IP banning function
I added to the guestbook
Diffstat (limited to 'nav.php')
| -rw-r--r-- | nav.php | 70 |
1 files changed, 28 insertions, 42 deletions
@@ -1,4 +1,5 @@ <?php + 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\");"; @@ -31,6 +32,8 @@ if(!preg_match('/(headless.*)/i', $_SERVER['HTTP_USER_AGENT'])) { 'This site uses $_GAY_COOKIE_EQUIVALENT', 'Supports LGBT!', 'Banned in Florida!', + 'I hear they\'re doing gay sloth month next', + 'and for strait people just gn i guess 😐', 'Are you cis or are you normal' ); $seasonal = true; @@ -48,7 +51,7 @@ if(!preg_match('/(headless.*)/i', $_SERVER['HTTP_USER_AGENT'])) { ); $seasonal = true; break; - case 12: + /*case 12: $captions = array( 'hoe hoe hoe or some shit', 'Happy Holidays!', @@ -65,7 +68,7 @@ if(!preg_match('/(headless.*)/i', $_SERVER['HTTP_USER_AGENT'])) { 'christmas isn\'t real' ); $seasonal = true; - break; + break;*/ default: $captions = array( 'bruh moment', @@ -138,15 +141,16 @@ if(!preg_match('/(headless.*)/i', $_SERVER['HTTP_USER_AGENT'])) { 'Hard Disk Drive!', '"Tablet or smartphone device"', 'Free Palestine!', + 'Girl, we\'ve <em>been</em> knowing how to draw.', + '<span class="flipped">Upside Down!</span>', + '<span class="rainbowtext">RGB Gaming Webpage</span>', + '<a href="/stuff/beat/">@'.date("B").'</a>', + '<a href="https://www.youtube.com/watch?v=N14uA0EhBAU">coke and fries halo</a>', + 'Check it out, I\'m in the <span class="house">house</span> like carpet', 'COUNTER', 'TUEADAY', 'PLACEHIM', - 'UPSIDEDOWN', - 'RGB', - 'BLAHAJ', - '@BEAT', - 'HALO', - 'LIKECARPET' + 'BLAHAJ' ); break; } @@ -175,24 +179,6 @@ if(!preg_match('/(headless.*)/i', $_SERVER['HTTP_USER_AGENT'])) { $cap = '<img id="blahaj" src="images/blahaj.png"> <a href="https://berrymot.github.io/">certified</a> Good Website by blåhaj'; echo "<style type='text/css'>#blahaj { animation: spin 5s linear infinite; height: 1em; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @media (prefers-reduced-motion) { #blahaj { animation: none; } }</style>"; break; - case 'Kind of dragon free!': - $cap = '<span class="minecraftsplash">Kind of dragon free!</span>'; - break; - case 'UPSIDEDOWN': - $cap = '<span class="flipped">Upside Down!</span>'; - break; - case 'RGB': - $cap = '<span class="rainbowtext">RGB Gaming Webpage</span>'; - break; - case '@BEAT': - $cap = '<a href="/stuff/beat/">@'.date("B").'</a>'; - break; - case 'HALO': - $cap = '<a href="https://www.youtube.com/watch?v=N14uA0EhBAU">coke and fries halo</a>'; - break; - case 'LIKECARPET': - $cap = 'Check it out, I\'m in the <span class="house">house</span> like carpet'; - break; } } } @@ -216,21 +202,21 @@ function echolink($url, $name) { <nav id='main-nav'> <a href='/neppy/' style='position: absolute; top: -500rem; left: -500rem; height: 0; width: 0; font-size: 0; opacity: 0;'>AI scrapers click here!</a> <?php - 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>"); + 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"); ?> + </nav> </header>
\ No newline at end of file |
