9abc15b9a2200f19c4612f8438d4fe043181c486
[atutor.git] / docs / mods / _core / enrolment / index.php
1 <?php
2 /****************************************************************/
3 /* ATutor                                                                                                               */
4 /****************************************************************/
5 /* Copyright (c) 2002-2010                                      */
6 /* Inclusive Design Institute                                   */
7 /* http://atutor.ca                                                                                             */
8 /*                                                              */
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 /****************************************************************/
13 // $Id$
14 define('AT_INCLUDE_PATH', '../../../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16
17 if (!authenticate(AT_PRIV_ENROLLMENT, AT_PRIV_RETURN)) {
18         require(AT_INCLUDE_PATH.'header.inc.php');
19         $msg->printErrors('NOT_OWNER');
20         require (AT_INCLUDE_PATH.'footer.inc.php'); 
21         exit;
22 }
23
24 $course_id = $_SESSION['course_id'];
25
26 require(AT_INCLUDE_PATH.'../mods/_core/enrolment/html/enrollment.inc.php');
27 exit;
28 ?>