remove old readme
[atutor.git] / docs / mods / _core / modules / module.php
1 <?php\r
2 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
3 \r
4 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
5 \r
6 define('AT_ADMIN_PRIV_MODULES', $this->getAdminPrivilege());\r
7 \r
8 //admin pages\r
9 if (admin_authenticate(AT_ADMIN_PRIV_MODULES, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
10         $this->_pages[AT_NAV_ADMIN] = array('mods/_core/modules/index.php');\r
11         $this->_pages['mods/_core/modules/index.php']['parent'] = AT_NAV_ADMIN;\r
12         \r
13         $this->_pages['mods/_core/modules/index.php']['title_var'] = 'modules';\r
14         $this->_pages['mods/_core/modules/index.php']['guide']     = 'admin/?p=modules.php';\r
15         $this->_pages['mods/_core/modules/index.php']['children']  = array('mods/_core/modules/install_modules.php');\r
16 \r
17         $this->_pages['mods/_core/modules/details.php']['title_var'] = 'details';\r
18         $this->_pages['mods/_core/modules/details.php']['parent']    = 'mods/_core/modules/index.php';\r
19 \r
20         $this->_pages['mods/_core/modules/module_uninstall_step_1.php']['title_var'] = 'module_uninstall';\r
21         $this->_pages['mods/_core/modules/module_uninstall_step_1.php']['parent']    = 'mods/_core/modules/index.php';\r
22     $this->_pages['mods/_core/modules/module_uninstall_step_1.php']['avail_in_mobile']   = false;\r
23         \r
24         $this->_pages['mods/_core/modules/module_uninstall_step_2.php']['title_var'] = 'module_uninstall';\r
25         $this->_pages['mods/_core/modules/module_uninstall_step_2.php']['parent']    = 'mods/_core/modules/index.php';\r
26         $this->_pages['mods/_core/modules/module_uninstall_step_2.php']['avail_in_mobile']   = false;\r
27         \r
28         $this->_pages['mods/_core/modules/module_uninstall_step_3.php']['title_var'] = 'module_uninstall';\r
29         $this->_pages['mods/_core/modules/module_uninstall_step_3.php']['parent']    = 'mods/_core/modules/index.php';\r
30         $this->_pages['mods/_core/modules/module_uninstall_step_3.php']['avail_in_mobile']   = false;\r
31         \r
32         $this->_pages['mods/_core/modules/install_modules.php']['title_var'] = 'install_modules';\r
33         $this->_pages['mods/_core/modules/install_modules.php']['parent']    = 'mods/_core/modules/index.php';\r
34         $this->_pages['mods/_core/modules/install_modules.php']['guide']     = 'admin/?p=modules.php';\r
35         $this->_pages['mods/_core/modules/install_modules.php']['avail_in_mobile']   = false;\r
36 \r
37         $this->_pages['mods/_core/modules/version_history.php']['title_var'] = 'version_history';\r
38         $this->_pages['mods/_core/modules/version_history.php']['parent']    = 'mods/_core/modules/install_modules.php';\r
39 \r
40         $this->_pages['mods/_core/modules/module_install_step_1.php']['title_var'] = 'details';\r
41         $this->_pages['mods/_core/modules/module_install_step_1.php']['parent']    = 'mods/_core/modules/install_modules.php';\r
42 \r
43         $this->_pages['mods/_core/modules/module_install_step_2.php']['title_var'] = 'details';\r
44         $this->_pages['mods/_core/modules/module_install_step_2.php']['parent']    = 'mods/_core/modules/install_modules.php';\r
45 \r
46         $this->_pages['mods/_core/modules/module_install_step_3.php']['title_var'] = 'details';\r
47         $this->_pages['mods/_core/modules/module_install_step_3.php']['parent']    = 'mods/_core/modules/install_modules.php';\r
48 \r
49         $this->_pages['mods/_core/modules/confirm.php']['title_var'] = 'confirm';\r
50         $this->_pages['mods/_core/modules/confirm.php']['parent']    = 'mods/_core/modules/add_new.php';\r
51 }\r
52 \r
53 ?>