- Timestamp:
- 11/10/10 12:57:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/phpgwapi/templates/default/login_default.php
r3480 r3486 198 198 list($forward,$extra_vars) = explode('?',$forward,2); 199 199 } 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); 208 210 } 209 211 } … … 363 365 $tmpl->set_var('website_title', $GLOBALS['phpgw_info']['server']['site_title']); 364 366 $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);368 367 369 368 $GLOBALS['phpgw']->translation->add_app('loginhelp',$_GET['lang']); … … 539 538 540 539 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); 541 543 $tmpl->pfp('loginout','login_form'); 542 544 ?>
Note: See TracChangeset
for help on using the changeset viewer.