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