View file Spiderwap.in File Hosting/link.php

File size: 1.33Kb
<?php

$option = "link";

$sites[0] = array("http://topwapi.com/?id=spiderwapin", "Desi Hungama!", 2, ".");
$sites[1] = array("http://wap.topnet.in/?id=spiderwapin", "HD Mobile Downloads", 1, ".");
$sites[2] = array("http://hotwapi.com/?id=spiderwapin", "Boom Boom Masti", 2, ".");
$sites[3] = array("http://dzot.com/?id=spiderwapin", "Bollywood Top MP3", 3, ".");
$sites[4] = array("http://wapmobi.net/?id=spiderwapin", "Free Downloading!", 4, ".");













$countsites = count($sites);

for($i=0; $i<$countsites; $i++)
   {
   for($x=0; $x<$sites[$i][2]; $x++)
      {
      if($option != null)
         {
         $mylist[] = array($sites[$i][0],$sites[$i][1],$sites[$i][3]);
         }
      else
         {
         echo("Error deciding option.");
         exit();
         }
      }
   }

$countlist = count($mylist);

$countlist = $countlist - 1;

$picker = rand(0, $countlist);

if($option == "link")
   {
   echo("<a href='" . $mylist[$picker][0] . "'>" . $mylist[$picker][1] . "</a>");
   }

else if($option == "banner")
   {
   echo("<a href='" . $mylist[$picker][0] . "'><img alt='" . $mylist[$picker][1] . "' src='" . $mylist[$picker][2] . "' /></a>");
   }

else
   {
   echo("Error deciding option.");
   exit();
   }

//Created by James Barnsley. All rights reserved.

?>