Ignore:
Timestamp:
08/02/11 09:44:07 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Disponibilizar certificado na sessão do usuário.4867

Location:
trunk/phpgwapi/templates/default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/templates/default/login_default.php

    r4794 r4886  
    116116        if(isset($_POST['certificado']) && $_POST['certificado']) 
    117117        { 
    118  
    119             $_SESSION['login_certificado'] = troca_espaco_por_mais(str_replace(chr(0x0D).chr(0x0A),chr(0x0A),str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']))); 
     118            $_SESSION['login_certificate'] = troca_espaco_por_mais(str_replace(chr(0x0D).chr(0x0A),chr(0x0A),str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']))); 
    120119        } 
    121120        if( isset( $_GET[ 'cd' ] ) && ( $_GET['cd']=='1' || $_GET['cd'] == 10 ) ) 
  • trunk/phpgwapi/templates/default/navbar.inc.php

    r3902 r4886  
    238238                                . lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</a>'; 
    239239                        } 
    240                         $now = time();                   
    241                         $var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() .'</b>'. ' - ' 
     240                        $now = time(); 
     241                        $var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() . ($GLOBALS['phpgw']->session->appsession('certificate','phpgwapi')?'(' .lang('Identified by Digital Certificate') . ')':'') . '</b>'. ' - ' 
    242242                        . lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' ' 
    243243                        . $GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']); 
Note: See TracChangeset for help on using the changeset viewer.