3 * doesn't allow this file to be loaded with a browser.
\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }
\r
8 * this file must only be included within a Module obj
\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
\r
13 * assign the instructor and admin privileges to the constants.
\r
15 define('AT_PRIV_ATALKER', $this->getPrivilege());
\r
16 define('AT_ADMIN_PRIV_ATALKER', $this->getAdminPrivilege());
\r
19 * if this module is to be made available to students on the Home or Main Navigation.
\r
21 $_student_tool = 'mods/atalker/index.php';
\r
24 * add the admin pages when needed.
\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
33 * student and instructor page.
\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
39 /* Modified by Eura Ercolani: mimetype support - BEGIN */
\r
41 if(isset($_POST['mp3HiddenMimeType']))
\r
43 $_SESSION['mp3HiddenMimeType']=$_POST['mp3HiddenMimeType'];
\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
51 /* Modified by Eura Ercolani: introducing global variables - END */
\r