X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=8381c1b505d45ca940673cf55518d21a004cac2d;hb=99dc53dddd748917bef3d1d7d0ee847c785f6b26;hp=424f8504ab4d03fb8543098316d628ee6cafa134;hpb=8d2cf39d98794c59a92155d9e119db205f431436;p=dylansserver.git diff --git a/index.php b/index.php index 424f850..8381c1b 100644 --- a/index.php +++ b/index.php @@ -2,10 +2,11 @@ abstract class cms { - private $config_file = '/etc/dylanstestserver.ini'; + private $config_file = '/etc/dylansserver.ini'; protected $db; protected $recaptcha_publickey; protected $recaptcha_privatekey; + protected $scripts; public $title; public $home_link; @@ -69,19 +70,11 @@ abstract class cms { return $return; } - public function display_head($title = "dylanstestserver", + 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=dylanstestserver.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 << @@ -102,7 +95,7 @@ abstract class cms {
@@ -140,11 +133,13 @@ END_OF_CLOSE; class index extends cms { public function display() { + $this->scripts = ""; $this->display_head(); $this->display_exhibits(); echo "