2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/
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 /************************************************************************/
15 define('AT_INCLUDE_PATH', '../include/');
16 require(AT_INCLUDE_PATH.'vitals.inc.php');
17 admin_authenticate(AT_ADMIN_PRIV_COURSES);
19 require(AT_INCLUDE_PATH.'classes/Backup/Backup.class.php');
20 require(AT_INCLUDE_PATH.'lib/course.inc.php');
22 if (isset($_POST['cancel'])) {
23 $msg->addFeedback('CANCELLED');
24 header('Location: '.AT_BASE_HREF.'admin/courses.php');
26 } else if (isset($_POST['form_course']) && !isset($_POST['setvisual'])) {
27 $errors = add_update_course($_POST, TRUE);
29 if ($errors !== FALSE) {
30 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
31 header('Location: '.AT_BASE_HREF.'admin/courses.php');
36 require(AT_INCLUDE_PATH.'header.inc.php');
43 require(AT_INCLUDE_PATH.'html/course_properties.inc.php');
45 require(AT_INCLUDE_PATH.'footer.inc.php');