home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
jordan
/
wot-redirect.inc-2007-05-02
< prev
Wrap
Text File
|
2007-05-01
|
2KB
|
53 lines
<?
// Keep Leigh_Butler@paramount.com, leighdb@pacbell.net,
// leigh.butler@gmail.com in the loop on changes.
// seed with microseconds
function make_seed()
{
list($usec, $sec) = explode(' ', microtime());
return (float) $sec + ((float) $usec * 100000);
}
srand(make_seed());
// Pick a number from 0 to 20. Mirror is selected later based on value.
$randval = rand(0, 20);
// Is the number between 0 and 5?
if ($randval < 5)
{
// Alistair Young's <avatar@arkane.demon.co.uk>
// <silicate@gmail.com> mirror
// Replaces http://www.arkane-systems.net/faqs/WOTFAQ/
$address = " http://www.siliconcerebrate.com/faqs/WOTFAQ/";
header("Location: $address");
}
// Is the number between 5 and 10?
else if ($randval < 10)
{
// David Scotton's <dscotton@bantha.org> and Maggie Brazeau's
// <maggie_sedai@darkfriends.net> mirror
$address = "http://www.darkfriends.net/wheel/";
header("Location: $address");
}
// Is the number between 10 and 15?
else if ($randval < 15)
{
// Kate Nepveu's <knepveu@steelypips.org> mirror
$address = " http://www.steelypips.org/wotfaq/";
header("Location: $address");
}
// If number is between 15 and 20, stay at http://linuxmafia.com/jordan/.
//
// Discontinued mirrors -- don't use!
// // Jeff S. Dougan's <jffdougan@usawide.net> uneditable mirror,
// $address = "http://www.sit.wisc.edu/~jsdougan/wotfaq/";
// // Pam Korda's <kor2@midway.uchicago.edu> going-away mirror
// $address = "http://home.uchicago.edu/~kor2/WH_FAQ/";
// // Alistair Young's <avatar@arkane.demon.co.uk>
// // <silicate@gmail.com> original mirror
// $address = "http://www.arkane.demon.co.uk/WOTFAQ/";
//
// Unofficial mirror:
// // Nils Amlehn's <admin@amlehn.ch> mirror
// $address = "http://www.amlehn.ch/WoT/";
?>