[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/admin/inc/ -> hook_sidebox_menu.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare                                                               *
   4      * http://www.egroupware.org                                                *
   5      * Written by Pim Snel <pim@lingewoud.nl>                                   *
   6      * --------------------------------------------                             *
   7      *  This program is free software; you can redistribute it and/or modify it *
   8      *  under the terms of the GNU General Public License as published by the   *
   9      *  Free Software Foundation; either version 2 of the License, or (at your  *
  10      *  option) any later version.                                              *
  11      \**************************************************************************/
  12  
  13      /* $Id: hook_sidebox_menu.inc.php 20295 2006-02-15 12:31:25Z  $ */
  14      {
  15  
  16      /*
  17          This hookfile is for generating an app-specific side menu used in the idots 
  18          template set.
  19  
  20          $menu_title speaks for itself
  21          $file is the array with link to app functions
  22  
  23          display_sidebox can be called as much as you like
  24      */
  25  
  26          $menu_title = $GLOBALS['egw_info']['apps'][$appname]['title'] . ' '. lang('Menu');
  27          $file = array();
  28  
  29          if (! $GLOBALS['egw']->acl->check('site_config_access',1,'admin'))
  30          {
  31              $file['Site Configuration']         = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin');
  32          }
  33  /*
  34          if (! $GLOBALS['egw']->acl->check('peer_server_access',1,'admin'))
  35          {
  36              $file['Peer Servers']               = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiserver.list_servers');
  37          }
  38  */
  39          if (! $GLOBALS['egw']->acl->check('account_access',1,'admin'))
  40          {
  41              $file['User Accounts']              = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_users');
  42          }
  43  
  44          if (! $GLOBALS['egw']->acl->check('group_access',1,'admin'))
  45          {
  46              $file['User Groups']                = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccounts.list_groups');
  47          }
  48  
  49          if (! $GLOBALS['egw']->acl->check('applications_access',1,'admin'))
  50          {
  51              $file['Applications']               = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiapplications.get_list');
  52          }
  53  
  54          if (! $GLOBALS['egw']->acl->check('global_categories_access',1,'admin'))
  55          {
  56              $file['Global Categories']          = $GLOBALS['egw']->link('/index.php','menuaction=admin.uicategories.index');
  57          }
  58  
  59          if (!$GLOBALS['egw']->acl->check('mainscreen_message_access',1,'admin') || !$GLOBALS['egw']->acl->check('mainscreen_message_access',2,'admin'))
  60          {
  61              $file['Change Main Screen Message'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uimainscreen.index');
  62          }
  63  
  64          if (! $GLOBALS['egw']->acl->check('current_sessions_access',1,'admin'))
  65          {
  66              $file['View Sessions'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions');
  67          }
  68  
  69          if (! $GLOBALS['egw']->acl->check('access_log_access',1,'admin'))
  70          {
  71              $file['View Access Log'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiaccess_history.list_history');
  72          }
  73  
  74          if (! $GLOBALS['egw']->acl->check('error_log_access',1,'admin'))
  75          {
  76              $file['View Error Log']  = $GLOBALS['egw']->link('/index.php','menuaction=admin.uilog.list_log');
  77          }
  78  
  79          if (! $GLOBALS['egw']->acl->check('applications_access',16,'admin'))
  80          {
  81              $file['Find and Register all Application Hooks'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiapplications.register_all_hooks');
  82          }
  83  
  84          if (! $GLOBALS['egw']->acl->check('asyncservice_access',1,'admin'))
  85          {
  86              $file['Asynchronous timed services'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.uiasyncservice.index');
  87          }
  88  
  89          if (! $GLOBALS['egw']->acl->check('db_backup_access',1,'admin'))
  90          {
  91              $file['DB backup and restore'] = $GLOBALS['egw']->link('/index.php','menuaction=admin.admin_db_backup.index');
  92          }
  93  
  94          if (! $GLOBALS['egw']->acl->check('info_access',1,'admin'))
  95          {
  96              $file['phpInfo']         = "javascript:openwindow('" . $GLOBALS['egw']->link('/admin/phpinfo.php') . "')";
  97          }
  98  
  99          display_sidebox($appname,$menu_title,$file);
 100      }


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7