module.conf.php 4.08 KB
Newer Older
tbrehm's avatar
tbrehm committed
1
2
<?php

pedro_morgan's avatar
pedro_morgan committed
3
global $conf;
tbrehm's avatar
tbrehm committed
4

pedro_morgan's avatar
pedro_morgan committed
5
6
7
8
9
$module['name'] 		= 'admin';
$module['title'] 		= 'System';
$module['template'] 	= 'module.tpl.htm';
$module['startpage'] 	= 'admin/users_list.php';
$module['tab_width']    = '60';
tbrehm's avatar
tbrehm committed
10

pedro_morgan's avatar
pedro_morgan committed
11
12

$items[] = array( 'title' 	=> 'Add user',
tbrehm's avatar
tbrehm committed
13
14
15
				  'target' 	=> 'content',
				  'link'	=> 'admin/users_edit.php');

pedro_morgan's avatar
pedro_morgan committed
16
$items[] = array( 'title' 	=> 'Edit user',
tbrehm's avatar
tbrehm committed
17
18
19
20
				  'target' 	=> 'content',
				  'link'	=> 'admin/users_list.php');

				  
pedro_morgan's avatar
pedro_morgan committed
21
$module['nav'][] = array(	'title'	=> 'CP Users',
tbrehm's avatar
tbrehm committed
22
23
24
25
							'open' 	=> 1,
							'items'	=> $items);


26
// cleanup
tbrehm's avatar
tbrehm committed
27
28
unset($items);

pedro_morgan's avatar
pedro_morgan committed
29
$items[] = array( 'title' 	=> 'Add group',
tbrehm's avatar
tbrehm committed
30
31
32
				  'target' 	=> 'content',
				  'link'	=> 'admin/groups_edit.php');

pedro_morgan's avatar
pedro_morgan committed
33
$items[] = array( 'title' 	=> 'Edit group',
tbrehm's avatar
tbrehm committed
34
35
36
37
				  'target' 	=> 'content',
				  'link'	=> 'admin/groups_list.php');

				  
pedro_morgan's avatar
pedro_morgan committed
38
$module['nav'][] = array(	'title'	=> 'Groups',
tbrehm's avatar
tbrehm committed
39
40
41
42
							'open' 	=> 1,
							'items'	=> $items);


43
// cleanup
tbrehm's avatar
tbrehm committed
44
unset($items);
tbrehm's avatar
tbrehm committed
45
/*
pedro_morgan's avatar
pedro_morgan committed
46
$items[] = array( 'title' 	=> 'Add server',
tbrehm's avatar
tbrehm committed
47
48
				  'target' 	=> 'content',
				  'link'	=> 'admin/server_edit.php');
tbrehm's avatar
tbrehm committed
49
*/
pedro_morgan's avatar
pedro_morgan committed
50
$items[] = array( 'title' 	=> 'Edit server',
tbrehm's avatar
tbrehm committed
51
52
				  'target' 	=> 'content',
				  'link'	=> 'admin/server_list.php');
53
54
55
56
57

$items[] = array( 'title' 	=> 'Server Config',
				  'target' 	=> 'content',
				  'link'	=> 'admin/server_config_list.php');

tbrehm's avatar
tbrehm committed
58
/*
pedro_morgan's avatar
pedro_morgan committed
59
$items[] = array( 'title' 	=> 'Add Server IP',
tbrehm's avatar
tbrehm committed
60
61
				  'target' 	=> 'content',
				  'link'	=> 'admin/server_ip_edit.php');
tbrehm's avatar
tbrehm committed
62
*/
pedro_morgan's avatar
pedro_morgan committed
63
$items[] = array( 'title' 	=> 'Edit Server IP',
tbrehm's avatar
tbrehm committed
64
65
66
67
				  'target' 	=> 'content',
				  'link'	=> 'admin/server_ip_list.php');				  


pedro_morgan's avatar
pedro_morgan committed
68
$module['nav'][] = array(	'title'	=> 'Servers',
tbrehm's avatar
tbrehm committed
69
70
							'open' 	=> 1,
							'items'	=> $items);
tbrehm's avatar
tbrehm committed
71
72
73
74
75
76
77
78
79
80
81
82
// cleanup
unset($items);


$items[] = array( 'title' 	=> 'Firewall',
				  'target' 	=> 'content',
				  'link'	=> 'admin/firewall_list.php');				  


$module['nav'][] = array(	'title'	=> 'Firewall',
							'open' 	=> 1,
							'items'	=> $items);
tbrehm's avatar
tbrehm committed
83
84


85
// cleanup
tbrehm's avatar
tbrehm committed
86
87
unset($items);

88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106

$items[] = array( 'title' 	=> 'Repositories',
				  'target' 	=> 'content',
				  'link'	=> 'admin/software_repo_list.php');



$module['nav'][] = array(	'title'	=> 'Software',
							'open' 	=> 1,
							'items'	=> $items);


// cleanup
unset($items);




/*
pedro_morgan's avatar
pedro_morgan committed
107
$items[] = array( 'title' 	=> 'Add user',
tbrehm's avatar
tbrehm committed
108
109
110
				  'target' 	=> 'content',
				  'link'	=> 'admin/dbsync_edit.php');

pedro_morgan's avatar
pedro_morgan committed
111
$items[] = array( 'title' 	=> 'Edit user',
tbrehm's avatar
tbrehm committed
112
113
114
115
				  'target' 	=> 'content',
				  'link'	=> 'admin/dbsync_list.php');

				  
pedro_morgan's avatar
pedro_morgan committed
116
$items[] = array( 'title' 	=> 'Sync. Now',
tbrehm's avatar
tbrehm committed
117
118
119
				  'target' 	=> 'content',
				  'link'	=> 'admin/dbsync_cron.php');

pedro_morgan's avatar
pedro_morgan committed
120
$module['nav'][] = array(	'title'	=> 'DB Sync.',
tbrehm's avatar
tbrehm committed
121
122
123
124
							'open' 	=> 1,
							'items'	=> $items);


125
126
// cleanup
unset($items);
127
*/
128
129
130
131
132
133
134
135
136
137
138



$items[] = array( 'title' 	=> 'Languages',
				  'target' 	=> 'content',
				  'link'	=> 'admin/language_list.php');

$items[] = array( 'title' 	=> 'New Language',
				  'target' 	=> 'content',
				  'link'	=> 'admin/language_add.php');
				  
139
140
141
142
$items[] = array( 'title' 	=> 'Merge',
				  'target' 	=> 'content',
				  'link'	=> 'admin/language_complete.php');

143
144
145
146
147
148
149
150
151
152
153
154
155
$items[] = array( 'title' 	=> 'Export',
				  'target' 	=> 'content',
				  'link'	=> 'admin/language_export.php');

$items[] = array( 'title' 	=> 'Import',
				  'target' 	=> 'content',
				  'link'	=> 'admin/language_import.php');

$module['nav'][] = array(	'title'	=> 'Language Editor',
							'open' 	=> 1,
							'items'	=> $items);


tbrehm's avatar
tbrehm committed
156
// cleanup
tbrehm's avatar
tbrehm committed
157
158
159
unset($items);

/*
pedro_morgan's avatar
pedro_morgan committed
160
$items[] = array( 'title' 	=> 'Add user',
tbrehm's avatar
tbrehm committed
161
162
163
				  'target' 	=> 'content',
				  'link'	=> 'admin/filesync_edit.php');

pedro_morgan's avatar
pedro_morgan committed
164
$items[] = array( 'title' 	=> 'Edit user',
tbrehm's avatar
tbrehm committed
165
166
167
168
				  'target' 	=> 'content',
				  'link'	=> 'admin/filesync_list.php');

				  
pedro_morgan's avatar
pedro_morgan committed
169
$module['nav'][] = array(	'title'	=> 'File Sync.',
tbrehm's avatar
tbrehm committed
170
171
172
173
							'open' 	=> 1,
							'items'	=> $items);


tbrehm's avatar
tbrehm committed
174
// cleanup
tbrehm's avatar
tbrehm committed
175
176
177
178
179
unset($items);
*/


// Getting the admin options from other modules
180
$modules = explode(',', $_SESSION['s']['user']['modules']);
tbrehm's avatar
tbrehm committed
181
182
if(is_array($modules)) {
	foreach($modules as $mt) {
pedro_morgan's avatar
pedro_morgan committed
183
		if(is_file($mt.'/lib/admin.conf.php')) {
tbrehm's avatar
tbrehm committed
184
			$options = array();
185
			include_once(ISPC_WEB_PATH."/$mt/lib/admin.conf.php");
tbrehm's avatar
tbrehm committed
186
187
			if(is_array($options)) {
				foreach($options as $opt) {
pedro_morgan's avatar
pedro_morgan committed
188
					$module['nav'][] = $opt;
tbrehm's avatar
tbrehm committed
189
190
191
192
193
194
				}
			}
		}
	}
}

tbrehm's avatar
tbrehm committed
195
?>