From 6722eece9aa5f4e4c5449e5ee3e07f99dcdf8bf9 Mon Sep 17 00:00:00 2001 From: Xkeeper Date: Wed, 18 Nov 2020 11:55:54 -0800 Subject: [PATCH] =?UTF-8?q?You=20can=20click=20=F0=9F=A6=91=20to=20hide=20?= =?UTF-8?q?it=20now.=20an=20era=20is=20over.=20closes=20#38?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/layout.php | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/lib/layout.php b/lib/layout.php index 0d293a2..99ea1f5 100644 --- a/lib/layout.php +++ b/lib/layout.php @@ -370,7 +370,9 @@ } $jscripts = ''; + $ikachan_text = ''; if (true) { // Ikachan! :D! + //$ikachan = 'images/ikachan/vikingikachan.png'; //$ikachan = 'images/sankachan.png'; //$ikachan = 'images/ikamad.png'; @@ -385,16 +387,26 @@ //$ikaquote = 'Back to being a fixture now, please stop bitching.'; //$ikaquote = 'I just want to let you know that you are getting coal this year. You deserve it.'; - $yyy = ""; + // Enables people to disable the floating squid if they want, or re-enable it later + // Saved browser-side rather than being yet another silly config option + if (isset($_COOKIE['ikachan']) && $_COOKIE['ikachan'] === "hidden") { + $ikachan_text = ""; + + + } else { + $ikachan_text = ""; + + } + } /*if ($_GET['w']) { - $yyy = ""; - $yyy .= ""; - $yyy .= ""; + $ikachan_header = ""; + $ikachan_header .= ""; + $ikachan_header .= ""; for ($xxx = rand(0,5); $xxx < 20; $xxx++) { - $yyy .= ""; + $ikachan_header .= ""; } }*/ @@ -427,7 +439,6 @@ $css $body - $yyy
$tblstart
@@ -519,7 +530,7 @@ Acmlmboard - ". (file_exists('version.txt') ? file_get_contents("version.txt") : shell_exec("git log --format='commit %h [%ad]' --date='short' -n 1")) ." -
©2000-". date("Y") ." Acmlm, Xkeeper, Inuyasha, et al. +
©2000-". date("Y") ." Acmlm, Xkeeper, Inuyasha, et al. $ikachan_text