X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=54b5bf2f42f54b8f81f17fdae7432f89e94699d1;hb=69fc1a7b8b5406160484cb657881ab9623ec0630;hp=687fc690f68cdc323d792cdf97bdeafd960273eb;hpb=8531410ff5fb89df84d28fb097c236e6c5cb894c;p=dylansserver.git diff --git a/index.php b/index.php index 687fc69..54b5bf2 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ abstract class cms { - private $config_file = '/etc/dylanstestserver.ini'; + private $config_file = '/etc/dylansserver.ini'; protected $db; protected $recaptcha_publickey; protected $recaptcha_privatekey; @@ -69,18 +69,17 @@ abstract class cms { return $return; } - public function display_head($title = "dylanstestserver", + public function display_head($title = "dylansserver", $home_link = "/") { $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') { + $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 .= ""; - $scripts .= ""; - $scripts .= ""; + $scripts .= ""; } echo << @@ -167,7 +166,7 @@ class index extends cms {
  • git://dylanstestserver.com
  • + "git">git://dylansserver.com
  • some notes:

    @@ -190,13 +189,13 @@ OTHER_PROJECTS; } protected function display_exhibits() { + echo "
    "; $sql = "SELECT text FROM projects"; $result = $this->db->query($sql); while ($entry = $result->fetch_object()) { - echo "
    "; echo $entry->text; - echo "
    "; } + echo "
    "; } private function list_projects() {