Mercurial > hg > fapweb
changeset 177:45eaa6571e72
Simplify cmPrintPageHeader() by removing some CSS-related magic and cruft.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 07 Nov 2013 07:00:17 +0200 |
parents | 8f0d81f9c648 |
children | 0c2bdc46b93c |
files | msitegen.inc.php |
diffstat | 1 files changed, 0 insertions(+), 30 deletions(-) [+] |
line wrap: on
line diff
--- a/msitegen.inc.php Wed Nov 06 10:28:32 2013 +0200 +++ b/msitegen.inc.php Thu Nov 07 07:00:17 2013 +0200 @@ -438,28 +438,6 @@ { global $pageCSS, $pageCharset, $pageAuthor, $pageCSSData, $pageUrchin; - if (!isset($pageCSS)) - { - if (!isset($pageCSSData)) - { - $pageCSSData = array( - "cookie" => "docscss", - "prefix" => "http://tnsp.org/docs", - ); - } - - if (isset($_GET["css"])) - { - $index = intval($_GET["css"]); - setcookie($pageCSSData["cookie"], $index, time() + 365*24*60*60, "/"); // expire in a year - } - else - { - $index = isset($_COOKIE[$pageCSSData["cookie"]]) ? intval($_COOKIE[$pageCSSData["cookie"]]) : 1; - } - $pageCSS = $pageCSSData["prefix"].$index.".css"; - } - echo "<?xml version=\"1.0\" encoding=\"".$pageCharset."\"?>\n". "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n". @@ -487,14 +465,6 @@ else require_once "urchin.inc.php"; -/* - echo - "<script type=\"text/javascript\" src=\"http://tnsp.org/copyright-campaign.js\" charset=\"UTF-8\"></script>\n". - "<script>\n", - "copyrightCampaign();\n", - "</script>\n"; -*/ - if ($useContents) echo "<div id=\"contents\">\n"; }