/* auth.php Authentication/Authorization function library Copyright (C) 2000 Contributors of the QuakeForge Project Please see the file "AUTHORS" for a list of contributors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to: Free Software Foundation, Inc. 59 Temple Place - Suite 330 Boston, MA 02111-1307, USA. */ have ('auth'); need ('table'); /* SQL definition for member list table CREATE TABLE members ( u_key int DEFAULT '0' NOT NULL auto_increment PRIMARY KEY, u_admin char DEFAULT 'N' NOT NULL, u_username tinytext DEFAULT '' NOT NULL, u_password tinytext DEFAULT '' NOT NULL, u_fullname tinytext DEFAULT '' NOT NULL, u_email tinytext DEFAULT '' NOT NULL, u_phone tinytext DEFAULT '', u_addr1 tinytext DEFAULT '', u_addr2 tinytext DEFAULT '', u_country tinytext DEFAULT '', u_secret tinytext, u_plan text DEFAULT '' ); */ define ('EXPIRY', 86400); // Seconds until cookie expires define ('thisUrl', ereg_replace ('index.php', '', getenv ('SCRIPT_NAME'))); /* authLoginForm Display a login form. */ function authLoginForm ($title) { global $siteName, $pageName, $focused; require siteHome ."/parts/head.php"; // Load the HEAD and open BODY require siteHome ."/parts/topstrip.php"; // Display top strip require siteHome ."/parts/titletable.php"; // Display main title w/ logos ?>
include siteHome . "/parts/menu.php"; ?> | tableHeader("100%", "black"); ?> |
require siteHome . "/parts/topmain.php"; ?> | tableSpacer( 9, 9, 1, "black"); ?>|