]> git.mjollnir.org Git - moodle.git/commitdiff
Some docs added
authormoodler <moodler>
Sat, 16 Nov 2002 04:26:54 +0000 (04:26 +0000)
committermoodler <moodler>
Sat, 16 Nov 2002 04:26:54 +0000 (04:26 +0000)
auth/db/lib.php

index 0e1e4589131899ee514ca0a096d7f3ac8540ca25..b975dcc0d9d0100ed5738cb4d617677eec20ff14 100644 (file)
@@ -4,14 +4,14 @@
 // This code is completely untested so far - IT NEEDS TESTERS!
 // Looks like it should work though ...
 
-$CFG->auth_dbhost   = "localhost";
-$CFG->auth_dbtype   = "mysql";     // (postgresql, etc)
-$CFG->auth_dbname   = "authtest";
-$CFG->auth_dbtable  = "users";
-$CFG->auth_dbuser   = "user";
-$CFG->auth_dbpass   = "pass";
-$CFG->auth_dbfielduser   = "user";
-$CFG->auth_dbfieldpass   = "pass";
+$CFG->auth_dbhost   = "localhost"; // The computer hosting the database server
+$CFG->auth_dbtype   = "mysql";     // The database type (mysql, postgres7, access, oracle etc)
+$CFG->auth_dbname   = "authtest";  // Name of the database itself
+$CFG->auth_dbuser   = "user";      // Username with read access to the database
+$CFG->auth_dbpass   = "pass";      // Password matching the above username
+$CFG->auth_dbtable  = "users";     // Name of the table in the database
+$CFG->auth_dbfielduser = "user";   // Name of the field containing usernames
+$CFG->auth_dbfieldpass = "pass";   // Name of the field containing passwords
 
 function auth_user_login ($username, $password) {
 // Returns true if the username and password work