View file wapirate/wml/down2.php

File size: 2.41Kb
<?php
include("head.php");
////////////////////////////////////////MAIN PAGE
if($action=="download")
{
  $vista = $_GET["vista"];
 $file = $_GET["piratewap"];
$file = str_replace("%20"," ",$file);
$file = str_replace("&","%26",$file);
   


    addonline(getuid_sid($sid),"Downloading","");
$download = str_replace(" ","%20",$download);
$file = str_replace("(and)","&amp;",$file);

if(substr_count($file,"*wapirate*")>0){
$ice = explode("*",$file);
$filex = "http://www.jamglue.com/$ice[3]/$ice[2]/download.mp3";
$newfile = "getit.php?file=$ice[2]&amp;type=$ice[3]&amp;sid=$sid";
$num = "";
}else{
$filex = $file;
$newfile = $file;
$num = "getit.php?stp=";
}
$newfile = str_replace("(and)","&",$newfile);
//$newfile = str_replace("%26","&",$newfile);
$newfile = str_replace(" ","%20",$newfile);
//$file = str_replace("(","%5b",$newfile);
$newfile = stripslashes($newfile);
echo "<card id=\"main\" title=\"wapirate\" ontimer=\"$num$newfile\">";
$filex = str_replace("&amp;","(and)",$filex);
echo "<timer value=\"10\"/>";
  echo "<p align=\"center\">";

echo "<b>wapirate.net</b><br/>";

$str = strtolower($filex);
$search = array(".zip", ".tar", ".tgz", ".tar.gz", ".rar", ".pdf", ".doc", ".xls", ".ppt", ".exe", ".gif", ".png", ".jpg", ".jpeg", ".mp3", ".wav", ".mpeg", ".mpg", ".mpe", ".mp4", ".mov", ".avi", ".wmv", ".mov", ".sis", ".jar", ".3gp", ".nth", ".thm", ".amr", ".sisx", ".mid", ".swf", ".jad", ".txt");
$test = str_replace($search, "***", $str);
if(substr_count($test,"***")>0){
if($vista!=$uid){
$hiw = mysql_fetch_array(mysql_query("SELECT rep FROM ibwf_users WHERE id='".$vista."'"));
$how = $hiw[0] + 1;
mysql_query("UPDATE ibwf_users SET rep='".$how."' WHERE id='".$vista."'");
}
}
$getf = mysql_fetch_array(mysql_query("SELECT file, hits FROM external_links WHERE file='".$filex."'"));
if($getf[0]==""){
mysql_query("INSERT INTO external_links SET file='".$filex."', hits='0'"); 
}
$getf = mysql_fetch_array(mysql_query("SELECT file, hits FROM external_links WHERE file='".$filex."'"));

$res=mysql_query("UPDATE external_links SET hits='".($getf[1]+1)."' WHERE file='".$filex."'");

echo "If Your Download Does Not Start In 5 seconds Click below<br/>";
echo "<a href=\"$num$newfile\">Get File</a><br/><br/><br/>";
  echo "<br/><a href=\"index.php?action=main\"><img src=\"images/home.gif\" alt=\"*\"/>";
  echo "Home</a>";
  echo "</p>";
  echo "</card></wml>";
      exit();
}

 ?>