sanglochon | J'ai trouvé une solution :
Code :
- $url = getenv("REQUEST_URI" );
- $url = ereg_replace("\?langue=fr&", "?", $url);
- $url = ereg_replace("\?langue=en&", "?", $url);
- $url = ereg_replace("\?langue=fr", "", $url);
- $url = ereg_replace("\?langue=en", "", $url);
- $url = ereg_replace("&langue=fr&", "&", $url);
- $url = ereg_replace("&langue=en&", "&", $url);
- $url = ereg_replace("&langue=fr", "", $url);
- $url = ereg_replace("&langue=en", "", $url);
- if(strstr ($url,'?')==FALSE){
- $url = $url."?";
- }else if($url{strlen($url)-1}<>'&'){
- $url = $url."&";
- };
|
|