2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 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 /************************************************************************/
13 define('TR_INCLUDE_PATH', '../../include/');
14 require_once(TR_INCLUDE_PATH.'vitals.inc.php');
15 require_once(TR_INCLUDE_PATH.'classes/DAO/CoursesDAO.class.php');
17 global $msg, $contentManager, $_course_id;
21 $msg->addError('MISSING_COURSE_ID');
22 header('Location: '.TR_BASE_HREF.'home/index.php');
26 if (isset($_sequence_links['resume']['url']))
27 $url = $_sequence_links['resume']['url'];
28 else if (isset($_sequence_links['first']['url']))
29 $url = $_sequence_links['first']['url'];
32 $url = TR_BASE_HREF.'home/course/course_start.php?_course_id='.$_course_id;
35 header('Location: '.$url);