git-svn-id: http://www.observium.org/svn/observer/trunk@432 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-05-11 14:59:40 +00:00
parent b260520d60
commit 42aa1bdf9e
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
<?php
@ini_set("session.gc_maxlifetime","10000");
@ini_set("session.gc_maxlifetime","0");
session_start();
if($_GET['logout']) {
@@ -12,6 +14,8 @@ if($_GET['logout']) {
mysql_query("INSERT INTO authlog (`user`,`address`,`result`) VALUES ('$olduser', '".$_SERVER["REMOTE_ADDR"]."', 'logged out')");
$auth_message = "Logged Out";
} else {
if($_POST['username'] && $_POST['password']){
$username = mres($_POST['username']);
$password = mres($_POST['password']);