Working on new access system...
[estigi.git] / core / system / system.boot
blob728b2961a2dbd9a07a73a92b5b8fa2529c7a4687
1 <?php
3 function system_isityou(){
5         global $x, $xx, $user;
6  
7         switch ($x){
8                 case 'system/admin':
9                         return system_admin_main();
10                 case 'system/admin/php':
11                         return system_show_php_info();
12                 case 'system/admin/settings':
13                         return system_settings_page('system_settings_form', 'system', array('admin site'), 'System Main Settings');
14                 case 'system/admin/rebuild/modules':
15                         return system_rebuild_modules();
16                         break;
17                 case 'system/admin/modules':
18                         return system_modules_overview();
19                         break;
20         }
22         if(path_wildcards('system/admin/perms/edit/%', TRUE)){
23                 if(user_access('admin_perms', 'system')){
24                         return system_settings_page($xx[4], 'perms');
25                 }
26         }
28         if(path_wildcards('system/admin/settings/%', TRUE)){
29                 if(user_access('admin_modules', 'system')){
30                         return system_settings_page($xx[3]);
31                 }
32                         else{
33                                 return PATH_NO_ACCES;
34                         }
35         }
37         if(path_wildcards('system/admin/modules/admin/%', TRUE)){
38                         return system_modules_admin($xx[4]);
39         }