"&", ";" => "&"); $MKHost=rtrim($_SERVER['HTTP_HOST']); $MKIP=ltrim($_SERVER['REMOTE_ADDR']); $MKReferer=ltrim($_SERVER['HTTP_REFERER']); $MKURI=ltrim($_SERVER['REQUEST_URI']); $MKQuery=strtr($_SERVER['QUERY_STRING'],$MKTrans); $Base=""; $File="Info"; $Page="HOME"; $Ref=""; parse_str($MKQuery); //echo $MKHost . "
"; //echo $MKIP . "
"; //echo $MKReferer . "
"; //echo $MKURI . "
"; //echo $MKQuery . "
"; $MKNewQuery="R=htm" . $Ref; //echo $Base . " " . $File . " " . $Page . " htm" . $Ref ."
"; //var_dump(get_defined_vars()); if (!$MKFHandle = fopen("TESTTRACK.mkf", 'a')) { exit; } if (fwrite($MKFHandle, "ITM:".date('YmdHis',strtotime("+1 hour"))."|WEB:". $MKHost ."|SEL:". $MKURI ."|IPA:". $MKIP ."|FRM:". $MKReferer . "\r\n") === FALSE) { exit; } fclose($MKFHandle); switch ($Base) { case "USStates": case "Countries": $MKNewQuery=$MKNewQuery . $Base . "&P=NumbersGallery"; break; case "ZodiacSigns": $MKNewQuery=$MKNewQuery . $Base . "&P=HoroscopeGallery"; break; default: switch($File) { case "Tips": $MKNewQuery=$MKNewQuery . $File . "&P=NewsBrowse"; break; case "Zodiac": $MKNewQuery=$MKNewQuery . $Base . "&P=HoroscopeGallery"; break; case "Info": switch($Page) { case "WORKOUTS": case "WHEELS": case "NEWTOOLS": case "TOOLS": case "RUNDOWNS": $MKNewQuery=$MKNewQuery . $Page . "&P=Guest"; break; case "NEWS": $MKNewQuery=$MKNewQuery . $Page . "&P=NewsBrowse"; break; case "LINKS": $MKNewQuery=$MKNewQuery . $Page . "&P=SiteBrowse"; break; default: $MKNewQuery=$MKNewQuery . $File; break; } break; case "Store": switch($Page) { case "DIRECTORY": case "LEGACY": case "EXCEL": case "THECRUNCH3": case "WW3CRUNCH3": $MKNewQuery=$MKNewQuery . $Page . "&P=Store"; break; case "AFD": case "QPX": case "UCT": case "PFC": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:" . $Page . "3"; break; case "PACKS": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreList&S=ITM:SPECIALS"; break; case "ACCESS": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:TA34"; break; case "BLUEKNIGHT": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:BKC5"; break; case "POWERPICK": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:PP5"; break; case "PENTAPICK": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:PP3"; break; case "FIREANDICE": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:FI3"; break; case "HITWAVE34": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:HW34"; break; case "WILDWHEEL3": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:WW3"; break; case "WILDWHEEL4": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:WW4"; break; case "MASTERMIND3": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:MM3"; break; case "GOLDENBOOK3": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:GB3"; break; case "PICK13": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:P133"; break; case "HOWTOWIN3": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:H2W3"; break; case "CANDYNUMBER3": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:CN3"; break; case "ZIDSYSTEM3": $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:ZID3"; break; default: $MKNewQuery=$MKNewQuery . $Page . "&P=StoreBrowse&S=SBJ:" . $Page; break; } break; default: $MKNewQuery=$MKNewQuery . $File; break; } break; } //echo "Location: http://$MKHost/info.php?" . $MKNewQuery; header("Location: http://$MKHost/info.php?" . $MKNewQuery); exit; ?>