mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
83 lines
3.4 KiB
PHP
83 lines
3.4 KiB
PHP
<?php
|
|
/**************************************************************************\
|
|
* phpGroupWare - administration *
|
|
* http://www.phpgroupware.org *
|
|
* -------------------------------------------- *
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
* under the terms of the GNU General Public License as published by the *
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
* option) any later version. *
|
|
\**************************************************************************/
|
|
|
|
/* $Id$ */
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('site_config_access',1,'admin'))
|
|
{
|
|
$file['Site Configuration'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin');
|
|
}
|
|
|
|
/* disabled it, til it does something useful
|
|
if (! $GLOBALS['phpgw']->acl->check('peer_server_access',1,'admin'))
|
|
{
|
|
$file['Peer Servers'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiserver.list_servers');
|
|
}
|
|
*/
|
|
if (! $GLOBALS['phpgw']->acl->check('account_access',1,'admin'))
|
|
{
|
|
$file['User Accounts'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_users');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('group_access',1,'admin'))
|
|
{
|
|
$file['User Groups'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_groups');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))
|
|
{
|
|
$file['Applications'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.get_list');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('global_categories_access',1,'admin'))
|
|
{
|
|
$file['Global Categories'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index');
|
|
}
|
|
|
|
if (!$GLOBALS['phpgw']->acl->check('mainscreen_message_access',1,'admin') || !$GLOBALS['phpgw']->acl->check('mainscreen_message_access',2,'admin'))
|
|
{
|
|
$file['Change Main Screen Message'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uimainscreen.index');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('current_sessions_access',1,'admin'))
|
|
{
|
|
$file['View Sessions'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('access_log_access',1,'admin'))
|
|
{
|
|
$file['View Access Log'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccess_history.list_history');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('error_log_access',1,'admin'))
|
|
{
|
|
$file['View Error Log'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uilog.list_log');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('applications_access',16,'admin'))
|
|
{
|
|
$file['Find and Register all Application Hooks'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.register_all_hooks');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('asyncservice_access',1,'admin'))
|
|
{
|
|
$file['Asynchronous timed services'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiasyncservice.index');
|
|
}
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('info_access',1,'admin'))
|
|
{
|
|
$file['phpInfo'] = "javascript:openwindow('" . $GLOBALS['phpgw']->link('/admin/phpinfo.php') . "')"; //$GLOBALS['phpgw']->link('/admin/phpinfo.php');
|
|
}
|
|
|
|
/* Do not modify below this line */
|
|
display_section('admin',$file);
|
|
?>
|