2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
8 /* This program is free software. You can redistribute it and/or */
9 /* modify it under the terms of the GNU General Public License */
10 /* as published by the Free Software Foundation. */
11 /************************************************************************/
12 // $Id: create_course.php 9163 2010-01-21 20:17:15Z greg $
14 define('AT_INCLUDE_PATH', '../../../../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16 admin_authenticate(AT_ADMIN_PRIV_COURSES);
18 require(AT_INCLUDE_PATH.'../mods/_core/backups/classes/Backup.class.php');
19 require(AT_INCLUDE_PATH.'../mods/_core/courses/lib/course.inc.php');
21 if (isset($_POST['cancel'])) {
22 $msg->addFeedback('CANCELLED');
23 header('Location: '.AT_BASE_HREF.'mods/_core/courses/admin/courses.php');
25 } else if (isset($_POST['form_course'])) {
26 $errors = add_update_course($_POST, TRUE);
28 if ($errors !== FALSE) {
29 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
30 header('Location: '.AT_BASE_HREF.'mods/_core/courses/admin/courses.php');
35 require(AT_INCLUDE_PATH.'header.inc.php');
42 require(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_properties.inc.php');
46 require(AT_INCLUDE_PATH.'footer.inc.php');