2000-09-23 07:31:51 +02:00
|
|
|
<?php
|
2001-08-16 03:38:14 +02:00
|
|
|
/**************************************************************************\
|
2004-01-27 00:26:19 +01:00
|
|
|
* eGroupWare - administration *
|
|
|
|
* http://www.egroupware.org *
|
2001-08-16 03:38:14 +02:00
|
|
|
* -------------------------------------------- *
|
|
|
|
* 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. *
|
|
|
|
\**************************************************************************/
|
2003-08-28 16:16:30 +02:00
|
|
|
|
2001-08-16 03:38:14 +02:00
|
|
|
/* $Id$ */
|
2000-09-23 07:31:51 +02:00
|
|
|
|
2001-09-04 03:12:13 +02:00
|
|
|
if (! $GLOBALS['phpgw']->acl->check('site_config_access',1,'admin'))
|
|
|
|
{
|
2003-08-28 16:16:30 +02:00
|
|
|
$file['Site Configuration'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin');
|
2001-09-04 03:12:13 +02:00
|
|
|
}
|
|
|
|
|
2003-09-13 16:39:30 +02:00
|
|
|
/* disabled it, til it does something useful
|
2001-09-04 03:12:13 +02:00
|
|
|
if (! $GLOBALS['phpgw']->acl->check('peer_server_access',1,'admin'))
|
|
|
|
{
|
2003-08-28 16:16:30 +02:00
|
|
|
$file['Peer Servers'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiserver.list_servers');
|
2001-09-04 03:12:13 +02:00
|
|
|
}
|
2003-09-13 16:39:30 +02:00
|
|
|
*/
|
2001-09-04 03:12:13 +02:00
|
|
|
if (! $GLOBALS['phpgw']->acl->check('account_access',1,'admin'))
|
|
|
|
{
|
2003-08-28 16:16:30 +02:00
|
|
|
$file['User Accounts'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_users');
|
2001-09-04 03:12:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('group_access',1,'admin'))
|
|
|
|
{
|
2003-08-28 16:16:30 +02:00
|
|
|
$file['User Groups'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_groups');
|
2001-09-04 03:12:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))
|
|
|
|
{
|
2003-08-28 16:16:30 +02:00
|
|
|
$file['Applications'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.get_list');
|
2001-09-04 03:12:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('global_categories_access',1,'admin'))
|
|
|
|
{
|
2003-08-28 16:16:30 +02:00
|
|
|
$file['Global Categories'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index');
|
2001-09-04 03:12:13 +02:00
|
|
|
}
|
|
|
|
|
2003-07-21 20:21:30 +02:00
|
|
|
if (!$GLOBALS['phpgw']->acl->check('mainscreen_message_access',1,'admin') || !$GLOBALS['phpgw']->acl->check('mainscreen_message_access',2,'admin'))
|
2001-09-04 03:12:13 +02:00
|
|
|
{
|
2001-12-24 01:17:41 +01:00
|
|
|
$file['Change Main Screen Message'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uimainscreen.index');
|
2001-09-04 03:12:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (! $GLOBALS['phpgw']->acl->check('current_sessions_access',1,'admin'))
|
|
|
|
{
|
2001-09-04 21:50:14 +02:00
|
|
|
$file['View Sessions'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions');
|
2001-09-04 03:12:13 +02:00
|
|
|
}
|
2003-08-28 16:16:30 +02:00
|
|
|
|
2002-06-29 17:59:37 +02:00
|
|
|
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'))
|
|
|
|
{
|
2003-08-28 16:16:30 +02:00
|
|
|
$file['View Error Log'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uilog.list_log');
|
2002-06-29 17:59:37 +02:00
|
|
|
}
|
2001-08-16 03:38:14 +02:00
|
|
|
|
2003-07-21 20:21:30 +02:00
|
|
|
if (! $GLOBALS['phpgw']->acl->check('applications_access',16,'admin'))
|
2002-06-29 17:59:37 +02:00
|
|
|
{
|
2003-04-28 00:26:04 +02:00
|
|
|
$file['Find and Register all Application Hooks'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.register_all_hooks');
|
2002-06-29 17:59:37 +02:00
|
|
|
}
|
|
|
|
|
2003-07-21 20:21:30 +02:00
|
|
|
if (! $GLOBALS['phpgw']->acl->check('asyncservice_access',1,'admin'))
|
|
|
|
{
|
|
|
|
$file['Asynchronous timed services'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiasyncservice.index');
|
|
|
|
}
|
|
|
|
|
2002-06-29 17:59:37 +02:00
|
|
|
if (! $GLOBALS['phpgw']->acl->check('info_access',1,'admin'))
|
|
|
|
{
|
2003-08-28 16:16:30 +02:00
|
|
|
$file['phpInfo'] = "javascript:openwindow('" . $GLOBALS['phpgw']->link('/admin/phpinfo.php') . "')"; //$GLOBALS['phpgw']->link('/admin/phpinfo.php');
|
2002-06-29 17:59:37 +02:00
|
|
|
}
|
|
|
|
|
2001-09-26 03:02:39 +02:00
|
|
|
/* Do not modify below this line */
|
2003-08-28 16:16:30 +02:00
|
|
|
display_section('admin',$file);
|
2001-09-04 21:50:14 +02:00
|
|
|
?>
|