From 1900cbb3094acf5c43281b1f54ab63e6ed134ec3 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 6 Mar 2010 01:19:06 +0000 Subject: [PATCH] can has working pages? NO CAN HAS :( git-svn-id: http://www.observium.org/svn/observer/trunk@993 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/authenticate.inc.php | 2 +- html/includes/authentication/http-auth.inc.php | 2 +- html/includes/authentication/ldap.inc.php | 2 +- html/includes/authentication/mysql.inc.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/html/includes/authenticate.inc.php b/html/includes/authenticate.inc.php index f1d169e33..ac79c164c 100644 --- a/html/includes/authenticate.inc.php +++ b/html/includes/authenticate.inc.php @@ -45,7 +45,7 @@ if (isset($_SESSION['username'])) { if (authenticate($_SESSION['username'],$_SESSION['password'])) { - $_SESSION['userlevel'] = get_userlevel($_SESSION['username']) + $_SESSION['userlevel'] = get_userlevel($_SESSION['username']); $_SESSION['user_id'] = $row['user_id']; if(!$_SESSION['authenticated']) { diff --git a/html/includes/authentication/http-auth.inc.php b/html/includes/authentication/http-auth.inc.php index 553a50553..5edb8d876 100644 --- a/html/includes/authentication/http-auth.inc.php +++ b/html/includes/authentication/http-auth.inc.php @@ -54,7 +54,7 @@ function user_exists($username) function get_userlevel($username) { $sql = "SELECT level FROM `users` WHERE `username`='".mres($username)."'"; - $row = mysql_fetch_array(mysql_query($sql); + $row = mysql_fetch_array(mysql_query($sql)); return $row['level']; } diff --git a/html/includes/authentication/ldap.inc.php b/html/includes/authentication/ldap.inc.php index 8d4bd521a..e987c1c46 100644 --- a/html/includes/authentication/ldap.inc.php +++ b/html/includes/authentication/ldap.inc.php @@ -64,7 +64,7 @@ function get_userlevel($username) { # FIXME should come from LDAP $sql = "SELECT level FROM `users` WHERE `username`='".mres($username)."'"; - $row = mysql_fetch_array(mysql_query($sql); + $row = mysql_fetch_array(mysql_query($sql)); return $row['level']; } diff --git a/html/includes/authentication/mysql.inc.php b/html/includes/authentication/mysql.inc.php index 627baf10c..e7f6410f0 100644 --- a/html/includes/authentication/mysql.inc.php +++ b/html/includes/authentication/mysql.inc.php @@ -45,7 +45,7 @@ function user_exists($username) function get_userlevel($username) { $sql = "SELECT level FROM `users` WHERE `username`='".mres($username)."'"; - $row = mysql_fetch_array(mysql_query($sql); + $row = mysql_fetch_array(mysql_query($sql)); return $row['level']; }