2 /****************************************************************/
4 /****************************************************************/
5 /* Copyright (c) 2002-2006 by Greg Gay & Joel Kronenberg */
6 /* Adaptive Technology Resource Centre / University of Toronto */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /****************************************************************/
14 define('AT_INCLUDE_PATH', '../../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
17 admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT);
19 if (!isset($_GET['course_id'])) {
20 $sql = "SELECT course_id FROM ".TABLE_PREFIX."courses ORDER BY title LIMIT 1";
21 $result = mysql_query($sql, $db);
22 if ($row = mysql_fetch_assoc($result)) {
23 $course_id = intval($row['course_id']);
25 require(AT_INCLUDE_PATH.'header.inc.php');
26 echo _AT('none_found');
27 require(AT_INCLUDE_PATH.'footer.inc.php');
31 $course_id = intval($_REQUEST['course_id']);
33 if (isset($system_courses[$course_id]['member_id'])) {
34 require(AT_INCLUDE_PATH.'html/enrollment.inc.php');