phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] admin/inc/hook_sidebox_menu.inc.php, 1.2


From: nomail
Subject: [Phpgroupware-cvs] admin/inc/hook_sidebox_menu.inc.php, 1.2
Date: Thu, 30 Dec 2004 08:38:14 +0100

Update of /admin/inc
Added Files:
        Branch: 
          hook_sidebox_menu.inc.php

date: 2004/12/30 07:38:14;  author: skwashd;  state: Exp;  lines: +119 -0

Log Message:
new HEAD admin - sans GIFs
=====================================================================
<?php
        
/**************************************************************************\
        * phpGroupWare                                                          
   *
        * http://www.phpgroupware.org                                           
   *
        * Written by Pim Snel <address@hidden>                                  
 *
        * --------------------------------------------                          
   *
        *  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: hook_sidebox_menu.inc.php,v 1.2 2004/12/30 07:38:14 skwashd Exp 
$ */
        {

        /*
                This hookfile is for generating an app-specific side menu used 
in the idots 
                template set.

                $menu_title speaks for itself
                $file is the array with link to app functions

                display_sidebox can be called as much as you like
        */

                $menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title'] 
. ' '. lang('Menu');
                if (! 
$GLOBALS['phpgw']->acl->check('site_config_access',1,'admin'))
                {
                        $file[] = array('text'  => 'Site Configuration',
                                                        'url'   => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin'));
                }

                if (! 
$GLOBALS['phpgw']->acl->check('peer_server_access',1,'admin'))
                {
                        $file[] = array('text'  => 'Peer Servers',
                                                        'url'   => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiserver.list_servers'));
                }

                if (! $GLOBALS['phpgw']->acl->check('account_access',1,'admin'))
                {
                        $file[] = array('text'  => 'addressmasters',
                                                        'url'   => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaclmanager.list_addressmasters&account_id='
 . $GLOBALS['phpgw_info']['user']['account_id']));
                }

                if (! $GLOBALS['phpgw']->acl->check('account_access',1,'admin'))
                {
                        $file[] = array('text' => 'User Accounts',
                                        'url' => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_users'));
                }

                if (! $GLOBALS['phpgw']->acl->check('group_access',1,'admin'))
                {
                        $file[] = array('text' => 'User Groups',
                                        'url' =>  
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_groups'));
                }

                if (! 
$GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))
                {
                        $file[] = array('text' => 'Applications',
                                        'url' => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.get_list'));
                }

                if (! 
$GLOBALS['phpgw']->acl->check('global_categories_access',1,'admin'))
                {
                        $file[] = array('text' => 'Global Categories',
                                        'url' => 
$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[] = array('text' => 'Change Main Screen Message',
                                        'url' => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uimainscreen.index'));
                }

                if (! 
$GLOBALS['phpgw']->acl->check('current_sessions_access',1,'admin'))
                {
                        $file[] = array('text' => 'View Sessions',
                                        'url' => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions'));
                }

                if (! 
$GLOBALS['phpgw']->acl->check('access_log_access',1,'admin'))
                {
                        $file[] = array('text' => 'View Access Log',
                                        'url' => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccess_history.list_history'));
                }

                if (! 
$GLOBALS['phpgw']->acl->check('error_log_access',1,'admin'))
                {
                        $file[] = array('text' => 'View Error Log',
                                        'url' => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uilog.list_log'));
                }

                if (! 
$GLOBALS['phpgw']->acl->check('error_log_access',1,'admin'))
                {
                        $file[] = array ('text' => 'Edit Log Levels',
                                        'url' => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiloglevels.edit_log_levels'));
                }


                if (! 
$GLOBALS['phpgw']->acl->check('applications_access',16,'admin'))
                {
                        $file[] = array('text' => 'Find and Register all 
Application Hooks',
                                        'url' => 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.register_all_hooks'));
                }

                if (! 
$GLOBALS['phpgw']->acl->check('asyncservice_access',1,'admin'))
                {
                        $file[] = array ('text' => 'Asynchronous timed 
services',
                                        'url' =>  
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiasyncservice.index'));
                }

                if (! $GLOBALS['phpgw']->acl->check('info_access',1,'admin'))
                {
                        $file[] = array('text' => 'phpInfo',
                                        'url' =>  "javascript:openwindow('" . 
$GLOBALS['phpgw']->link('/admin/phpinfo.php') . "')");
                }

                display_sidebox($appname,$menu_title,$file);
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]