0 && $reftype){ $args = "?referrer=$referrer&reftype=$reftype"; } // get the server we're running on so there's no hardcoded URLs $url = http_server(); if (strpos(strtolower($_SERVER["HTTP_USER_AGENT"]), "windows") === FALSE) { redirect("not_windows.html"); } if (user_isloggedin()) { redirect("$url/my_home.php?from=/index.html"); } // Here is the original redirect, it isn't randomized so it is no longer useful. // redirect("home.html"); // The following code redirects the user to either our MAIN // or ALTERNATIVE website. This decided randomly so we get good data. $urls = array("$url/home.html", "$url/home_.html"); $t = time(); // Current time in seconds $index = $t%count($urls); header("Location: ".$urls[$index] . $args); ?>