View file wapirate/A1/down2.php

File size: 7.71Kb
<?php





include("captainsafecore.php");

include("captainsafeconfig.php");





header("Content-type: text/html; charset=ISO-8859-1");

echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";

echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";

echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";





$addy = "wapirate.net";

$bcon = connectdb();

if (!$bcon)

{

        echo "<head>";

    echo "<title>Error!!!</title>";

    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/red_medium.css\">";

    echo "</head>";

    echo "<body>";

echo "<div><br/>Doh!<br/></div>";

    echo "<p align=\"center\">";

    echo "<img src=\"images/error.gif\" alt=\"*\"/><br/>";

    echo "ERROR! cannot connect to database<br/><br/>";

    echo "This error usually happens when backing up the database, please be patient, The site will be up as soon as possible<br/><br/>";

    echo "<b>THANK YOU VERY MUCH</b>";

    echo "</p>";

echo "<div>$addy</div>";

    echo "</body>";

    echo "</html>";

    exit();

}

$brws = explode(" ",$HTTP_USER_AGENT);

$ubr = $brws[0];

$uip = getip();

$action = $_GET["action"];

$sid = $_GET["sid"];

$page = $_GET["page"];

$who = $_GET["who"];

$wnick = getnick_uid($who);

$uid = getuid_sid($sid);

$theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));



cleardata();

if(isipbanned($uip,$ubr))

    {

      if(!isshield(getuid_sid($sid)))

      {

  echo "<head>";

  echo "<title>Ip Block!</title>";

  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/red_medium.css\">";

  echo "</head>";

  echo "<body>";

echo "<div><br/>Doh!<br/></div>";

      echo "<p align=\"center\">";

      echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";

      echo "This IP address is blocked<br/>";

      echo "<br/>";

      echo "However we grant a shield against IP-Ban for our best users, you can try to see if you are shielded by trying to login, if you keep coming to this page that means you are not shielded, so come back when the ip-ban period is over<br/><br/>";

      $banto = mysql_fetch_array(mysql_query("SELECT  timeto FROM ibwf_penalties WHERE  penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 "));

      //echo mysql_error();

      $remain =  $banto[0] - time();

      $rmsg = gettimemsg($remain);

      echo " IP: $rmsg<br/><br/>";

      

      echo "</p>";

    //  echo "<p>";

  echo "<form action=\"login.php\" method=\"get\">";

  echo "username:<br/> <input name=\"loguid\" format=\"*x\" size=\"8\" maxlength=\"30\"/><br/>";

  echo "password:<br/> <input type=\"password\" name=\"logpwd\" size=\"8\" maxlength=\"30\"/><br/>";

echo "<input type=\"submit\" value=\"login &#187;\"/>";

echo "</form>"; 

 // echo "</p>";

echo "<div>$addy</div>";

  echo "</body>";

  echo "</html>";

      exit();

      }

    }

if(($action != "") && ($action!="terms"))

{

    $uid = getuid_sid($sid);

    if((islogged($sid)==false)||($uid==0))

    {

      echo "<head>";

      echo "<title>Error!!!</title>";

      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/red_medium.css\">";

      echo "</head>";

      echo "<body>"; 

     echo "<div><br/>Doh!<br/></div>";

      echo "<p align=\"center\">";

      echo "You are not logged in<br/>";

      echo "Or Your session has been expired<br/><br/>";

      echo "<a href=\"index.php\">Login</a>";

      echo "</p>";

echo "<div>$addy</div>";

  echo "</body>";

  echo "</html>";

      exit();

    }

    

    

    

}

//echo isbanned($uid);

if(isbanned($uid))

    {

      echo "<head>";

      echo "<title>Error!!!</title>";

      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/red_medium.css\">";

      echo "</head>";

      echo "<body>"; 

       echo "<div><br/>Doh!<br/></div>";

      echo "<p align=\"center\">";

      echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";

      echo "You are <b>Banned</b><br/>";

      $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));

	  $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));

	  

      $remain = $banto[0]- time();

      $rmsg = gettimemsg($remain);

      echo "Time to finish your penalty: $rmsg<br/><br/>";

	  echo "Ban Reason: $banres[0]";

      echo "</p>";

echo "<div>$addy</div>";

  echo "</body>";

  echo "</html>";

      exit();

    }

$res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'");

/////////////////////////////////////////////////MAIN PAGE

/////////////////////1thiefy@gmail.com

if($action=="download")

{

  $type = $_GET["type"];

  $file = $_GET["file"];

    addonline(getuid_sid($sid),"Downloading","");

    $getf = mysql_fetch_array(mysql_query("SELECT file, hits FROM external_links WHERE file='".$file."'"));

  echo "<head>";

  echo "<title>wapirate</title>";

  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";

  echo "</head>";

  echo "<body>";

if($type==""){

 echo "<div><br/>Wapirate<br/></div>"; 

}else{

echo "<div><br/>Download<br/></div>"; 

}

  echo "<p align=\"center\">";

if($type==""){

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

}else{

echo "<b>Download Attatchment</b><br/>";

}

if($getf[0]==""){

mysql_query("INSERT INTO external_links SET file='".$file."', hits='0'"); 

}

$getf = mysql_fetch_array(mysql_query("SELECT file, hits FROM external_links WHERE file='".$file."'"));

if($type=="a"){

$url = "http://ultijena.wen.ru/files/";

}else if($type=="g"){

$url = "http://ultijeng.wen.ru/files/";

}else if($type=="v"){

$url = "http://ultijenv.wen.ru/files/";

}else if($type=="m"){

$url = "http://ultijenm.wen.ru/files/";

}else if($type=="x"){

$url = "http://ultijenx.wen.ru/files/";

}else if($type=="t"){

$url = "http://ultijent.wen.ru/files/";

}else if($type=="f"){

$url = "http://ultijenv.wen.ru/files/";

}else if($type=="e"){

$url = "http://ultijene.wen.ru/files/";

}else if($type=="p"){

$url = "http://ultijenp.wen.ru/files/";

}else if($type=="d"){

$url = "http://ultijen.wen.su/files/";

}else if($type=="s"){

$url = "http://scribbles.ultijen.0lx.net/";

}else if($type=="w"){

$url = "http://wapirate.wen.ru/";

}else if($type==""){

$url = "";

}

$download = "$url$getf[0]";

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

echo "<meta http-equiv=Refresh content=1;url=".$download.">";

echo "If Your Download Does Not Start In 5 seconds Click below<br/>";

echo "<a href=\"".$download."\">Get File</a><br/><br/><br/>";

  echo "<br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";

  echo "Home</a>";

  echo "</p>";

echo "<div>$addy</div>";

   echo "</body>";

      exit();

}



///////////////////////////////////////////////// the end lol

else{

addonline(getuid_sid($sid),"Lost!","");

  echo "<head>";

  echo "<title>wapirate</title>";

  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";

  echo "</head>";

  echo "<body>"; 

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 "<img src=\"/images/line.gif\" alt=\"line\"/>";

echo "<br/><a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";

echo "<br/><br/><small>&#169; $sitename</small>";

echo "</p>";

echo "<div>$addy</div>";

   echo "</body>";

      exit();

}





	echo "</html>";

?>