// http://www.maxbillfilm.ch/dsp.php?de,3,3,1 soll surava sein $testen = FALSE; if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) $acclg = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2); switch($acclg) { case 'de': $acclg = 0; break; case 'fr': $acclg = 1; break; default: $acclg = 2; }; $domain = getenv('HTTP_HOST'); $domain = strtolower($domain); /* ev. "www." entfernen */ if (substr($domain,0,4) == "www.") { $domain = substr($domain,-(strlen($domain)-4)); } /* alte version scannen: */ $mnr=$fid=$fpag=$kol=0; sscanf($_SERVER['QUERY_STRING'],'%02s,%01d,%03d,%01d,%d,', $lg, $mnr, $fid, $fpag, $kol); // Konversionstabellen: $lgarr=array('de','fr','en'); $sect_neu = array(0,9,2,3,5,5,6,7); // einstellen $obid_neu =array(0,6,5,4,3,2,1); // neue Filmnummern $subs_neu= array(0,0,1,2,3,4,5,6,7,8); //auswerten $lc = array_search($lg, $lgarr); $sect = $sect_neu[$mnr]; $subs = $subs_neu[$fpag]; $obid = $obid_neu[$fid]; $neu_url = "page.php?$lc,$sect,$subs,$obid,"; if($testen) { echo '