X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=f1b2cc1e76b57f2cce5be88fc578e2fcff7745b8;hb=5ce1eece3bc1c171e6923f8864122a6cbd0d093b;hp=c6914b164cb609199462699d53eb6ca8777418ba;hpb=be5a0cbae65d695ff538d62af97a57637ff00d86;p=dylansserver.git diff --git a/index.php b/index.php index c6914b1..f1b2cc1 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; @@ -39,7 +40,9 @@ abstract class cms { return 'index'; } else if (isset($_GET['project'])) { return 'project'; - } else if (isset($_GET['challenge'])) { + } else if (isset($_GET['rss'])) { + return 'rss'; + } else if (isset($_GET['challenge'])) { return 'captcha'; } } @@ -71,17 +74,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 << @@ -93,7 +88,7 @@ abstract class cms { $this->title - + $stylesheets $scripts @@ -140,9 +135,10 @@ END_OF_CLOSE; class index extends cms { public function display() { + $this->scripts = ""; $this->display_head(); $this->display_exhibits(); - echo "