View Single Post
Old 04-10-2008, 09:38 AM  
chrisl
Confirmed User
 
Join Date: Dec 2006
Posts: 142
Quote:
Originally Posted by k0nr4d View Post
sounds like all he is doing is reading the end of the domain name from your hostname...
i bet the code looks like this:

$array = explode('.',$hostname);
$array = array_reverse($array);
echo $array[0];
Not exactly but very close, very simple nothing fancy just wanted to test it out ;) It's impossible to get 100% correct what ever you do, just needed something to catch most of the surfers. If the script don't have a match i will just fall back to dollar.
__________________

>>> ThaiChix-Cash.com <<<
>>> ThaiChix.com <<<
Top Ten Asian Site On All Review Sites!!!!
chrisl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote