require course/lib.php