From 15fae1076f4439c7cd1302494a48e24f707a3020 Mon Sep 17 00:00:00 2001 From: andi Date: Fri, 14 Jan 2005 17:40:57 +0100 Subject: phpdoc comments darcs-hash:20050114164057-9977f-e4936fde9037c65c3f32c30b31b2b7df35732f3a.gz --- inc/auth_mysql.php | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'inc/auth_mysql.php') diff --git a/inc/auth_mysql.php b/inc/auth_mysql.php index 213c4a852..46e175c17 100644 --- a/inc/auth_mysql.php +++ b/inc/auth_mysql.php @@ -1,14 +1,21 @@ */ /** + * Execute SQL + * * Executes SQL statements and returns the results as list * of hashes. Returns false on error. Returns auto_increment * IDs on INSERT statements. + * + * @author Andreas Gohr */ function auth_mysql_runsql($sql_string) { global $conf; @@ -41,9 +48,13 @@ function auth_mysql_runsql($sql_string) { } /** - * required auth function + * Check user+password [required auth function] * - * Checks if a user with the given password exists + * Checks if the given user exists and the given + * plaintext password is correct + * + * @author Andreas Gohr + * @return bool */ function auth_checkPass($user,$pass){ global $conf; @@ -56,7 +67,7 @@ function auth_checkPass($user,$pass){ } /** - * Required auth function + * Return user info [required auth function] * * Returns info about the given user needs to contain * at least these fields: @@ -65,6 +76,7 @@ function auth_checkPass($user,$pass){ * mail string email addres of the user * grps array list of groups the user is in * + * @author Andreas Gohr */ function auth_getUserData($user){ global $conf; @@ -86,9 +98,11 @@ function auth_getUserData($user){ } /** - * Required auth function + * Create a new User [required auth function] * * Not implemented + * + * @author Andreas Gohr */ function auth_createUser($user,$name,$mail){ msg("Sorry. Creating users is not supported by the MySQL backend, yet",-1); -- cgit v1.2.3