From: Dylan Lloyd Date: Sat, 26 Mar 2011 20:05:22 +0000 (-0400) Subject: Merge branch 'live' of dylansserver.com:dylansserver into live X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=8e2162275207d63fd73a335c9a16f62bf8e40a41;hp=-c;p=dylansserver.git Merge branch 'live' of dylansserver.com:dylansserver into live --- 8e2162275207d63fd73a335c9a16f62bf8e40a41 diff --combined index.php index e1d2376,6883638..b29d629 --- a/index.php +++ b/index.php @@@ -6,7 -6,6 +6,7 @@@ abstract class cms protected $db; protected $recaptcha_publickey; protected $recaptcha_privatekey; + protected $scripts; public $title; public $home_link; @@@ -72,9 -71,17 +72,9 @@@ 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 << @@@ -86,7 -93,7 +86,7 @@@ $this->title - + $stylesheets $scripts @@@ -133,7 -140,6 +133,7 @@@ END_OF_CLOSE class index extends cms { public function display() { + $this->scripts = ""; $this->display_head(); $this->display_exhibits(); echo "