[PHPPlanner-cvs] phpplanner/lib functions.php,1.5,1.6
Status: Beta
Brought to you by:
tomsommer
From: Tom S. <tom...@us...> - 2004-04-24 22:35:57
|
Update of /cvsroot/phpplanner/phpplanner/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2895/lib Modified Files: functions.php Log Message: Make logout link work Index: functions.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/lib/functions.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- functions.php 7 Sep 2003 16:07:54 -0000 1.5 +++ functions.php 24 Apr 2004 22:35:43 -0000 1.6 @@ -125,7 +125,7 @@ delete_cookie("cal_username"); delete_cookie("cal_password"); - $SQL = mysql_query("SELECT id,name FROM cal_users WHERE username = '". $username."' AND password = '". $password ."' and allow_add = 'true'") or die(mysql_error()); + $SQL = mysql_query("SELECT id,name FROM cal_users WHERE username = '". $username."' AND password = '". $password ."' and ((allow_add = 'true' and is_validated = 'true') or is_admin='true')") or die(mysql_error()); if (mysql_num_rows($SQL) > 0) { |