b76e038268578523843691f835d067fabdbef450
[atutor.git] / docs / mods / _standard / support_tools / 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_SUPPORT_TOOLS',       $this->getPrivilege());\r
16 define('AT_ADMIN_PRIV_SUPPORT_TOOLS', $this->getAdminPrivilege());\r
17 \r
18 /*******\r
19  * create a side menu box/stack.\r
20  */\r
21 $this->_stacks['support_tools'] = array('title_var'=>'support_tools','file'=>AT_INCLUDE_PATH.'../mods/_standard/support_tools/side_menu.inc.php');\r
22 \r
23 \r
24 if (admin_authenticate(AT_ADMIN_PRIV_SUPPORT_TOOLS, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
25         if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
26                 $this->_pages['mods/_standard/support_tools/scaffolds.php']['parent']    = 'mods/_core/courses/admin/courses.php';\r
27                 $this->_pages['mods/_standard/support_tools/scaffolds.php']['title_var'] = 'support_tools';\r
28                 $this->_pages['mods/_core/courses/admin/courses.php']['children'] = array('mods/_standard/support_tools/scaffolds.php');\r
29         } \r
30 }\r
31 ?>