1 | <?php |
---|
2 | require_once('common/includes/class.options.php'); |
---|
3 | |
---|
4 | // include all admin modules |
---|
5 | // this doesnt need to check for itself because its already loaded |
---|
6 | $dir = 'common/admin/'; |
---|
7 | if (is_dir($dir)) |
---|
8 | { |
---|
9 | if ($dh = opendir($dir)) |
---|
10 | { |
---|
11 | while (($file = readdir($dh)) !== false) |
---|
12 | { |
---|
13 | // only load auto-option files |
---|
14 | if (strstr($file, 'option_') && substr($file, -4) == '.php') |
---|
15 | { |
---|
16 | require_once($dir.$file); |
---|
17 | } |
---|
18 | } |
---|
19 | closedir($dh); |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | // load all auto-options from mods |
---|
24 | $mods_active = explode(',', config::get('mods_active')); |
---|
25 | $modOverrides = false; |
---|
26 | foreach ($mods_active as $mod) |
---|
27 | { |
---|
28 | if (file_exists('mods/'.$mod.'/auto_settings.php')) |
---|
29 | { |
---|
30 | include('mods/'.$mod.'/auto_settings.php'); |
---|
31 | } |
---|
32 | } |
---|
33 | |
---|
34 | // overload the box object to force every admin page to use the new options menu |
---|
35 | class Box2 extends Box |
---|
36 | { |
---|
37 | function generate() |
---|
38 | { |
---|
39 | return options::genAdminMenu(); |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | $menubox = new Box2(); |
---|
44 | |
---|
45 | options::oldMenu('Features', "Contracts", "?a=admin_cc&op=view&type=contract"); |
---|
46 | options::oldMenu('Features', "Campaigns", "?a=admin_cc&op=view&type=campaign"); |
---|
47 | options::oldMenu('Features', "Standings", "?a=admin_standings"); |
---|
48 | options::oldMenu('Appearance', "Map Options", "?a=admin_mapoptions"); |
---|
49 | |
---|
50 | options::oldMenu('Advanced', "Ship Values", "?a=admin_shp_val"); |
---|
51 | #options::oldMenu('Advanced', "Synchronization", "?a=admin_sync"); |
---|
52 | options::oldMenu('Advanced', "Post Permissions", "?a=admin_postperm"); |
---|
53 | |
---|
54 | options::oldMenu('Features', "Modules", "?a=admin_mods"); |
---|
55 | |
---|
56 | options::oldMenu('Features', "Feed Syndication", "?a=admin_feedsyndication"); |
---|
57 | options::oldMenu('Features', "API Mod", "?a=admin_apimod"); |
---|
58 | |
---|
59 | options::oldMenu('Maintenance', "Auditing", "?a=admin_audit"); |
---|
60 | options::oldMenu('Maintenance', "Troubleshooting", "?a=admin_troubleshooting"); |
---|
61 | options::oldMenu('Maintenance', "Settings Report", "?a=admin_status"); |
---|
62 | options::oldMenu('Kill Import/Export', "Kill Import - files", "?a=admin_kill_import"); |
---|
63 | options::oldMenu('Kill Import/Export', "Kill Import - csv", "?a=admin_kill_import_csv"); |
---|
64 | options::oldMenu('Kill Import/Export', "Kill Export - files", "?a=admin_kill_export"); |
---|
65 | options::oldMenu('Kill Import/Export', "Kill Export - csv", "?a=admin_kill_export_search"); |
---|
66 | options::oldMenu('- Logout -', "Logout", "?a=logout"); |
---|
67 | |
---|
68 | #options::oldMenu('User', 'Titles', '?a=admin_titles'); |
---|
69 | |
---|
70 | options::oldMenu('Appearance', "Top Navigation", "?a=admin_navmanager"); |
---|
71 | ?> |
---|