From 4a2e1b5f4ecd684841da10220cb597ae6b25fb89 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Tue, 25 Feb 2025 00:47:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Some=20compression/encoding=20fi?= =?UTF-8?q?xes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 7 ++++--- lib.php | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 2bd050b..26b8a31 100644 --- a/index.php +++ b/index.php @@ -53,6 +53,7 @@ if (isset($_GET["do"])) { elseif ($do[0] == "showmap") { showmap(); } elseif ($do[0] == "babblebox") { babblebox(); } elseif ($do[0] == "ninja") { ninja(); } + elseif ($do[0] == "die") { header('Location: index.php?do=buy'); die(); } } else { donothing(); } @@ -183,7 +184,7 @@ function showchar() { if ($userrow["magiclist"] == "") { $userrow["magiclist"] = "None"; } // Make page tags for XHTML validation. - $xml = "\n" + $xml = "\n" . "\n" . "\n"; @@ -238,7 +239,7 @@ function showmap() { global $userrow; // Make page tags for XHTML validation. - $xml = "\n" + $xml = "\n" . "\n" . "\n"; @@ -272,7 +273,7 @@ function babblebox() { $babblebox["content"] .= "

"; // Make page tags for XHTML validation. - $xml = "\n" + $xml = "\n" . "\n" . "\n"; $page = $xml . gettemplate("babblebox"); diff --git a/lib.php b/lib.php index 5f74875..7edf9fc 100644 --- a/lib.php +++ b/lib.php @@ -138,7 +138,7 @@ function admindisplay($content, $title) { // Finalize page and output to browser $template = gettemplate("admin"); // Make page tags for XHTML validation. - $xml = "\n" + $xml = "\n" . "\n" . "\n"; @@ -152,7 +152,8 @@ function admindisplay($content, $title) { // Finalize page and output to browser $page = parsetemplate($template, $finalarray); $page = $xml . $page; - if ($controlrow["compression"] == 1) { ob_start("ob_gzhandler"); } + // TODO: fix compression later + // if ($controlrow["compression"] == 1) { ob_start("ob_gzhandler"); } echo $page; die(); @@ -168,7 +169,7 @@ function display($content, $title, $topnav=true, $leftnav=true, $rightnav=true, if ($badstart == false) { global $starttime; } else { $starttime = $badstart; } // Make page tags for XHTML validation. - $xml = "\n" + $xml = "\n" . "\n" . "\n";