View Single Post
  #1 (permalink)  
Old 01-08-2009, 07:56 PM
itmark itmark is offline
Registered Member
 
Join Date: Aug 2008
Posts: 70
Thanks: 16
Thanked 15 Times in 4 Posts
Reputation: 10
iTrader: (0)
Default Text rotator based on IP

I am looking for a simple php script that can rotate text based on IP(Computer IP).

I got a site and if you look at the site it should rotate between 2 different texts. But if a blocked IP user look at the page will see a specific piece of text.

Just like cloaking but a simple one I can copy into a wordpress blog and it should only change a piece of the site not the hole site.

Something like this but the option to say that if these ips enter the site show ex. nr1 text.


<?
$text[]="1";
$text[]="2";
$text[]="3";
$text[]="4";
$text[]="5";


// Print the random text
echo $text[rand(0,count($text)-1)];


?>

So a IP cloaking script with text rotator.
Reply With Quote