Ignore:
Timestamp:
11/10/10 12:57:43 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #831 - Encadeamento de proxies reversos e login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/phpgwapi/templates/default/login_default.php

    r3480 r3486  
    198198                                list($forward,$extra_vars) = explode('?',$forward,2); 
    199199                        } 
    200                         if ($GLOBALS['phpgw_info']['server']['use_https'] != 2) 
    201                         { 
    202                                 $forward = 'http://'.$_SERVER['HTTP_HOST'].($GLOBALS['phpgw']->link($forward.'?cd=yes')); 
    203                                 echo "<script language='Javascript1.3'>location.href='".$forward."'</script>"; 
    204                         } 
    205                         else 
    206                         { 
    207                                 $GLOBALS['phpgw']->redirect_link($forward,$extra_vars); 
     200                if ($GLOBALS['phpgw_info']['server']['use_https'] != 2) 
     201                        { 
     202                        //Modificacao feita para que o Expresso redirecione para o primeiro proxy caso haja um encadeamento de mais de um proxy. 
     203                        //$forward = 'http://'.$_SERVER['HTTP_HOST'].($GLOBALS['phpgw']->link($forward.'?cd=yes')); 
     204                        $forward = 'http://' . nearest_to_me() . $GLOBALS['phpgw']->link($forward.'?cd=yes'); 
     205                        echo "<script language='Javascript1.3'>location.href='".$forward."'</script>"; 
     206                        } 
     207                else 
     208                        { 
     209                        $GLOBALS['phpgw']->redirect_link($forward,$extra_vars); 
    208210                        } 
    209211                } 
     
    363365        $tmpl->set_var('website_title', $GLOBALS['phpgw_info']['server']['site_title']); 
    364366        $tmpl->set_var('template_set',$GLOBALS['phpgw_info']['login_template_set']); 
    365  
    366         include_once(dirname( __FILE__ ) . '/../../../infodist/ultima-revisao-svn.php'); 
    367         if(isset($ultima_revisao)) $tmpl->set_var('ultima_rev','<br>' . $ultima_revisao); 
    368367 
    369368        $GLOBALS['phpgw']->translation->add_app('loginhelp',$_GET['lang']); 
     
    539538                 
    540539 
     540        $tmpl->set_var('dir_root', 'http://' . nearest_to_me() . '/'); 
     541        include_once(dirname( __FILE__ ) . '/../../../infodist/ultima-revisao-svn.php'); 
     542        if(isset($ultima_revisao)) $tmpl->set_var('ultima_rev','<br>' . $ultima_revisao); 
    541543        $tmpl->pfp('loginout','login_form'); 
    542544?> 
Note: See TracChangeset for help on using the changeset viewer.