GetParameter("page"); if (empty($redirPageName)){ echo $this->Format("//Le paramêtre \"page\" est manquant.//"); }else{ if (eregi("^".$redirPageName."$",$this->GetPageTag())){ echo $this->Format("//Impossible à une page de se rediriger vers elle même.//"); }else{ $fromPages = array(); $fromPages = explode(":",$_COOKIE['redirectfrom']); if (in_array($this->GetPageTag(),$fromPages)){ echo $this->Format("//Redirection circulaire.//"); }else{ $fromPages[] = $this->GetPageTag(); SetCookie('redirectfrom', implode(":",$fromPages), time() + 30, $this->CookiePath); $this->Redirect($this->Href('', $redirPageName)); } } } ?>