From 1dff09a4be1e1da4dba51e66381b02701b29d0c1 Mon Sep 17 00:00:00 2001 From: Anthony Parsons Date: Fri, 28 Apr 2006 17:24:17 +0000 Subject: [PATCH] Remove the xml page thing till I can be bothered to do it --- lib/class.XPage.php | 206 ---------------------------------------------------- 1 file changed, 206 deletions(-) delete mode 100644 lib/class.XPage.php diff --git a/lib/class.XPage.php b/lib/class.XPage.php deleted file mode 100644 index 6712547..0000000 --- a/lib/class.XPage.php +++ /dev/null @@ -1,206 +0,0 @@ -nav['Board List'] = '.'; - } - - $htmlhead = new SimpleXML; - } - - public function pageheader() - { - global $user, $DB; - - switch ( $user->theme ) { - case -1: - $css = array('default', 'Default Theme'); break; - case 0: - $css = array('u'.$user->userid, 'User Theme'); break; - default: - $css = $DB->query('SELECT `css_file`, `theme_name` FROM `themes` WHERE `themeid` = '.$user->theme)->fetch_row(); - } - - if ( isset($_POST['login'], $_POST['u'], $_POST['p']) && ! ($user instanceof User_Authenticated) ) { - header('HTTP/1.1 400 Bad Request'); - } - - /* HTTP 1.1 caching bit: Page needs a mtime set for this to work */ - if ( !empty($this->mtime) && strpos($user->options, 'cache') !== false && 'HTTP/1.1' == $_SERVER['SERVER_PROTOCOL'] ) { - $tmp = apache_request_headers(); - - /* only allow 304 response if the page is marked as cacheable */ - if ( false == $this->cacheable ) { - header('Cache-Control: no-cache'); - } elseif ( isset($tmp['If-Modified-Since']) && strtotime($tmp['If-Modified-Since']) == $this->mtime ) { - header('HTTP/1.1 304 Not Modified'); - header('Cache-Control: must-revalidate'); - exit; - } - - /* Send the mtime anyway if it's available since someone might want to use it for something */ - header('Last-Modified: '.date('r', $this->mtime)); - } - - header('Content-Type: application/xhtml+xml; charset=UTF-8'); - echo '',"\n", - '',"\n", - "\n", - ' ',( $this->title ? $this->title.' :: '.SITE_NAME : SITE_NAME ),"\n", - ' \n"; - - if ( strpos($user->options, 'javascript') !== false ) { - // Global JS - echo '