summaryrefslogtreecommitdiff
path: root/inc/auth_mysql.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-01-14 17:40:57 +0100
committerandi <andi@splitbrain.org>2005-01-14 17:40:57 +0100
commit15fae1076f4439c7cd1302494a48e24f707a3020 (patch)
tree87c99f0393d0155fbf853f928f7e6d7ee04778bc /inc/auth_mysql.php
parent132bdbfe5a8ce4c57b4ae7d4391e99d05f186d43 (diff)
downloadrpg-15fae1076f4439c7cd1302494a48e24f707a3020.tar.gz
rpg-15fae1076f4439c7cd1302494a48e24f707a3020.tar.bz2
phpdoc comments
darcs-hash:20050114164057-9977f-e4936fde9037c65c3f32c30b31b2b7df35732f3a.gz
Diffstat (limited to 'inc/auth_mysql.php')
-rw-r--r--inc/auth_mysql.php26
1 files changed, 20 insertions, 6 deletions
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 @@
<?php
/**
- * This is used to authenticate against an MySQL server
+ * MySQL authentication backend
*
- * PHPs MySQL extension is needed
+ * PHP's MySQL extension is needed
+ *
+ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author Andreas Gohr <andi@splitbrain.org>
*/
/**
+ * 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 <andi@splitbrain.org>
*/
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 <andi@splitbrain.org>
+ * @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 <andi@splitbrain.org>
*/
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 <andi@splitbrain.org>
*/
function auth_createUser($user,$name,$mail){
msg("Sorry. Creating users is not supported by the MySQL backend, yet",-1);