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