Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/06/2014, 07:02
Avatar de Italico76
Italico76
 
Fecha de Ingreso: abril-2007
Mensajes: 3.303
Antigüedad: 17 años
Puntos: 292
Respuesta: Foreach dentro de un switch

Código PHP:
Ver original
  1. <?php
  2.  
  3. if ($thisPageLang!=$webLang) {
  4.     // redireccionar al idioma correspondiente  
  5.    
  6.     $langs=array('es','en','fr','de'); // etc..
  7.    
  8.     if  ( (!empty($webLang)) and (in_array($webLang,$langs)) )
  9.         Header("Location: http://www.tuweb.com/index-$webLang.php");  
  10.     else
  11.         Header("Location: http://www.tuweb.com/index");
  12.  
  13.     exit();
  14. }

Puede que este dormido perp analiza el codigo ante de decir que no te hemos ententendido
__________________
Salu2!