View file wap/fsdownload.php

File size: 4.04Kb
<?php
include("inc/func.inc.php");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
  if(!db()){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getdberror();
  echo "</body>";
  echo "</html>";
  exit();
  }

  $show = $_GET["show"];
  $hits = $_GET["hits"];
  $page = $_GET["page"];
  $who = $_GET["who"];
  $uid = getuid_hits($hits);
  $uip = getip();
  $ubr = $_SERVER['HTTP_USER_AGENT'];
  cleardata();
  addvisitor();

  if(isipbanned($uip,$ubr)){
  if(!isshield(getuid_hits($hits))){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getipbanned($uip, $ubr);
  echo "</body>";
  echo "</html>";
  exit();
  }
  }

  if(($show != "") && ($show != "terms")){
  $uid = getuid_hits($hits);
  if((islogged($hits)==false)||($uid==0)){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getsesexplog();
  echo "</body>";
  echo "</html>";
  exit();
  }
  }

  if((isbanned($uid))&&($uid != '0')){
  echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
  echo "</head>";
  echo "<body>";
  echo getbanned($uid);
  echo "</body>";
  echo "</html>";
  exit();
  }

 $id = $_GET["id"];
 $linkins = mysql_fetch_array(mysql_query("SELECT filename FROM mx_uploads WHERE id='".$id."'"));
 $namaite = $linkins[0];
 addonline(getuid_hits($hits),"Downloads - $namaite","");
     echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
 echo "<div class=\"box_cen\" align=\"center\">";
 echo "<b>Download File</b>";
 echo "<div class=\"box_sub\" align=\"center\">";

 if(valid(getuid_hits($hits)))
 {
    echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><b>Your Account Not Validated Yet</b><br/>This Could Take Up To 30 Minutes<br/>Please Be Patient And Try Again Later<br/>Thank You";

    }else if(getposting(getuid_hits($hits))<10)
 {
  echo "Ekeke. Posting Ko X Cukup Nak Download.. Kena Ada 10 Posting Kat Forum Ok.. Hahax!";

 }else{

  $item = mysql_fetch_array(mysql_query("SELECT downloads, plusses, uid FROM mx_uploads WHERE id='".$id."'"));

 $pluss = $item[1];
 $whou = $item[2];

 if(getplusses(getuid_hits($hits))<'$pluss')
 {
  echo "You Need $pluss Plusses To Download This Item";
 }else{

 $inplus = getplusses(getuid_hits($hits)) - $pluss;
 mysql_query("UPDATE mx_users SET plusses='".$inplus."' WHERE id='".getuid_hits($hits)."'");

 $sel2 = mysql_fetch_array(mysql_query("SELECT plusses FROM mx_users WHERE id='".$whou."'"));

 $onplus = $sel2[0] + $pluss;
 mysql_query("UPDATE mx_users SET plusses='".$onplus."' WHERE id='".$whou."'");

 $incresedownload = $item[0] + 1;
 mysql_query("UPDATE mx_uploads SET downloads='".$incresedownload."' WHERE id='".$id."'");
  echo "<meta http-equiv=\"refresh\" content=\"6; url=cdownload.php?id=$id\">";
 echo "<img src=\"images/5down.gif\" alt=\"5secs\"/><br/>";
 echo "You Plusses Has Been Debited $pluss Plusses From Cost To Download This Item.. Click <a href=\"cdownload.php?id=$id\">*Here*</a> Or Wait 5 Seconds To Continue Download.";
 }
}
 echo "</div>";
 echo "<a href=\"lists.php?show=fshare&amp;hits=$hits\"><img src=\"images/download.png\" alt=\"&#187;\"/>Downloads</a>";
 echo "</div>";
 echo footerweb($hits);
      echo "</body>";
?>
</html>