libdir.'/blocklib.php'); require_once($CFG->dirroot.'/course/lib.php'); require_once($CFG->dirroot.'/mod/resource/lib.php'); require_once($CFG->dirroot.'/mod/forum/lib.php'); if (!is_enabled_auth('db')) { echo "Plugin not enabled!"; die; } $dbauth = get_auth_plugin('db'); $dbauth->sync_users(true); ?>