source: companies/serpro/preferences/inc/hook_preferences.inc.php @ 903

Revision 903, 1.7 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?php
2  /**************************************************************************\
3  * phpGroupWare                                                             *
4  * http://www.phpgroupware.org                                              *
5  * Written by Joseph Engo <jengo@phpgroupware.org>                          *
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
14        if ($GLOBALS['phpgw']->acl->check('changepassword',1))
15        {
16                $file['Change your Password'] = $GLOBALS['phpgw']->link('/preferences/changepassword.php');
17        }
18        $file['change your settings'] = $GLOBALS['phpgw']->link('/preferences/preferences.php','appname=preferences');
19       
20        $file['Change your Personal Data'] = $GLOBALS['phpgw']->link('/preferences/changepersonaldata.php');
21
22        if(isset($_SERVER['HTTPS']))
23                {
24                        if($GLOBALS['phpgw_info']['server']['certificado']==1) 
25                                {
26                                        # Testa se um certificado foi apresentado( nas variaveis do apache ou via header http)
27                                        if($_SERVER["SSL_CLIENT_CERT"])
28                                        {
29                                                $aux = $_SERVER["SSL_CLIENT_CERT"];
30                                        }
31                                        else
32                                        {
33                                                $aux = $_SERVER["HTTP_SSL_CLIENT_CERT"];
34                                        }
35                                        if($aux)
36                                        {
37                                                $file['Dados do certificado digital'] = $GLOBALS['phpgw']->link('/preferences/cert_info.php');
38                                        }
39                                }
40                }
41       
42        display_section('preferences',$file);
43
44?>
Note: See TracBrowser for help on using the repository browser.