Lavalair Vault Update Xhtml ?

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

    Lavalair Vault Update Xhtml ?

    i wnt lavalair vault update xhtml version anyone got dis plz.give it to me....
    <div align="center">My Web Community ......... http://pahasara.net



    </div>

    #2
    Ask...... Amylee

    Comment


      #3
      i wnt lavalair vault update xhtml version anyone got dis plz.give it to me....[/b]
      shut the fuk up m8 yu dont demand it you ask
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        my new vault wont work on the lava script you lot use totally different coding and database structure plus never bothered updating the old script at all except for few security fixes and what not so i dont have anything regarding xhtml with the lava scripts available here

        Comment


          #5
          i have sme coding but i get errors download not be catagrized all goto others..
          plz help me to fix that.

          in index.php
          Code:
          //////////////////////////////////////////add vault
          
          else if($action=="addvlt")
          {
          
          
          if(!getplusses(getuid_sid($sid))>25)
              {
                echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                  echo "<card id=\"main\" title=\"Methos\">";
                echo "<p align=\"center\">";
                echo "At least you should have 25 Credits to add an item to your vault
          
          ";
                echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
                echo "</p>";
                echo "</card>";
                echo "</wml>";
                exit();
              }
              addonline(getuid_sid($sid),"Adding a vault item","");
          
             echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
              echo "<card id=\"main\" title=\"Add vault item\">";
              echo "<onevent type=\"onenterforward\">";
            echo "<refresh>
                  <setvar name=\"viname\" value=\"\"/>
                  <setvar name=\"vilink\" value=\"\"/>
             ";
            echo "</refresh></onevent>";
          
              echo "<p align=\"center\">";
              echo "[size="1"]The vault is used to store your downloadable links,like images, mp3&#39;s, games  etc...
          WARNING: if you used it to wapsites links they will got deleted and you&#39;ll lose some Credits, if you used it for ranking sites links like 2wap, mradar, you&#39;ll be banned[/size]
          
          ";
             
              echo "<form name=\"input\"
          action=\"genproc.php?action=addvlt&amp;sid=$sid\" method=\"post\"/>";
          echo "Item name: <input
          type=\"text\"
          name=\"viname\"/>
          ";
          echo "Item Url: <input
          type=\"text\"
          name=\"vilink\"/>
          ";
          echo "<input
          type=\"submit\"
          value=\"ADD\">
          ";
          echo "</form>";
              
                   
          
                   echo "
          
          <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
              echo "</p>";
              echo "</card>";
          }
          else if($action=="clmop")
          {
              $clid = $_GET["clid"];
              $who = $_GET["who"];
              addonline(getuid_sid($sid),"Moderating Club Member","");
                echo "<head>";
                echo "<title>Moderate Member</title>";
                echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                echo "</head>";
                echo "<body>";
              echo "<p align=\"center\">";
              $whnick = getnick_uid($who);
              echo "[b]$whnick[/b]";
              echo "</p>";
              echo "
          
          ";
              $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid=&#39;".$who."&#39; AND clid=".$clid.""));
          $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner=&#39;".$uid."&#39; AND id=".$clid.""));
          if($exs[0]>0 && $cow[0]>0)
          {
              echo "[b]7 [/b]<a accesskey=\"7\" href=\"genproc.php?action=dcm&amp;sid=$sid&amp;who=$who&amp;clid=$clid\">»Kick $whnick out</a>
          ";
              echo "[b]8 [/b]<a accesskey=\"8\" href=\"index.php?action=gcp&amp;sid=$sid&amp;who=$who&amp;clid=$clid\">»$whnick&#39;s Club Points</a>
          ";
              echo "[b]9 [/b]<a accesskey=\"9\" href=\"index.php?action=gpl&amp;sid=$sid&amp;who=$who&amp;clid=$clid\">»Give $whnick Plusses</a>
          ";
              }else{
                echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Missing Info!";
              }
              echo "</p>";
          
              echo "<p align=\"center\">";
          
            echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
            echo "</p>";
              echo "</body>";
          }

          in genporc.php

          Code:
          else if($action=="addvlt")
          {
          
          
            $viname = $_POST["viname"];
            $vilink = $_POST["vilink"];
            $qut = $_POST["qut"];
            addonline(getuid_sid($sid),"Adding a vault item","");
            echo "<card id=\"main\" title=\"Methos\">";
                echo "<p align=\"center\">";
                $crdate = time();
               $uid = getuid_sid($sid);
                $res = false;
                
                $ext = getext($vilink);
                if ($ext=="mp3" or $ext=="amr" or $ext=="wav") {
                $type = 1;
                }
                if ($ext=="jpg" or $ext=="gif" or $ext=="png" or $ext=="bmp") {
                $type = 2;
                }
                if ($ext=="jad" or $ext=="jar") {
                $type = 3;
                }
                if ($ext=="mpg" or $ext=="3gp") {
                $type = 4;
                }
                if((trim($vilink)!="")&&(trim($viname)!=""))
                {
                $res = mysql_query("INSERT INTO ibwf_vault SET uid=&#39;".$uid."&#39;, title=&#39;".mysql_escape_string($viname)."&#39;, pudt=&#39;".time()."&#39;, itemurl=&#39;".$vilink."&#39;, type=&#39;".$type."&#39;");
                }
                if($res)
                {
                  echo "<img src=\"images/ok.gif\" alt=\"O\"/>Item added Successfully";
                }else{
                  echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error adding an item";
                }
          
                echo "
          
          ";
                echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
                echo "</p>";
                echo "</card>";
          
          }
          in list.php

          Code:
          ////////////////////////////////////////////VAULT MAIN
          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>";
          }
          <div align="center">My Web Community ......... http://pahasara.net



          </div>

          Comment


            #6
            lol

            Click here!!!

            Comment

            Working...
            X