3 require_once("include/connect.inc.php");
5 require_once("squasher.class.php");
7 $vars['debug'] = $_GET['debug'];
8 $vars['newtpl'] = $_GET['newtpl'];
9 $tools = $_GET['tools'];
11 foreach($_POST AS $key => $value)
12 $submitted[$key]=$value;
14 $salt = md5($_SERVER['REMOTE_ADDR']."|".$_SERVER['HTTP_USER_AGENT']);
16 if ($tools=="logout"){
18 $_SESSION['creds']['validated'] = false;
19 header( 'Location: '.$_SERVER['PHP_SELF'] ) ;
22 if (!$_SESSION['creds']['validated']){
23 validate_user($_POST['user'], $_POST['pass'], $salt);
26 if ($_SESSION['creds']['validated'] || isset($_GET['f'])) {
27 //if ($_SESSION['creds']['validated']){
29 include("squasher.php");
33 require_once("smarty/Smarty.class.php");
37 $smarty->assign('salt',$salt);
38 $smarty->assign('debug',$debug);
39 $smarty->display('login.tpl');
41 // vim: syntax=php ts=4 sw=4 sts=4 sr noet