root/dev/common/admin_menu.php @ 177

Revision 177, 1.6 KB (checked in by exi, 16 years ago)

Removed unneeded admin_rental.php and maintenance.php.
Converted the first admin page to a new format, see class.options.php for details.

Line 
1<?php
2require_once("class.box.php");
3require_once('class.options.php');
4
5// include all admin modules
6$dir = 'common/admin/';
7if (is_dir($dir))
8{
9    if ($dh = opendir($dir))
10    {
11        while (($file = readdir($dh)) !== false)
12        {
13            if (strstr($file, 'admin_') && substr($file, -4) == '.php')
14            {
15                require_once($dir.$file);
16            }
17        }
18        closedir($dh);
19    }
20}
21
22// overload the box object to force every admin page to use the new options menu
23class Box2 extends Box
24{
25    function generate()
26    {
27        return options::genAdminMenu();
28    }
29}
30
31$menubox = new Box2();
32
33options::oldMenu('Appearance', "Contracts", "?a=admin_cc&op=view&type=contract");
34options::oldMenu('Appearance', "Campaigns", "?a=admin_cc&op=view&type=campaign");
35options::oldMenu('Appearance', "Standings", "?a=admin_standings");
36options::oldMenu('Appearance', "Map Options", "?a=admin_mapoptions");
37options::oldMenu('Advanced', "Ship Values", "?a=admin_shp_val");
38options::oldMenu('Advanced', "Synchronization", "?a=admin_sync");
39options::oldMenu('Advanced', "Post Permissions", "?a=admin_postperm");
40options::oldMenu('Modules'," Mods", "?a=admin_mods");
41options::oldMenu('Maintenance', "Auditing", "?a=admin_audit");
42options::oldMenu('Maintenance', "Kill Import - files", "?a=kill_import");
43options::oldMenu('Maintenance', "Kill Import - csv", "?a=kill_import_csv");
44options::oldMenu('Maintenance', "Kill Export - files", "?a=kill_export");
45options::oldMenu('Maintenance', "Kill Export - csv", "?a=kill_export_search");
46options::oldMenu('Maintenance', "Logout", "?a=logout");
47?>
Note: See TracBrowser for help on using the browser.