jpb 2791
| Posté : 10-02-2014 22:31
//==> mutltilangue
// sans redirection sur index dispo que si la requete n'est pas post
$req= $_SERVER['QUERY_STRING'];
$req1='';
$sep='';
if ($req != "")
{
if (preg_match("#(choice_user_language=([^&]*&))#",$ req,$res))
{$req1= preg_replace("#(choice_user_language=([^&]*& ))#","",$req);$sep="&";}
if (preg_match("#(choice_user_language=([^&]*))#",$req,$ res))
{$req1= preg_replace("#(choice_user_language=([^&]*))#", "",$req);$sep="";}
else
{ $sep="&";$req1=$req;}
}
$menlang='<a href="'.$_SERVER['PHP_SELF'].'?choice_user_language=fren ch'.$sep.$req1.'" title="Choisissez votre langue">Français< ;/a><a href="'.$_SERVER['PHP_SELF'].'?choice_user_language=chinese'. $sep.$req1.'" title="选择语言"> <sub><font size="5" face="STFangsong">中 5991;</font></sub></a><a href="'.$_SERVER['PHP_SELF'] .'?choice_user_language=english'.$sep.$req1.'" title="Choose your&nbs p;language">English</a>';
if ($_SERVER['REQUEST_METHOD'] == "POST") $menlang = '';
echo ' <sub><font size="6" face="STFangsong  ;Regular" color="#696969">༺</font></sub>
'.$menlang.'
<sub><font size="6" face="STFangsong" color="#696969" >༻</font></sub>';
//==> mutltilangue
|