tbrehm
2007-08-21 0108768810a47a03e42f205ee6fa1cd5bd8ef439
commit | author | age
4e44dd 1 <?php
T 2
a44efa 3 global $conf;
P 4
5 $module['name']         = 'admin';
6 $module['title']         = 'System';
7 $module['template']     = 'module.tpl.htm';
8 $module['startpage']     = 'admin/users_list.php';
9 $module['tab_width']    = '60';
4e44dd 10
T 11
a44efa 12 $items[] = array( 'title'     => 'Add user',
4e44dd 13                   'target'     => 'content',
T 14                   'link'    => 'admin/users_edit.php');
15
a44efa 16 $items[] = array( 'title'     => 'Edit user',
4e44dd 17                   'target'     => 'content',
T 18                   'link'    => 'admin/users_list.php');
19
20                   
a44efa 21 $module['nav'][] = array(    'title'    => 'CP Users',
4e44dd 22                             'open'     => 1,
T 23                             'items'    => $items);
24
25
a44efa 26 // aufr�umen
4e44dd 27 unset($items);
T 28
a44efa 29 $items[] = array( 'title'     => 'Add group',
4e44dd 30                   'target'     => 'content',
T 31                   'link'    => 'admin/groups_edit.php');
32
a44efa 33 $items[] = array( 'title'     => 'Edit group',
4e44dd 34                   'target'     => 'content',
T 35                   'link'    => 'admin/groups_list.php');
36
37                   
a44efa 38 $module['nav'][] = array(    'title'    => 'Groups',
4e44dd 39                             'open'     => 1,
T 40                             'items'    => $items);
41
42
a44efa 43 // aufr�umen
4e44dd 44 unset($items);
a35764 45 /*
a44efa 46 $items[] = array( 'title'     => 'Add server',
4e44dd 47                   'target'     => 'content',
T 48                   'link'    => 'admin/server_edit.php');
a35764 49 */
a44efa 50 $items[] = array( 'title'     => 'Edit server',
4e44dd 51                   'target'     => 'content',
T 52                   'link'    => 'admin/server_list.php');
a35764 53 /*
a44efa 54 $items[] = array( 'title'     => 'Add Server IP',
18341e 55                   'target'     => 'content',
T 56                   'link'    => 'admin/server_ip_edit.php');
a35764 57 */
a44efa 58 $items[] = array( 'title'     => 'Edit Server IP',
18341e 59                   'target'     => 'content',
T 60                   'link'    => 'admin/server_ip_list.php');                  
61
62
a44efa 63 $module['nav'][] = array(    'title'    => 'Servers',
4e44dd 64                             'open'     => 1,
T 65                             'items'    => $items);
66
67
a44efa 68 // aufr�umen
4e44dd 69 unset($items);
T 70
a44efa 71 $items[] = array( 'title'     => 'Add user',
4e44dd 72                   'target'     => 'content',
T 73                   'link'    => 'admin/dbsync_edit.php');
74
a44efa 75 $items[] = array( 'title'     => 'Edit user',
4e44dd 76                   'target'     => 'content',
T 77                   'link'    => 'admin/dbsync_list.php');
78
79                   
a44efa 80 $items[] = array( 'title'     => 'Sync. Now',
4e44dd 81                   'target'     => 'content',
T 82                   'link'    => 'admin/dbsync_cron.php');
83
a44efa 84 $module['nav'][] = array(    'title'    => 'DB Sync.',
4e44dd 85                             'open'     => 1,
T 86                             'items'    => $items);
87
88
a44efa 89 // aufr�umen
4e44dd 90 unset($items);
T 91
92 /*
a44efa 93 $items[] = array( 'title'     => 'Add user',
4e44dd 94                   'target'     => 'content',
T 95                   'link'    => 'admin/filesync_edit.php');
96
a44efa 97 $items[] = array( 'title'     => 'Edit user',
4e44dd 98                   'target'     => 'content',
T 99                   'link'    => 'admin/filesync_list.php');
100
101                   
a44efa 102 $module['nav'][] = array(    'title'    => 'File Sync.',
4e44dd 103                             'open'     => 1,
T 104                             'items'    => $items);
105
106
a44efa 107 // aufr�umen
4e44dd 108 unset($items);
T 109 */
110
111
112 // Getting the admin options from other modules
99bf8f 113 $modules = explode(',', $_SESSION['s']['user']['modules']);
4e44dd 114 if(is_array($modules)) {
T 115     foreach($modules as $mt) {
a44efa 116         if(is_file($mt.'/lib/admin.conf.php')) {
4e44dd 117             $options = array();
99bf8f 118             include_once(ISPC_WEB_PATH."/$mt/lib/admin.conf.php");
4e44dd 119             if(is_array($options)) {
T 120                 foreach($options as $opt) {
a44efa 121                     $module['nav'][] = $opt;
4e44dd 122                 }
T 123             }
124         }
125     }
126 }
127
b5a2f8 128 ?>