This is my download.php script
and this is the adding vault item @ genproc.php
----------------------------------------------------
MY PROBLEM IS-- EVERYTIME I ADD A DOWNLOAD URL..
DEADLINK IS NOT ALLOWED! APPEAR!
BUT THE LINK THAT I USE IS NOT BROKEN..
THANKS FOR THE ONE WOH FIXED THIS..
PHP Code:
<?php
include("config.php");
include("core.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\">";
echo "<head>";
echo "<title>pinoyaztig.net</title>";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
echo "</head>";
echo "<body>";
connectdb();
$action = $_GET["action"];
$sid = $_GET["sid"];
$page = $_GET["page"];
$did = $_GET["did"];
if($action != "")
{
if(islogged($sid)==false)
{
echo "<card id=\"main\" title=\"KozmozWAP\">";
echo "<p align=\"center\">";
echo "You are not logged in<br/>";
echo "Or<br/>Your session has been expired<br/><br/>";
echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
}
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"KozmozWAP\">";
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'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time to finish your penalty: $rmsg<br/><br/>";
//echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
//////////////////////////////////Buddies
else if($action=="symbian")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Symbian Application","");
echo "<card id=\"main\" title=\"Symbian Application\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="1")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='1'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=themes&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="java")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Java Application","");
echo "<card id=\"main\" title=\"Java Application\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="2")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='2'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=themes&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="antivirus")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Anti Vitus","");
echo "<card id=\"main\" title=\"Anti Virus\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="3")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='3'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=themes&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="themes")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"s40v2/s40v3 Themes","");
echo "<card id=\"main\" title=\"s40v2/s40v3 Themes\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="4")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='4'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=themes&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="themes1")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"s60/s60v3/Nseries-Themes","");
echo "<card id=\"main\" title=\"s60/s60v3/Nseries-Themes\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="5")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='5'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=themes&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="sethemes")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"SE Themes","");
echo "<card id=\"main\" title=\"SE Themes\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="6")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='6'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=apps&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="games1")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"s30/s40/s40v2 Games","");
echo "<card id=\"main\" title=\"s30/s40/s40v2 Games\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="7")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='7'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=games1&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="games2")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"s60/s60v3 Games","");
echo "<card id=\"main\" title=\"s60/s60v3 Games\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="8")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='8'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=games2&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="games3")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Eseries/Ngage/Nseries Games","");
echo "<card id=\"main\" title=\"s60/Ngage/Nseries Games\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="9")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='9'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=videos&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="segames")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"SE Games","");
echo "<card id=\"main\" title=\"SE Games\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="10")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='10'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=audio&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="mp3")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Full MP3","");
echo "<card id=\"main\" title=\"Full MP3\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="11")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='11'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=wall&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="3gp")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"3GP Videos","");
echo "<card id=\"main\" title=\"3GP Videos\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="12")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='12'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=others&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="scandal")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Scandal","");
echo "<card id=\"main\" title=\"Scandal\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="13")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='13'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=wall&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="gameboy")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Gameboy Games","");
echo "<card id=\"main\" title=\"Gameboy Games\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="14")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='14'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=wall&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="naruto")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Naruto-Themes/Poly/MP3 ","");
echo "<card id=\"main\" title=\"Naruto-Themes/Poly/MP3 \">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="15")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='15'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=wall&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="poly")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"MP3/MIDI/WAV/POLY/AMR/RAR ($noi[0])","");
echo "<card id=\"main\" title=\"MP3/MIDI/WAV/POLY/AMR/RAR ($noi[0])\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="16")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='16'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=wall&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="logo")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Opera Software","");
echo "<card id=\"main\" title=\"Opera Software\">";
$uid = getuid_sid($sid);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($did="17")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE did='17'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
if($who!="")
{
$sql = "SELECT id, title, itemurl, did FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
}else{
$sql = "SELECT id, title, itemurl, uid, did FROM ibwf_vault WHERE did='".$did."' ORDER BY did DESC LIMIT $limit_start, $items_per_page";
}
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$ime = getextimg($ext);
$lnk = "<a href=\"downloads.php?action=download&sid=$sid&did=$item[0]\">$ime".htmlspecialchars($item[2])."</a>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "<br/>By: $ulnk";
}
echo "$lnk $byusr $delnk<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"downloads.php?action=$action&page=$ppage&sid=$sid&who=$who\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"downloads.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"downloads.php?type=send\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"who\" value=\"$who\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
if($uid==$who && getplusses($uid)>25)
{
echo "<a href=\"up.php?action=wall&sid=$sid\">";
echo "Add Item</a><br/>";
}
if($who!="")
{
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "$whonick's Profile</a><br/>";
}else{
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
//////////////////////////////////Buddies
else if($action=="download")
{
$did = $_GET["did"];
$uid = getuid_sid($sid);
addonline(getuid_sid($sid),"Downloading..","");
echo "<card id=\"main\" title=\"Downloading...\">";
echo "<p align=\"left\">";
$uid = getuid_sid($sid);
$item = mysql_fetch_array(mysql_query("SELECT id, title, itemurl, uid, did, downloads, pudt, filesize, mime, info FROM ibwf_vault WHERE id='".$did."'"));
$name = "Name: $item[1]";
$desc= "Description: $item[9]";
$downloads = "Download Times: $item[5]";
$filesize = "File Size: $item[7]";
$mime = "File Type: $item[8]";
$tmstamp = $item[6];
$tmdt = date("d m Y - H:i:s", $tmstamp);
$earns2 = "Download Cost: 5 plusses";
$dateadded1 = "Date Added: $dateadded";
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
}
echo "$name<br/>$desc<br/>$filesize<br/>$mime<br/>Date Uploaded: $tmdt<br/>$earns2<br/>$downloads<br/>Uploaded by by: $ulnk<br/>";
echo "----<br/><a href=\"getnow.php?sid=$sid&did=$item[0]\">Download now!</a><br/>";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"genproc.php?action=delvlt&sid=$sid&did=$item[0]\">Delete</a><br/>";
}else{
$delnk = "";
}
echo "$delnk";
echo "<a href=\"index.php?action=vault&sid=$sid\">";
echo "Downloads</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</card>";
}
?>
</HTML>
and this is the adding vault item @ genproc.php
PHP Code:
else if($action=="addvlt")
{
if(!getplusses(getuid_sid($sid))>25)
{
echo "<title>pinoykindat.net</title>";
echo "<p align=\"center\">";
echo "Only the user of 25+ plusses can add a vault item<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
$viname = $_POST["viname"];
$vilink = $_POST["vilink"];
$videsc = $_POST["videsc"];
$did = $_POST["did"];
//$qut = $_POST["qut"];
$fname= array_reverse(explode("/",$vilink));
addonline(getuid_sid($sid),"Adding A Vault Item","index.php?action=main");
error_reporting(0);
if(strlen($viname)<5)
{
echo "<title>pinoykindat.net</title>";
echo "<p align=\"center\">";
echo "5 minimum letters for the title!";
echo "<br/><a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
if(strlen($vilink)<5)
{
echo "<title>pinoykindat.net</title>";
echo "<p align=\"center\">";
echo "5 minimum letters for the link!";
echo "<br/><a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
if(strlen($videsc)<5)
{
echo "<title>pinoykindat.net</title>";
echo "<p align=\"center\">";
echo "5 minimum letters for the description!";
echo "<br/><a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
if(spacesin($vilink))
{
echo "<card id=\"main\" title=\"Error adding\">";
echo "<p align=\"center\">";
echo "No space input!<br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">Main menu</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
$fname= array_reverse(explode("/",$vilink));
if (!eregi("\.(mid|gif|bmp|mid|midi|3gp|mp3|mp4|wav|mpn|nth|mpc|jar|jad|jpeg|jpg|sis|mmf|amr|thm|png|wbmp|rar|zip)$",$fname[0]))
{
echo "<card id=\"main\" title=\"Error adding\">";
echo "<p align=\"center\">";
echo "<b>Unsuported File extention!</b><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">Main menu</a>";
echo "</p></card></wml>";
exit();
}
echo "<title>pinoykindat.net</title>";
echo "<p align=\"center\">";
$crdate = time();
//$uid = getuid_sid($sid);
$res = false;
$defaultDest = "$dir";
$slash = "/";
$dest = "./pkfiles/";
$fname= array_reverse(explode("/",$vilink));
$ds = array($dest, $slash, $fname[0]);
$ds = implode("", $ds);
if (!copy($vilink, $ds))
{
echo "Dead link is not allowed!(<br/>";
}else{
$fname= array_reverse(explode("/",$vilink));
$ext = getext($fname[0]);
$mime = getextfile($ext);
$fname= array_reverse(explode("/",$vilink));
$filesize = filesize($ds);
$filesize = $filesize / 1048576;
$fsize = 0;
$fsizetxt = "";
if ($filesize < 1)
{
$fsize = round($filesize*1024,0);
$fsizetxt = "".$fsize."KB";
$check1 = "KB";
}else{
$fsize = round($filesize,2);
$fsizetxt = "".$fsize." MB";
$check1 = "MB";
}
$res = mysql_query("INSERT INTO ibwf_vault SET uid='".$uid."', title='".mysql_escape_string($viname)."', pudt='".$crdate."', did='".$did."', info='".$videsc."',filesize='".$fsizetxt."', mime='".$mime."', itemurl='".$fname[0]."'");
if($res)
{
mysql_query("UPDATE ibwf_users SET plusses=plusses-'5' WHERE id='".$uid."'");
echo "File added successfully!";
}else{
}
}
echo "<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Main menu</a>";
echo "</p>";
echo "</body>";
}
MY PROBLEM IS-- EVERYTIME I ADD A DOWNLOAD URL..
DEADLINK IS NOT ALLOWED! APPEAR!
BUT THE LINK THAT I USE IS NOT BROKEN..
THANKS FOR THE ONE WOH FIXED THIS..
Comment