X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=1eb083bb0fb27cad1f272cb946b240be361200eb;hb=0184d096a76f47acb328c5e01fecf91190dfc5ab;hp=b52593f3386ef3574826cad1303288e05904aee3;hpb=ecafae6ff2617c995bbcce7710b6a9b87679e50f;p=dylansserver.git diff --git a/index.php b/index.php index b52593f..1eb083b 100644 --- a/index.php +++ b/index.php @@ -6,6 +6,7 @@ abstract class cms { protected $db; protected $recaptcha_publickey; protected $recaptcha_privatekey; + protected $scripts; public $title; public $home_link; @@ -71,17 +72,9 @@ abstract class cms { public function display_head($title = "dylansserver", $home_link = "/") { - $scripts = ""; + $scripts = $this->scripts; $stylesheets = ""; - if (cms::determine_type() == "index") { - $scripts = ""; - $home_link = "http://validator.w3.org/unicorn/check?ucn_uri=dylansserver.com&ucn_task=conformance#"; - } else if ($this->determine_type() == 'note') { - $scripts = ""; - $scripts .= ""; - $scripts .= ""; - $scripts .= ""; - } + $home_link = "http://validator.w3.org/unicorn/check?ucn_uri=dylansserver.com&ucn_task=conformance#"; echo << @@ -140,6 +133,7 @@ END_OF_CLOSE; class index extends cms { public function display() { + $this->scripts = ""; $this->display_head(); $this->display_exhibits(); echo "