multiauth: migrated all files to the new OO API, written new API documentation

Author: Martin Langhoff <[email protected]>
This commit is contained in:
martinlanghoff
2007-01-04 04:52:42 +00:00
parent d7275959a6
commit b9ddb2d5ea
52 changed files with 5366 additions and 3396 deletions
+4 -3
View File
@@ -21,7 +21,7 @@
*/
if(!empty($_SERVER['GATEWAY_INTERFACE'])){
if (!empty($_SERVER['GATEWAY_INTERFACE'])) {
error_log("should not be called from apache!");
exit;
}
@@ -31,9 +31,10 @@ require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); // global moodl
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/lib/blocklib.php');
require_once($CFG->dirroot.'/mod/resource/lib.php');
require_once($CFG->dirroot.'/auth/db/lib.php');
require_once($CFG->dirroot.'/lib/moodlelib.php');
require_once($CFG->dirroot.'/mod/forum/lib.php');
$CFG->debug=10;
auth_sync_users(true );
$dbauth = get_auth_plugin('db');
$dbauth->sync_users(true);
?>