Lavalair Vault Update

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Lavalair Vault Update

    SQL FOR IT
    Code:
    CREATE TABLE `ibwf_vault` (
      `id` int(100) NOT NULL auto_increment,
      `uid` int(100) NOT NULL default '0',
      `title` varchar(50) NOT NULL default '',
      `itemurl` varchar(255) NOT NULL default '',
      `pudt` int(100) NOT NULL default '0',
      `type` int(100) NOT NULL default '0',
      `downloads` int(100) NOT NULL default '0',
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
    Coding
    Code:
    else if($action=="vault")
    {
        $who = $_GET["who"];
        addonline(getuid_sid($sid),"Browsing Downloads","");
        $pstyle = gettheme($sid);
        echo xhtmlhead("Vault",$pstyle);
    
        $uid = getuid_sid($sid);
            echo "
    
    [size="1"]";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type='1'"));
            echo "<a href=\"lists.php?action=vaultmusic&amp;sid=$sid\"><img src=\"images/music.gif\" alt=\"*\"/> Music($noi[0])</a>
    ";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;4&#39;"));
            echo "<a href=\"lists.php?action=vaultvideos&amp;sid=$sid\"><img src=\"images/video.gif\" alt=\"*\"/> Videos($noi[0])</a>
    ";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;2&#39;"));
            echo "<a href=\"lists.php?action=vaultpics&amp;sid=$sid\"><img src=\"images/image.gif\" alt=\"*\"/> Pics($noi[0])</a>
    ";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;3&#39;"));
            echo "<a href=\"lists.php?action=vaultgames&amp;sid=$sid\"><img src=\"images/game.gif\" alt=\"*\"/> Games($noi[0])</a>
    ";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;0&#39;"));
            echo "<a href=\"lists.php?action=vaultother&amp;sid=$sid\"><img src=\"images/other.gif\" alt=\"*\"/> Other($noi[0])</a>
    ";
            echo "[/size]</p>";
      ////// UNTILL HERE >>
        echo "<p align=\"center\">";
        if($uid==$who && getplusses($uid)>25)
        {
        echo "<a href=\"index.php?action=addvlt&amp;sid=$sid\">";
    echo "Add Item</a>
    ";
    }
        $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id=&#39;".$thid[0]."&#39;"));  
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
        echo xhtmlfoot();
    }
    Add in lists.php

    Enjoy

    Click here!!!

    #2
    In lists.php
    Code:
    else if($action=="vault")
    {
        $who = $_GET["who"];
        addonline(getuid_sid($sid),"Browsing Downloads","");
        echo "<card id=\"main\" title=\"Vault\">";
        $uid = getuid_sid($sid);
            echo "
    
    [size="1"]";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;1&#39;"));
            echo "<a href=\"lists.php?action=vaultmusic&amp;sid=$sid\"><img src=\"images/music.gif\" alt=\"*\"/> Music($noi[0])</a>
    ";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;4&#39;"));
            echo "<a href=\"lists.php?action=vaultvideos&amp;sid=$sid\"><img src=\"images/video.gif\" alt=\"*\"/> Videos($noi[0])</a>
    ";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;2&#39;"));
            echo "<a href=\"lists.php?action=vaultpics&amp;sid=$sid\"><img src=\"images/image.gif\" alt=\"*\"/> Pics($noi[0])</a>
    ";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;3&#39;"));
            echo "<a href=\"lists.php?action=vaultgames&amp;sid=$sid\"><img src=\"images/game.gif\" alt=\"*\"/> Games($noi[0])</a>
    ";
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;0&#39;"));
            echo "<a href=\"lists.php?action=vaultother&amp;sid=$sid\"><img src=\"images/other.gif\" alt=\"*\"/> Other($noi[0])</a>
    ";
            echo "[/size]</p>";
      ////// UNTILL HERE >>
        echo "<p align=\"center\">";
        if($uid==$who && getplusses($uid)>25)
        {
        echo "<a href=\"index.php?action=addvlt&amp;sid=$sid\">";
    echo "Add Item</a>
    ";
    }
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
        echo "</card>";
    }
    
    
    
    ////////////////////////////////////////VAULT MUSIC
    else if($action=="vaultmusic")
    {
        $who = $_GET["who"];
        addonline(getuid_sid($sid),"Browsing Downloads","");
        echo "<card id=\"main\" title=\"Vault\">";
        $uid = getuid_sid($sid);
    
    
    
        //////ALL LISTS SCRIPT <<
    
        if($page=="" || $page<=0)$page=1;
        if($who!="")
        {
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;1&#39;"));
        }else{
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;1&#39;"));
        }
        $num_items = $noi[0]; //changable
        $items_per_page= 5;
        $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, uid, downloads, pudt FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;1&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }else{
    $sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type=&#39;1&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }
    
    
        echo "
    
    [size="1"]";
        $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=\"download.php?id=$item[0]\">$ime".htmlspecialchars($item[1])."</a>";
            $downloads = "Downloads: [b]$item[4][/b]";
            $dateadded = date("d/m/y", $item[5]);
            $dateadded1 = "Date Added: [b]$dateadded[/b]";
            
            
          if(candelvl($uid, $item[0]))
          {
            $delnk = "<a href=\"genproc.php?action=delvlt&amp;sid=$sid&amp;vid=$item[0]\">[x]</a>";
          }else{
            $delnk = "";
          }
          if($who!="")
          {
            $byusr="";
          }else{
            $unick = getnick_uid($item[3]);
            $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$unick</a>";
            $byusr = "Added By: $ulnk";
          }
          echo "$lnk 
    $byusr $delnk
    $dateadded1
    $downloads
    
    ";
          
        }
        }
        echo "[/size]</p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"lists.php?action=$action&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«Prev</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"lists.php?action=$action&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>";
        }
        echo "
    $page/$num_pages
    ";
        if($num_pages>2)
        {
          $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
            $rets .= "<anchor>[GO]";
            $rets .= "<go href=\"lists.php\" 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=\"index.php?action=addvlt&amp;sid=$sid\">";
    echo "Add Item</a>
    ";
    }
        echo "<a href=\"lists.php?action=vault&amp;sid=$sid&amp;who=$who\">«Back to Vault</a>
    ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
        echo "</card>";
    }
    
    ////////////////////////////////////////VAULT MUSIC
    else if($action=="vaultpics")
    {
        $who = $_GET["who"];
        addonline(getuid_sid($sid),"Browsing Downloads","");
        echo "<card id=\"main\" title=\"Vault\">";
        $uid = getuid_sid($sid);
    
    
    
        //////ALL LISTS SCRIPT <<
    
        if($page=="" || $page<=0)$page=1;
        if($who!="")
        {
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;2&#39;"));
        }else{
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;2&#39;"));
        }
        $num_items = $noi[0]; //changable
        $items_per_page= 5;
        $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, uid, downloads, pudt FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;2&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }else{
            $sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type=&#39;2&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }
    
    
        echo "
    
    [size="1"]";
        $items = mysql_query($sql);
        echo mysql_error();
        if(mysql_num_rows($items)>0)
        {
        while ($item = mysql_fetch_array($items))
        {
          $ext = getext($item[2]);
            $mysock = getimagesize("$item[2]"); 
            $imagesizeWH = imageResize($mysock[0], $mysock[1], 120);
            $ime = "<img src=\"$item[2]\" $imagesizeWH alt=\"*\"/>";
            $lnk = "<a href=\"download.php?id=$item[0]\">$ime
    $item[1] - Download</a>";
            $downloads = "Downloads: [b]$item[4][/b]";
            $dateadded = date("d/m/y", $item[5]);
            $dateadded1 = "Date Added: [b]$dateadded[/b]";
            
          if(candelvl($uid, $item[0]))
          {
            $delnk = "<a href=\"genproc.php?action=delvlt&amp;sid=$sid&amp;vid=$item[0]\">[x]</a>";
          }else{
            $delnk = "";
          }
          if($who!="")
          {
            $byusr="";
          }else{
            $unick = getnick_uid($item[3]);
            $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$unick</a>";
            $byusr = "Added By: $ulnk";
          }
          echo "$lnk 
    $byusr $delnk
    $dateadded1
    $downloads
    
    ";
          
        }
        }
        echo "[/size]</p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"lists.php?action=$action&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«Prev</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"lists.php?action=$action&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>";
        }
        echo "
    $page/$num_pages
    ";
        if($num_pages>2)
        {
          $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
            $rets .= "<anchor>[GO]";
            $rets .= "<go href=\"lists.php\" 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=\"index.php?action=addvlt&amp;sid=$sid\">";
    echo "Add Item</a>
    ";
    }
        echo "<a href=\"lists.php?action=vault&amp;sid=$sid&amp;who=$who\">«Back to Vault</a>
    ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
        echo "</card>";
    }
    
    //////////////////////////VAULT GAMES
    else if($action=="vaultgames")
    {
        $who = $_GET["who"];
        addonline(getuid_sid($sid),"Browsing Downloads","");
        echo "<card id=\"main\" title=\"Vault\">";
        $uid = getuid_sid($sid);
    
    
    
        //////ALL LISTS SCRIPT <<
    
        if($page=="" || $page<=0)$page=1;
        if($who!="")
        {
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;3&#39;"));
        }else{
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;3&#39;"));
        }
        $num_items = $noi[0]; //changable
        $items_per_page= 5;
        $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, uid, downloads, pudt FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;3&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }else{
    $sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type=&#39;3&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }
    
    
        echo "
    
    [size="1"]";
        $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=\"download.php?id=$item[0]\">$ime".htmlspecialchars($item[1])."</a>";
            $downloads = "Downloads: [b]$item[4][/b]";
            $dateadded = date("d/m/y", $item[5]);
            $dateadded1 = "Date Added: [b]$dateadded[/b]";
            
          if(candelvl($uid, $item[0]))
          {
            $delnk = "<a href=\"genproc.php?action=delvlt&amp;sid=$sid&amp;vid=$item[0]\">[x]</a>";
          }else{
            $delnk = "";
          }
          if($who!="")
          {
            $byusr="";
          }else{
            $unick = getnick_uid($item[3]);
            $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$unick</a>";
            $byusr = "Added By: $ulnk";
          }
          echo "$lnk 
    $byusr $delnk
    $dateadded1
    $downloads
    
    ";
          
        }
        }
        echo "[/size]</p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"lists.php?action=$action&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«Prev</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"lists.php?action=$action&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>";
        }
        echo "
    $page/$num_pages
    ";
        if($num_pages>2)
        {
          $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
            $rets .= "<anchor>[GO]";
            $rets .= "<go href=\"lists.php\" 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=\"index.php?action=addvlt&amp;sid=$sid\">";
    echo "Add Item</a>
    ";
    }
        echo "<a href=\"lists.php?action=vault&amp;sid=$sid&amp;who=$who\">«Back to Vault</a>
    ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
        echo "</card>";
    }
    
    //////////////////////////VAULT Videos
    else if($action=="vaultvideos")
    {
        $who = $_GET["who"];
        addonline(getuid_sid($sid),"Browsing Downloads","");
        echo "<card id=\"main\" title=\"Vault\">";
        $uid = getuid_sid($sid);
    
    
    
        //////ALL LISTS SCRIPT <<
    
        if($page=="" || $page<=0)$page=1;
        if($who!="")
        {
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;4&#39;"));
        }else{
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;4&#39;"));
        }
        $num_items = $noi[0]; //changable
        $items_per_page= 5;
        $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, uid, downloads, pudt FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;4&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }else{
    $sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type=&#39;4&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }
    
    
        echo "
    
    [size="1"]";
        $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=\"download.php?id=$item[0]\">$ime".htmlspecialchars($item[1])."</a>";
            $downloads = "Downloads: [b]$item[4][/b]";
            $dateadded = date("d/m/y", $item[5]);
            $dateadded1 = "Date Added: [b]$dateadded[/b]";
            
          if(candelvl($uid, $item[0]))
          {
            $delnk = "<a href=\"genproc.php?action=delvlt&amp;sid=$sid&amp;vid=$item[0]\">[x]</a>";
          }else{
            $delnk = "";
          }
          if($who!="")
          {
            $byusr="";
          }else{
            $unick = getnick_uid($item[3]);
            $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$unick</a>";
            $byusr = "Added By: $ulnk";
          }
          echo "$lnk 
    $byusr $delnk
    $dateadded1
    $downloads
    
    ";
          
        }
        }
        echo "[/size]</p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"lists.php?action=$action&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«Prev</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"lists.php?action=$action&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>";
        }
        echo "
    $page/$num_pages
    ";
        if($num_pages>2)
        {
          $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
            $rets .= "<anchor>[GO]";
            $rets .= "<go href=\"lists.php\" 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=\"index.php?action=addvlt&amp;sid=$sid\">";
    echo "Add Item</a>
    ";
    }
        echo "<a href=\"lists.php?action=vault&amp;sid=$sid&amp;who=$who\">«Back to Vault</a>
    ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
        echo "</card>";
    }
    
    //////////////////////////VAULT OTHER
    else if($action=="vaultother")
    {
        $who = $_GET["who"];
        addonline(getuid_sid($sid),"Browsing Downloads","");
        echo "<card id=\"main\" title=\"Vault\">";
        $uid = getuid_sid($sid);
    
    
    
        //////ALL LISTS SCRIPT <<
    
        if($page=="" || $page<=0)$page=1;
        if($who!="")
        {
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;0&#39;"));
        }else{
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type=&#39;0&#39;"));
        }
        $num_items = $noi[0]; //changable
        $items_per_page= 5;
        $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, uid, downloads, pudt FROM ibwf_vault WHERE uid=&#39;".$who."&#39; AND type=&#39;0&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }else{
    $sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type=&#39;0&#39; ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
            }
    
    
        echo "
    
    [size="1"]";
        $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=\"download.php?id=$item[0]\">$ime".htmlspecialchars($item[1])."</a>";
            $downloads = "Downloads: [b]$item[4][/b]";
            $dateadded = date("d/m/y", $item[5]);
            $dateadded1 = "Date Added: [b]$dateadded[/b]";
            
          if(candelvl($uid, $item[0]))
          {
            $delnk = "<a href=\"genproc.php?action=delvlt&amp;sid=$sid&amp;vid=$item[0]\">[x]</a>";
          }else{
            $delnk = "";
          }
          if($who!="")
          {
            $byusr="";
          }else{
            $unick = getnick_uid($item[3]);
            $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$unick</a>";
            $byusr = "Added By: $ulnk";
          }
          echo "$lnk 
    $byusr $delnk
    $dateadded1
    $downloads
    
    ";
          
        }
        }
        echo "[/size]</p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"lists.php?action=$action&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«Prev</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"lists.php?action=$action&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>";
        }
        echo "
    $page/$num_pages
    ";
        if($num_pages>2)
        {
          $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
            $rets .= "<anchor>[GO]";
            $rets .= "<go href=\"lists.php\" 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=\"index.php?action=addvlt&amp;sid=$sid\">";
    echo "Add Item</a>
    ";
    }
        echo "<a href=\"lists.php?action=vault&amp;sid=$sid&amp;who=$who\">«Back to Vault</a>
    ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
        echo "</card>";
    }

    Click here!!!

    Comment


      #3
      thanks buddy..........................
      <div align="center">My Web Community ......... http://pahasara.net



      </div>

      Comment


        #4
        thanks buddy..........................
        [/b]

        Comment


          #5
          it wont work lol thats a half piece of coding!!!!!! (spiderwap ek het jou mos gevra om nie teshare nie het ek)

          click here to join blingywap.co.za
          http://blingywap.co.za


          IF YOU NEED HELP JUST ASK AND ALWAYS SAY THANK YOU!

          Comment


            #6
            it wont work lol thats a half piece of coding!!!!!! (spiderwap ek het jou mos gevra om nie teshare nie het ek) [/b]

            ya ur right.can u give me da full coding plz...........
            <div align="center">My Web Community ......... http://pahasara.net



            </div>

            Comment


              #7
              lol rko1, thats the code from my lavalair edited script.
              i asked you also don&#39;t share.

              Comment


                #8
                bro what ever i add in the valut is added in other catagory and not in catagory meant 4 items pls help me.

                Comment


                  #9
                  bro what ever i add in the valut is added in other catagory and not in catagory meant 4 items pls help me.[/b]

                  well already got that coding

                  Comment


                    #10
                    well already got that coding[/b]
                    Yep. I also use a diffrent coding for this.

                    But nice work

                    Comment


                      #11
                      Hey I added these codes.But it has a problem

                      when we add items,all the items goes to OTHERS

                      Items not categorized.
                      I think problem is the coding in GENPROC.PHP

                      in sql "item" shows "0" for all.

                      Plz help to fix this bro

                      Comment


                        #12
                        Hey I added these codes.But it has a problem

                        when we add items,all the items goes to OTHERS

                        Items not categorized.
                        I think problem is the coding in GENPROC.PHP

                        in sql "item" shows "0" for all.

                        Plz help to fix this bro
                        [/b]
                        i have fixed it can do
                        Code:
                        $result = mysql_query("UPDATE ibwf_vault SET type=&#39;2&#39; WHERE age=&#39;0&#39;")

                        Comment


                          #13
                          yehh mate i fixed tht..thnx

                          Comment


                            #14
                            yehh mate i fixed tht..thnx[/b]




                            bro pls help me also how to fix this?

                            Comment


                              #15
                              where must i put this code??

                              $result = mysql_query("UPDATE ibwf_vault SET type=&#39;2&#39; WHERE age=&#39;0&#39;")

                              where??

                              Comment

                              Working...
                              X