Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
0ded734a
Commit
0ded734a
authored
Jul 19, 2012
by
cfoe
Browse files
changed menu item generation from users current to all installed themes in the admin module
parent
dae3b41f
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/admin/lib/module.conf.php
View file @
0ded734a
...
@@ -78,6 +78,20 @@ $items[] = array( 'title' => 'Interface Config',
...
@@ -78,6 +78,20 @@ $items[] = array( 'title' => 'Interface Config',
'link'
=>
'admin/system_config_edit.php?id=1'
,
'link'
=>
'admin/system_config_edit.php?id=1'
,
'html_id'
=>
'interface_config'
);
'html_id'
=>
'interface_config'
);
//**** Load the settings pages of all installed themes
$menu_dir
=
ISPC_WEB_PATH
.
'/admin/lib/interface.d'
;
if
(
is_dir
(
$menu_dir
))
{
if
(
$dh
=
opendir
(
$menu_dir
))
{
//** Go through all files in the menu dir
while
((
$file
=
readdir
(
$dh
))
!==
false
)
{
if
(
$file
!=
'.'
&&
$file
!=
'..'
&&
substr
(
$file
,
-
9
,
9
)
==
'.menu.php'
)
{
include_once
(
$menu_dir
.
'/'
.
$file
);
}
}
}
}
include_once
(
ISPC_WEB_PATH
.
'/tools/lib/interface.d/'
.
$_SESSION
[
's'
][
'user'
][
'app_theme'
]
.
'.menu.php'
);
include_once
(
ISPC_WEB_PATH
.
'/tools/lib/interface.d/'
.
$_SESSION
[
's'
][
'user'
][
'app_theme'
]
.
'.menu.php'
);
$module
[
'nav'
][]
=
array
(
'title'
=>
'Interface'
,
$module
[
'nav'
][]
=
array
(
'title'
=>
'Interface'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment