diff --git a/admin/inc/hook_admin.inc.php b/admin/inc/hook_admin.inc.php deleted file mode 100644 index 1c60fe9962..0000000000 --- a/admin/inc/hook_admin.inc.php +++ /dev/null @@ -1,89 +0,0 @@ -acl->check('site_config_access',1,'admin')) - { - $file['Site Configuration'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin'); - } - -/* disabled it, til it does something useful - if (! $GLOBALS['egw']->acl->check('peer_server_access',1,'admin')) - { - $file['Peer Servers'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiserver.list_servers'); - } -*/ - if (! $GLOBALS['egw']->acl->check('account_access',1,'admin')) - { - $file['User Accounts'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_users'); - } - - if (! $GLOBALS['egw']->acl->check('group_access',1,'admin')) - { - $file['User Groups'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_groups'); - } - - if (! $GLOBALS['egw']->acl->check('applications_access',1,'admin')) - { - $file['Applications'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiapplications.get_list'); - } - - if (! $GLOBALS['egw']->acl->check('global_categories_access',1,'admin')) - { - $file['Global Categories'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uicategories.index'); - } - - if (!$GLOBALS['egw']->acl->check('mainscreen_message_access',1,'admin') || !$GLOBALS['egw']->acl->check('mainscreen_message_access',2,'admin')) - { - $file['Change Main Screen Message'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uimainscreen.index'); - } - - if (! $GLOBALS['egw']->acl->check('current_sessions_access',1,'admin')) - { - $file['View Sessions'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions'); - } - - if (! $GLOBALS['egw']->acl->check('access_log_access',1,'admin')) - { - $file['View Access Log'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccess_history.list_history'); - } - - if (! $GLOBALS['egw']->acl->check('error_log_access',1,'admin')) - { - $file['View Error Log'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uilog.list_log'); - } - - if (! $GLOBALS['egw']->acl->check('applications_access',16,'admin')) - { - $file['Find and Register all Application Hooks'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiapplications.register_all_hooks'); - } - - if (! $GLOBALS['egw']->acl->check('asyncservice_access',1,'admin')) - { - $file['Asynchronous timed services'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiasyncservice.index'); - } - - if (! $GLOBALS['egw']->acl->check('db_backup_access',1,'admin')) - { - $file['DB backup and restore'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.admin_db_backup.index'); - } - - if (! $GLOBALS['egw']->acl->check('info_access',1,'admin')) - { - $file['phpInfo'] = "javascript:openwindow('" . $GLOBALS['egw']->link('/admin/phpinfo.php') . "')"; //$GLOBALS['egw']->link('/admin/phpinfo.php'); - } - $file['Admin queue and history'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.admin_cmds.index'); - $file['Remote administration instances'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.admin_cmds.remotes'); - - /* Do not modify below this line */ - display_section('admin',$file); -?>