"; //echo $shortpath; //echo "
"; $mirrors = array("http://downloads.mixxx.org", "http://moo.glines.org/mixxx", "http://web.mit.edu/rryan/www/downloads.mixxx.org", "http://mixxx.rasant-records.de/downloads"); $mirror = ""; //Pick a random mirror if it's enabled if ($enableMirroring) { $mirror = $mirrors[rand(0, count($mirrors)-1)]; } else { $mirror = "http://downloads.mixxx.org"; } $newURL = $mirror . $shortpath; //If we're on downloads.mixxx.org, append a ?r to the URL so that //the .htaccess rewrite rule doesn't bounce us back to this mirroring script. //In other words, it makes sure we actually get to the file. :-) if ($mirror === $mirrors[0]) { $newURL .= "?r"; } //echo $newURL; header('Location: ' . $newURL); ?>