- adding overview for admin_cronjobs (planned for 1.0);
- added 'isactive' for cronjobs so the admin can deactivate them (planned for 1.0); - re-adding 'panel_diskspace' and 'panel_diskspace_admins' to install/froxlor.sql; - show only 'logout' and 'froxlor update' in menulist when files have been updated and db is not up to date; - bugixing success.tpl (closing <a>-tag);
This commit is contained in:
44
lib/init.php
44
lib/init.php
@@ -322,8 +322,48 @@ if(isset($userinfo['loginname'])
|
||||
|
||||
if(AREA == 'admin' || AREA == 'customer')
|
||||
{
|
||||
$navigation_data = loadConfigArrayDir('./lib/navigation/');
|
||||
$navigation = buildNavigation($navigation_data[AREA], $userinfo);
|
||||
if(hasUpdates($version))
|
||||
{
|
||||
/*
|
||||
* if froxlor-files have been updated
|
||||
* but not yet configured by the admin
|
||||
* we only show logout and the update-page
|
||||
*/
|
||||
$navigation_data = array (
|
||||
'admin' => array (
|
||||
'index' => array (
|
||||
'url' => 'admin_index.php',
|
||||
'label' => $lng['admin']['overview'],
|
||||
'elements' => array (
|
||||
array (
|
||||
'label' => $lng['menue']['main']['username'],
|
||||
),
|
||||
array (
|
||||
'url' => 'admin_index.php?action=logout',
|
||||
'label' => $lng['login']['logout'],
|
||||
),
|
||||
),
|
||||
),
|
||||
'server' => array (
|
||||
'label' => $lng['admin']['server'],
|
||||
'required_resources' => 'change_serversettings',
|
||||
'elements' => array (
|
||||
array (
|
||||
'url' => 'admin_updates.php?page=overview',
|
||||
'label' => $lng['update']['update'],
|
||||
'required_resources' => 'change_serversettings',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$navigation = buildNavigation($navigation_data['admin'], $userinfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
$navigation_data = loadConfigArrayDir('./lib/navigation/');
|
||||
$navigation = buildNavigation($navigation_data[AREA], $userinfo);
|
||||
}
|
||||
unset($navigation_data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user