11113afadbd8f1e64381ff00da2059cae4e8502c
[atutor.git] / mods / atalker / module.php
1 <?php\r
2 /*******\r
3  * doesn't allow this file to be loaded with a browser.\r
4  */\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
6 \r
7 /******\r
8  * this file must only be included within a Module obj\r
9  */\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
11 \r
12 /*******\r
13  * assign the instructor and admin privileges to the constants.\r
14  */\r
15 define('AT_PRIV_ATALKER',       $this->getPrivilege());\r
16 define('AT_ADMIN_PRIV_ATALKER', $this->getAdminPrivilege());\r
17 \r
18 /*******\r
19  * if this module is to be made available to students on the Home or Main Navigation.\r
20  */\r
21 $_student_tool = 'mods/atalker/index.php';\r
22 \r
23 /*******\r
24  * add the admin pages when needed.\r
25  */\r
26 if (admin_authenticate(AT_ADMIN_PRIV_HELLO_WORLD, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
27         $this->_pages[AT_NAV_ADMIN] = array('mods/atalker/admin/admin_index.php');\r
28         $this->_pages['mods/atalker/admin/admin_index.php']['parent']    = AT_NAV_ADMIN;\r
29         $this->_pages['mods/atalker/admin/admin_index.php']['title_var'] = 'atalker';\r
30 }\r
31 \r
32 /*******\r
33  * student  and instructor page.\r
34  */\r
35 $this->_pages['mods/atalker/index.php']['title_var'] = 'atalker';\r
36 $this->_pages['mods/atalker/index.php']['img']       = 'mods/atalker/images/atalker.gif';\r
37 \r
38 \r
39 /* Modified by Eura Ercolani: mimetype support - BEGIN */\r
40 \r
41 if(isset($_POST['mp3HiddenMimeType']))\r
42 {\r
43         $_SESSION['mp3HiddenMimeType']=$_POST['mp3HiddenMimeType'];\r
44 }\r
45 /* Modified by Eura Ercolani: mimetype support - END */\r
46 /* Modified by Eura Ercolani: introducing global variabiles - BEGIN */\r
47 //ATutor root web folder\r
48 $_ATutor_home_path = '/home/eura/public_html/ATutor/';\r
49 \r
50 \r
51 /* Modified by Eura Ercolani: introducing global variables - END */\r
52 \r
53 ?>