From: <vb...@us...> - 2002-09-26 12:04:02
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv5061/core Modified Files: access_api.php user_api.php Log Message: - Modified the signup page to use the new style. - 0000059: Added checking for the enabled flag. - Updated scratch pad. Index: access_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/access_api.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- access_api.php 21 Sep 2002 02:44:33 -0000 1.8 +++ access_api.php 26 Sep 2002 12:03:59 -0000 1.9 @@ -105,7 +105,7 @@ ### get user info $query = "SELECT * FROM $g_phpWN_user_table - WHERE username='$c_username'"; + WHERE username='$c_username' AND enabled=1"; $result = db_query( $query ); $row = db_fetch_array( $result ); Index: user_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/user_api.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- user_api.php 17 Sep 2002 06:25:03 -0000 1.8 +++ user_api.php 26 Sep 2002 12:03:59 -0000 1.9 @@ -79,6 +79,11 @@ return ("(username='$c_username')"); } ### -------------------- + function user_where_username_equals_and_enabled( $p_username ) { + $c_username = db_prepare_string( $p_username ); + return ("((username='$c_username') AND (enabled=1))"); + } + ### -------------------- function user_where_email_equals( $p_email ) { $c_email = db_prepare_string( $p_email ); return ("(email='$c_email')"); |