', '='), "", $_GET[AID]); $_GET[aff] = str_replace(array(' ', '.', ':', ',', '&', '@', '`', '\'', '#', '%', '/', '[', ']', '{', '}', '?', '!', '"', '(', ')', '|', '\\', '_', '+', '*', '$', '^', '~', ';', '<', '>', '='), "", $_GET[aff]); $_GET[track] = str_replace(array(' ', '.', ',', '&', '@', '`', '\'', '%', '[', ']', '{', '}', '!', '"', '(', ')', '|', '\\', '_', '+', '*', '$', '^', '~', ';', '<', '>'), "", $_GET[track]); if ($_GET[AID] != "") {$_GET[aff] = "$_GET[AID]";} $affiliate = ""; $handle = @fopen("/home/cyberhold2/psychicrevenue.com/cgi-bin/affiliates/htpasswd", "r"); if ($handle) { while (!feof($handle)) { $input = fgets($handle, 128); if ($input != "") { list($j1, $j2) = explode(":", $input); if ($_GET[aff] == "$j1") {$affiliate = "$j1";} } } fclose($handle); } if ($affiliate == "") { // $date = date("Ymd|His"); // $fp = fopen("/home/cyberhold2/psychicrevenue.com/cgi-bin/data/stats/ERROR_NEW.dat", "a+"); // fwrite ($fp, "$date --- qs=$qs --- aff=$_GET[aff] --- ip=$_SERVER[REMOTE_ADDR] --- refer=$_SERVER[HTTP_REFERER]\n"); // fclose ($fp); $affiliate = "pws00060"; } $referer = "$_SERVER[HTTP_REFERER]"; $lreferer = strlen($referer); if ($lreferer > 100) {$referer = substr($referer, 0 ,100);} if ($_GET[track] != "") {$referer = "$_GET[track]";} if ($referer == "") {$referer = "unknown";} if (!file_exists("/home/cyberhold2/psychicrevenue.com/cgi-bin/data/stats/raw/$affiliate")) {mkdir("/home/cyberhold2/psychicrevenue.com/cgi-bin/data/stats/raw/$affiliate", 0777);} $fp = fopen("/home/cyberhold2/psychicrevenue.com/cgi-bin/data/stats/raw/$affiliate/pw.dat", "a+"); fwrite ($fp, "$_SERVER[REMOTE_ADDR]|$referer\n"); fclose ($fp); //end old psychicrevenue refer.cgi process //--------------------------------------------------------------------------------------------------------- //start old psychicweb router.cgi process $Cvalue1 = "$affiliate"; $Cvalue1 .= "|"; $Cvalue1 .= "$referer"; $Cvalue2 = "$affiliate"; setcookie("PWXT", $Cvalue1, time()+86400, "/", ".psychicweb.com"); setcookie("opd", $Cvalue2, time()+86400, "/", ".psychicweb.com"); $index = "console"; $nctab = array( 'pws00002' => 'noconsole', 'pws00269' => 'noconsole', 'pws00600' => 'noconsole', 'pws01448' => 'noconsole', 'pws01504' => 'noconsole', 'pws01614' => 'noconsole', 'pws01787' => 'noconsole', 'pws01821' => 'noconsole', 'pws01845' => 'noconsole', 'pws01849' => 'noconsole', 'pws01862' => 'noconsole', 'pws02169' => 'noconsole', 'pws02190' => 'noconsole', 'pws02282' => 'noconsole', 'pws02480' => 'noconsole' ); if ($nctab[$affiliate] == "noconsole") {$index = "noconsole";} //end old psychicweb router.cgi process $console_yes = <<psychics, astrology, tarot, numerology, horoscopes, psychic chat, biorhythms, iching, runes END; $console_no = <<psychics, astrology, tarot, numerology, horoscopes, psychic chat, biorhythms, iching, runes END; if ($index == "console") { echo "$console_yes"; } else { echo "$console_no"; } ?>