X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=ctdlphp%2Fctdlheader.php;h=1a9ac6583d47e059e59a91f052be5892dbbec8e2;hb=8326fa85d8b07c85a422f33fb26f585e7aa954d5;hp=512e6c9377b15a8dfc5a6a621be48333c13c33c9;hpb=30b471e7d839b3444e82bce3fa3a86a9d1d2b050;p=citadel.git diff --git a/ctdlphp/ctdlheader.php b/ctdlphp/ctdlheader.php index 512e6c937..1a9ac6583 100644 --- a/ctdlphp/ctdlheader.php +++ b/ctdlphp/ctdlheader.php @@ -3,7 +3,7 @@ // $Id$ // // Header and footer code to be included on every page. Not only does it -// contain some common markup, but it also includes some code glue that holds +// contain some common markup, but it also calls some code glue that holds // the session together. // // Copyright (c) 2003 by Art Cancro @@ -13,29 +13,8 @@ include "ctdlsession.php"; include "ctdlprotocol.php"; function bbs_page_header() { - global $session; - - if (strcmp('4.3.0', phpversion()) > 0) { - die("This program requires PHP 4.3.0 or newer."); - } - establish_citadel_session(); - // If the user is trying to call up any page other than - // login.php logout.php do_login.php, - // and the session is not logged in, redirect to login.php - // - if ($_SESSION["logged_in"] != 1) { - $filename = basename(getenv('SCRIPT_NAME')); - if ( (strcmp($filename, "login.php")) - && (strcmp($filename, "logout.php")) - && (strcmp($filename, "do_login.php")) - ) { - header("Location: login.php"); - exit(0); - } - } - echo <<