From 8b7b8fa879010e1418c4c68aee73fe00c5ae43a7 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Thu, 22 Mar 2012 18:52:18 -0400 Subject: [PATCH] got rid of unnecessary lines and fixed index.php html error --- cms.php | 81 -------------------------------------------------- view/index.php | 16 ++++++---- 2 files changed, 10 insertions(+), 87 deletions(-) diff --git a/cms.php b/cms.php index bd7ed60..f3902b3 100644 --- a/cms.php +++ b/cms.php @@ -70,63 +70,6 @@ abstract class cms { } $statement->free_result(); return $return; - } - - public function display_head($title = "dylansserver", - $home_link = "/") { - $scripts = $this->scripts; - $stylesheets = ""; - $home_link = "http://validator.w3.org/unicorn/check?ucn_uri=dylansserver.com&ucn_task=conformance#"; - echo << - - - - - - - $this->title - - $stylesheets - $scripts - - - -
- - -
-END_OF_HEAD; - } - - public function display_contact() { - echo <<

dylan

@psu.edu -
-END_OF_CONTACT; - } - - public function display_close($show_contact = true) { - if ($show_contact) { - $this->display_contact(); - } - echo << -
-
-
- - -END_OF_CLOSE; - ob_flush(); } public function init() { @@ -309,30 +252,6 @@ class note extends cms { public $number_of_comments; public function __construct() { - $this->scripts = " - - - - - - "; - - if (isset($_GET['comments'])) { - $this->scripts .= " - - "; - } parent::__construct(); if (isset($_GET['comments'])) { $this->comments_enabled = true; diff --git a/view/index.php b/view/index.php index ec7c7c6..b90915e 100644 --- a/view/index.php +++ b/view/index.php @@ -80,14 +80,18 @@
  • -
  • - display_contact() ?> -
  • + +
  • + +
  • - -
    -
    +
    +
    + -- 2.30.2