[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: admin/inc hook_sidebox_menu.inc.php, 1.1.2.2, 1
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: admin/inc hook_sidebox_menu.inc.php, 1.1.2.2, 1.1.2.3 |
Date: |
Sun, 10 Aug 2003 04:58:40 -0400 |
Update of /cvsroot/phpgroupware/admin/inc
In directory subversions:/tmp/cvs-serv15371
Modified Files:
Tag: Version-0_9_16-branch
hook_sidebox_menu.inc.php
Log Message:
added all entries of the normal admin-menu, plus the acl-checks
Index: hook_sidebox_menu.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/inc/Attic/hook_sidebox_menu.inc.php,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -r1.1.2.2 -r1.1.2.3
*** hook_sidebox_menu.inc.php 24 May 2003 16:19:49 -0000 1.1.2.2
--- hook_sidebox_menu.inc.php 10 Aug 2003 08:58:37 -0000 1.1.2.3
***************
*** 25,33 ****
$menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title']
. ' '. lang('Menu');
! $file = Array(
! 'New
User'=>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.add_user'),
! 'New
Group'=>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.add_group')
! );
display_sidebox($appname,$menu_title,$file);
--- 25,94 ----
$menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title']
. ' '. lang('Menu');
! $file = array();
+ if (!
$GLOBALS['phpgw']->acl->check('site_config_access',1,'admin'))
+ {
+ $file['Site Configuration'] =
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin');
+ }
+ /*
+ 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') . "')";
+ }
display_sidebox($appname,$menu_title,$file);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: admin/inc hook_sidebox_menu.inc.php, 1.1.2.2, 1.1.2.3,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: calendar/inc class.bocustom_fields.inc.php, 1.1.2.3, 1.1.2.4
- Next by Date:
[Phpgroupware-cvs] CVS: admin/setup phpgw_de.lang, 1.14.2.9.2.10, 1.14.2.9.2.11 phpgw_en.lang, 1.23.2.18.2.11, 1.23.2.18.2.12
- Previous by thread:
[Phpgroupware-cvs] CVS: calendar/inc class.bocustom_fields.inc.php, 1.1.2.3, 1.1.2.4
- Next by thread:
[Phpgroupware-cvs] CVS: admin/setup phpgw_de.lang, 1.14.2.9.2.10, 1.14.2.9.2.11 phpgw_en.lang, 1.23.2.18.2.11, 1.23.2.18.2.12
- Index(es):