Zitat Zitat
Original geschrieben von Sesostris
PHP-Code:
<?
srand((double)microtime()*1000000); 
$layouts="layouts.txt";
$layouts=file($layouts);
$select=rand(0, count($layouts)-1);

$layouts[$select] = ereg_replace(" ","",$layouts[$select]);
$layouts[$select] = ereg_replace("\n","",$layouts[$select]);

if($ax == ""){
$ax = "install";
}
// echo "http://www.domain.de/".$layouts[$select]."/?id=".$id."&ax=".$ax."";
Header("Location: [url]http://www.domain.de/[/url]".$layouts[$select]."/?id=".$id."&ax=".$ax."");
?>
So
Hmmja, header() mit Location: und dann einfach GET-artigen Variablen dran. Daran hatte ich auch gedacht, als ich das zuerst gesehen habe, aber include() schien mir für identischen Inhalt (den wir hier nicht zu haben scheinen) optimaler.