source: sandbox/2.3-MailArchiver/admin/inc/hook_admin.inc.php @ 6779

Revision 6779, 3.7 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
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
13        if (! $GLOBALS['phpgw']->acl->check('site_config_access',1,'admin'))
14        {
15                $file['Site Configuration']         = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=admin');
16        }
17
18/* disabled it, til it does something useful
19        if (! $GLOBALS['phpgw']->acl->check('peer_server_access',1,'admin'))
20        {
21                $file['Peer Servers']               = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiserver.list_servers');
22        }
23*/     
24        if (! $GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))
25        {
26                $file['Applications']               = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.get_list');
27        }
28
29        if (! $GLOBALS['phpgw']->acl->check('global_categories_access',1,'admin'))
30        {
31                $file['Global Categories']          = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index');
32        }
33
34        if (!$GLOBALS['phpgw']->acl->check('mainscreen_message_access',1,'admin') || !$GLOBALS['phpgw']->acl->check('mainscreen_message_access',2,'admin'))
35        {
36                $file['Change Main Screen Message'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uimainscreen.index');
37        }
38
39        if (! $GLOBALS['phpgw']->acl->check('current_sessions_access',1,'admin'))
40        {
41                $file['View Sessions'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions');
42        }
43       
44        if (! $GLOBALS['phpgw']->acl->check('access_log_access',1,'admin'))
45        {
46                $file['View Access Log'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccess_history.list_history');
47        }
48
49        if (! $GLOBALS['phpgw']->acl->check('error_log_access',1,'admin'))
50        {
51                $file['View Error Log']  = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uilog.list_log');
52        }
53
54        if (! $GLOBALS['phpgw']->acl->check('applications_access',16,'admin'))
55        {
56                $file['Find and Register all Application Hooks'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.register_all_hooks');
57        }
58
59        if (! $GLOBALS['phpgw']->acl->check('asyncservice_access',1,'admin'))
60        {
61                $file['Asynchronous timed services'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiasyncservice.index');
62        }
63
64        if (! $GLOBALS['phpgw']->acl->check('info_access',1,'admin'))
65        {
66                $file['phpInfo']         = $GLOBALS['phpgw']->link('/admin/phpinfo.php');
67        }
68
69        if (! $GLOBALS['phpgw']->acl->check('asyncservice_access',1,'admin'))
70        {
71                if($GLOBALS['phpgw_info']['server']['use_assinar_criptografar']  ||  $GLOBALS['phpgw_info']['server']['certificado'])
72                {
73                        $file['CASCRLS']    = $GLOBALS['phpgw']->link('../security/security_admin.php');
74                }
75        }
76
77        if (! $GLOBALS['phpgw']->acl->check('asyncservice_access',1,'admin'))
78        {
79            if(file_exists(dirname( __FILE__ ) . '/../../infodist/revisoes-svn.php'))
80                $file['subversion']    = $GLOBALS['phpgw']->link('subversion.php');
81        }
82       
83        if (! $GLOBALS['phpgw']->acl->check('site_config_access',1,'admin'))
84        {
85                $file['VoIP settings']         = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uivoip.edit_conf');
86        }
87
88        /* Do not modify below this line */
89        display_section('admin',$file);
90?>
Note: See TracBrowser for help on using the repository browser.