bdafa0db6bc149159297e2e575f6f2853cfd30d9
[atutor.git] / mods / tle / module.php
1 <?php\r
2 global $url;\r
3 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
4 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
5 \r
6 $_student_tool = 'mods/tle/index_student.php';\r
7 \r
8 if (admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
9         $this->_pages['admin/config_edit.php']['children'] = array('mods/tle/index_admin.php');\r
10         $this->_pages['mods/tle/index_admin.php']['title_var'] = 'tle';\r
11         $this->_pages['mods/tle/index_admin.php']['parent']    = 'admin/config_edit.php';\r
12 }\r
13 \r
14 $this->_pages['mods/tle/index.php']['title_var'] = 'tle';\r
15 $this->_pages['mods/tle/index.php']['parent']    = 'tools/index.php';\r
16 \r
17 //if($is_admin){\r
18         $this->_pages['mods/tle/index.php']['children'] = array('mods/tle/assembler.php');\r
19         $this->_pages['mods/tle/assembler.php']['title_var'] = 'tle_assembler';\r
20         $this->_pages['mods/tle/assembler.php']['parent']    = 'mods/tle/index.php';\r
21 //}\r
22 \r
23 $this->_pages['mods/tle/import.php']['title_var'] = '';\r
24 \r
25 $this->_pages['tools/content/index.php']['title_var'] = 'tle';\r
26 $this->_pages['tools/content/index.php']['children'] = array('mods/tle/index.php');\r
27 \r
28 $this->_pages['mods/tle/index_student.php']['title_var'] = 'tle_search';\r
29 $this->_pages['mods/tle/index_student.php']['img']       = 'mods/tle/home-tle_search.gif';\r
30 \r
31 ?>