= 8) && ($Hour <= 17) || ($DoW == "Fri") && ($Hour >= 9) && ($Hour < 14); $o = isset($_REQUEST["office"]) ? $_REQUEST["office"] : "" ; if ($o > "") $office_open = ($o == "open"); //if ( ($_SERVER["QUERY_STRING"] == "") && !$office_open || isset($_REQUEST["closed"]) ) if ($_SERVER["QUERY_STRING"] == "") { include("enter.php"); die(); } // // site settings // $lines = file("settings.txt"); $admin_passwd = trim($lines[0]); $menu_entries = trim($lines[1]); $author_names = trim($lines[2]); $entries_per_page = trim($lines[3]); $tooltip_definition = file( "tooltips.txt" ); // // functions not related to the CMS // include("custom.php"); // // login // $passwd_cookie = isset($_COOKIE["OSTARD_autologin"]) ? $_COOKIE["OSTARD_autologin"] : "" ; if ($passwd_cookie == $admin_passwd) { $passwd = $passwd_cookie; } else { $passwd = get_parameter("passwd"); } if (isset($_REQUEST["logout"])) { $passwd_cookie = ""; $passwd = ""; } setcookie("OSTARD_autologin", $passwd, time()+3600, "/", $_SERVER["HTTP_HOST"], 0); $admin_login = ($passwd == $admin_passwd); // // engine // // DOCTYPE // $t = array( "strict", "loose", "none" ); $DOCTYPE = $t[0]; $CSS_FILE_NAME = "default.css"; // WHAT TO SHOW? // $page = $_REQUEST["page"]; if (!isset($_REQUEST["page"]) || ($page == "")) { $e = explode("|", $menu_entries); $page = $e[0]; } // PAGE EXISTING? // if (!file_exists("htmldata/$page.php")) { $page = "../error404"; header("HTTP://1.0 404 Not Found"); } // PAGE DISABLED? // $e = explode("|", $menu_entries); for( $i = 0 ; $i < count($e) ; $i++ ) { if (".$page" == $e[$i]) { if ($admin_login) $viewing_disabled_page = true; else $page = "under_construction"; } } $current_page_title = getPageTitle(); $current_page_description = getPageEntry( 1, $page ); $current_page_keywords = getPageEntry( 2, $page ); if ($current_page_keywords == "") $current_page_keywords = "Ostard Express Britannia Mail Ultima Online Guild"; $show_heading_list = ($page != "recruits_manual"); function getPageEntry( $entry_index, $page_name ) { global $page; if ($page_name == "") { if (file_exists("htmldata/$page.php")) $lines = file( "htmldata/$page.php" ); } else { if (file_exists("htmldata/$page_name.php")) $lines = file( "htmldata/$page_name.php" ); } if (!isset($lines[$entry_index])) return ""; $s = trim( $lines[$entry_index] ); if (substr($s, 0, 4) == ""; $s = trim( $lines[0] ); if (substr($s, 0, 4) == "
w3c   css
Top