[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - administration * 4 * http://www.egroupware.org * 5 * -------------------------------------------- * 6 * This program is free software; you can redistribute it and/or modify it * 7 * under the terms of the GNU General Public License as published by the * 8 * Free Software Foundation; either version 2 of the License, or (at your * 9 * option) any later version. * 10 \**************************************************************************/ 11 12 /* $Id: hook_admin.inc.php 20295 2006-02-15 12:31:25Z $ */ 13 14 if (! $GLOBALS['egw']->acl->check('site_config_access',1,'admin')) 15 { 16 $file['Site Configuration'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin'); 17 } 18 19 /* disabled it, til it does something useful 20 if (! $GLOBALS['egw']->acl->check('peer_server_access',1,'admin')) 21 { 22 $file['Peer Servers'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiserver.list_servers'); 23 } 24 */ 25 if (! $GLOBALS['egw']->acl->check('account_access',1,'admin')) 26 { 27 $file['User Accounts'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_users'); 28 } 29 30 if (! $GLOBALS['egw']->acl->check('group_access',1,'admin')) 31 { 32 $file['User Groups'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_groups'); 33 } 34 35 if (! $GLOBALS['egw']->acl->check('applications_access',1,'admin')) 36 { 37 $file['Applications'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiapplications.get_list'); 38 } 39 40 if (! $GLOBALS['egw']->acl->check('global_categories_access',1,'admin')) 41 { 42 $file['Global Categories'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uicategories.index'); 43 } 44 45 if (!$GLOBALS['egw']->acl->check('mainscreen_message_access',1,'admin') || !$GLOBALS['egw']->acl->check('mainscreen_message_access',2,'admin')) 46 { 47 $file['Change Main Screen Message'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uimainscreen.index'); 48 } 49 50 if (! $GLOBALS['egw']->acl->check('current_sessions_access',1,'admin')) 51 { 52 $file['View Sessions'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions'); 53 } 54 55 if (! $GLOBALS['egw']->acl->check('access_log_access',1,'admin')) 56 { 57 $file['View Access Log'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccess_history.list_history'); 58 } 59 60 if (! $GLOBALS['egw']->acl->check('error_log_access',1,'admin')) 61 { 62 $file['View Error Log'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uilog.list_log'); 63 } 64 65 if (! $GLOBALS['egw']->acl->check('applications_access',16,'admin')) 66 { 67 $file['Find and Register all Application Hooks'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiapplications.register_all_hooks'); 68 } 69 70 if (! $GLOBALS['egw']->acl->check('asyncservice_access',1,'admin')) 71 { 72 $file['Asynchronous timed services'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiasyncservice.index'); 73 } 74 75 if (! $GLOBALS['egw']->acl->check('db_backup_access',1,'admin')) 76 { 77 $file['DB backup and restore'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.admin_db_backup.index'); 78 } 79 80 if (! $GLOBALS['egw']->acl->check('info_access',1,'admin')) 81 { 82 $file['phpInfo'] = "javascript:openwindow('" . $GLOBALS['egw']->link('/admin/phpinfo.php') . "')"; //$GLOBALS['egw']->link('/admin/phpinfo.php'); 83 } 84 85 /* Do not modify below this line */ 86 display_section('admin',$file); 87 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |