X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=c53e9a85985d52402fbab39f8cf5751450d2f9b6;hb=268795ba61ed5adaa452c551e1c3bd58505d16a0;hp=54b5bf2f42f54b8f81f17fdae7432f89e94699d1;hpb=69fc1a7b8b5406160484cb657881ab9623ec0630;p=dylansserver.git diff --git a/index.php b/index.php index 54b5bf2..c53e9a8 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,16 +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' - && isset($_GET['comments'])) { - $scripts = ""; - $scripts .= ""; - } + $home_link = "http://validator.w3.org/unicorn/check?ucn_uri=dylansserver.com&ucn_task=conformance#"; echo << @@ -92,7 +88,7 @@ abstract class cms { $this->title - + $stylesheets $scripts @@ -139,6 +135,7 @@ END_OF_CLOSE; class index extends cms { public function display() { + $this->scripts = ""; $this->display_head(); $this->display_exhibits(); echo "