View file retrivewap/download.php

File size: 506B
<?php
include("config.php");
include("core.php");
connectdb();

$id = $_GET['id'];
$action = $_GET["action"];
$sid = $_GET["sid"];

 $downloads = mysql_fetch_array(mysql_query("SELECT downloads FROM ibwf_vault WHERE id='".$id."'"));
 $incresedownload = $downloads[0] + 1;
 mysql_query("UPDATE ibwf_vault SET downloads='".$incresedownload."' WHERE id='".$id."'");
 $link = mysql_fetch_array(mysql_query("SELECT itemurl FROM ibwf_vault WHERE id='".$id."'"));
 header("Location:$link[0]");

?>