if (isset($_SERVER['HTTP_REFERER']) && (!stristr($_SERVER['HTTP_REFERER'], "fajtori.com") && !stristr($_SERVER['HTTP_REFERER'], "forumihorizont.com") && !stristr($_SERVER['HTTP_REFERER'], "arbitalia.it")) ) { header("Location: http://www.fajtori.com"); exit ; } $f = $_GET['f']; $al = $_GET['al']; $k = $_GET['k']; $myreplace = array(" ", "/"); $f = str_replace($myreplace, "", $f); $al = str_replace($myreplace, "", $al); $k = str_replace($myreplace, "", $k); // Note that !== did not exist until 4.0.0-RC2 if ($f == "f") { $diry = "/home/fajtori/public_html/domain_fajtori.com/realmusic/real/Festivalet/".$al; $lnk ="http://www.fajtori.com/play.php?f=f&al="; if (!is_dir("$diry")) { header("Location: http://www.fajtori.com/indexing.php"); exit ; }} else { $diry = "/home/fajtori/public_html/domain_fajtori.com/realmusic/real/".$al; $lnk = "http://www.fajtori.com/play.php?al="; if (!is_dir("$diry")) { header("Location: http://www.fajtori.com/indexing.php"); exit ; }} if (!isset($al) || $al == "") { header("Location: http://www.fajtori.com/indexing.php"); } $handle=opendir("$diry"); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $retVal[count($retVal)] = $file; } } closedir($handle); sort($retVal); @include_once('hfoot.inc.php'); echo $head; ?>
echo preg_replace("/_/", " ", $al); ?> |
echo $foot; ?>