Ignore:
Timestamp:
11/03/11 13:53:15 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus, modulo phpgwapi.

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

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/templates/default/css/base.css

    r3019 r5141  
    8383} 
    8484 
    85 ul 
     85#ul 
    8686{ 
    8787        list-style-image: url( "../images/orange-ball.png" ); 
  • trunk/phpgwapi/templates/default/js/listUsers.js

    r4992 r5141  
    5454        function execAction(action){ 
    5555 
    56                 if(window.opener){ 
    57                     try{ 
    58                         doc = window.opener.document; 
    59                         select = doc.getElementById('user_list'); 
    60                     } 
    61                     catch(e){ 
    62                         doc = window.document; 
    63                         } 
    64                 } 
    65                 else{ 
     56                if(!window.opener)                               
    6657                    doc = window.document; 
    67                 } 
     58                else 
     59                        doc = window.opener.document; 
    6860 
    6961                select = doc.getElementById('user_list');                                        
  • trunk/phpgwapi/templates/default/login.tpl

    r4994 r5141  
    1212<script language="Javascript"> 
    1313<!-- 
    14  
    15          
    16         function isCompat(){ 
    17              version = (navigator.userAgent.match( /.+ie\s([\d.]+)/i ) || [])[1]; 
    18              if(parseInt(version)==7 && (/trident\/\d/i.test(navigator.userAgent))) 
    19                 alert("{compatIE8}"); 
    20         } 
    2114 
    2215        function setLogin(){ 
     
    139132</script> 
    140133</HEAD> 
    141 <body scroll="no"  style="overflow:hidden" onLoad="javascript:getLogin();isCompat();" bgcolor="#ffffff"> 
     134<body scroll="no"  style="overflow:hidden" onLoad="javascript:getLogin()" bgcolor="#ffffff"> 
    142135<form id="loginForm" name="flogin" method="post" action="{login_url}" {autocomplete}> 
    143136<div id="conteudo"> 
  • trunk/phpgwapi/templates/default/login_default.php

    r5042 r5141  
    1212        \**************************************************************************/ 
    1313 
    14         function check_logoutcode($code) 
     14function check_logoutcode($code) 
    1515        { 
    1616                switch($code) 
     
    5757                } 
    5858        } 
    59          
    60         $ifMobile = false; 
    61         $browser = CreateObject('phpgwapi.browser'); 
    62         switch ( $browser->get_platform() ) 
    63         { 
    64                 case browser::PLATFORM_IPHONE: 
    65                 case browser::PLATFORM_IPOD: 
    66                 case browser::PLATFORM_IPAD: 
    67                 case browser::PLATFORM_BLACKBERRY: 
    68                 case browser::PLATFORM_NOKIA: 
    69                 case browser::PLATFORM_ANDROID: 
    70                         $ifMobile = true;                                                
    71                         break; 
    72         } 
    73          
    74         if( $ifMobile && $_GET['dont_redirect_if_moble'] != 1 )  
    75         { 
    76                 $GLOBALS['phpgw']->redirect_link('/mobile/login.php'); 
    77         } 
    78         else 
    79         { 
     59        function troca_espaco_por_mais($pem_data) 
     60        { 
     61            $begin = "CERTIFICATE-----"; 
     62            $end   = "-----END"; 
     63            $aux = substr($pem_data, strpos($pem_data, $begin)+strlen($begin)); 
     64            $aux = substr($aux, 0, strpos($aux, $end)); 
     65            $aux = strtr($aux,' ','+'); 
     66            $aux = '-----BEGIN CERTIFICATE-----'.$aux.'-----END CERTIFICATE-----'; 
     67            return $aux; 
     68        } 
    8069        /* Program starts here */ 
     70         
    8171        if($GLOBALS['phpgw_info']['server']['auth_type'] == 'http' && isset($_SERVER['PHP_AUTH_USER'])) 
    8272        { 
     
    124114                unset($sslattributes); 
    125115        } 
    126  
     116        if(isset($_POST['certificado']) && $_POST['certificado']) 
     117        { 
     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']))); 
     120        } 
    127121    if( isset( $_GET[ 'cd' ] ) && ( $_GET['cd']=='1' || $_GET['cd'] == 10 ) ) 
    128122        { 
     
    266260                        */ 
    267261                        $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'] = $lang; 
     262 
     263                        if (!isset($GLOBALS['phpgw_info']['user']['preferences']['common']['theme'])) 
     264                        { 
     265                                $prefs2 = CreateObject('phpgwapi.preferences'); 
     266                                $temp_pref = $prefs2->read_repository(); 
     267                                $GLOBALS['phpgw_info']['user']['preferences']['common']['theme'] = $temp_pref['common']['theme']; 
     268                        } 
    268269                } 
    269270                #print 'LANG:' . $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'] . '<br>'; 
     
    584585 
    585586        $tmpl->pfp('loginout','login_form'); 
    586         } 
    587587 
    588588?> 
  • trunk/phpgwapi/templates/default/navbar.inc.php

    r4886 r5141  
    239239                        } 
    240240                        $now = time(); 
    241                         $var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() . ($GLOBALS['phpgw']->session->appsession('certificate','phpgwapi')?'(' .lang('Identified by Digital Certificate') . ')':'') . '</b>'. ' - ' 
     241                        $var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() .'</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.