<?php
include("head.php");
/////////////////////////////////////////////////MAIN PAGE
/////////////////////1thiefy@gmail.com
if($action=="download")
{
$vista = $_GET["vista"];
$file = $_GET["piratewap"];
$file = str_replace("%20"," ",$file);
$file = str_replace("&","%26",$file);
addonline(getuid_sid($sid),"Downloading","");
$getf = mysql_fetch_array(mysql_query("SELECT file, hits FROM external_links WHERE file='".$file."'"));
mysql_query("DELETE FROM external_links WHERE file=''");
echo "<div><br/>Wapirate<br/></div>";
echo "<p align=\"center\">";
echo "<b>wapirate.net</b><br/>";
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]&type=$ice[3]";
$num = "";
}else{
$filex = $file;
$newfile = $file;
$num = "getit.php?stp=";
}
$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."'");
}
}
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."'");
$newfile = str_replace("(and)","&",$newfile);
//$newfile = str_replace("%26","&",$newfile);
$newfile = str_replace(" ","%20",$newfile);
$newfile = stripslashes($newfile);
//$newfile = str_replace("(","%5b",$$newfile);
echo "<meta http-equiv=Refresh content=1;url=$num$newfile>";
echo "Click Below If Page Does Not Refresh within 5 seconds<br/>";
echo "<a href=\"$num$newfile\">Click Here</a><br/><br/><br/>";
echo getfoot($sid,$folder);
exit();
}
///////////////////////////////////////////////// the end lol
else{
addonline(getuid_sid($sid),"Lost!","");
echo "<div><br/>Doh!<br/></div>";
echo "<p align=\"center\">";
echo "I don't know how you got into here, but there's nothing to show<br/><br/>";
echo getfoot($sid,$folder);
exit();
}
?>