🐛 Some compression/encoding fixes
This commit is contained in:
parent
c1d91c4e94
commit
4a2e1b5f4e
2 changed files with 8 additions and 6 deletions
|
@ -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 = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
|
||||
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
. "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"
|
||||
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
|
||||
|
||||
|
@ -238,7 +239,7 @@ function showmap() {
|
|||
global $userrow;
|
||||
|
||||
// Make page tags for XHTML validation.
|
||||
$xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
|
||||
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
. "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"
|
||||
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
|
||||
|
||||
|
@ -272,7 +273,7 @@ function babblebox() {
|
|||
$babblebox["content"] .= "<center><form action=\"index.php?do=babblebox\" method=\"post\"><input type=\"text\" name=\"babble\" size=\"15\" maxlength=\"120\" /><br /><input type=\"submit\" name=\"submit\" value=\"Babble\" /> <input type=\"reset\" name=\"reset\" value=\"Clear\" /></form></center>";
|
||||
|
||||
// Make page tags for XHTML validation.
|
||||
$xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
|
||||
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
. "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"
|
||||
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
|
||||
$page = $xml . gettemplate("babblebox");
|
||||
|
|
7
lib.php
7
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 = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
|
||||
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
. "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"
|
||||
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\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 = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
|
||||
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
. "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"
|
||||
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue