dirroot.'/course/lib.php'); if (!is_enabled_auth('db')) { echo "Plugin not enabled!"; die; } $dbauth = get_auth_plugin('db'); $dbauth->sync_users(true);