Lavalair Vault Update

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

28 replies · 3,075 views · started 19 years ago · 1 min read

TL;DR · summary of 28 replies
  • $result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'" ) must be added at the end of genproc.php to fix the issue.
  • The error message "Parse error: syntax error, unexpected T_ECHO" suggests that there might be a missing semicolon (;) before the echo statement in genproc.php on line 1122.
  • People are looking for where to add the code $result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'" ) at genproc.php.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

10 participants
SpiderWap Lead · 622 posts #1

SQL FOR IT

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

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&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='4'"));
        echo "<a href=\"lists.php?action=vaultvideos&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='2'"));
        echo "<a href=\"lists.php?action=vaultpics&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='3'"));
        echo "<a href=\"lists.php?action=vaultgames&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='0'"));
        echo "<a href=\"lists.php?action=vaultother&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&sid=$sid\">";
echo "Add Item</a>
";
}
    $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
    $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));  
    echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
    echo xhtmlfoot();
}

Add in lists.php

Enjoy External image (may be gone)

SpiderWap Lead · 622 posts #2

In lists.php

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='1'"));
        echo "<a href=\"lists.php?action=vaultmusic&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='4'"));
        echo "<a href=\"lists.php?action=vaultvideos&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='2'"));
        echo "<a href=\"lists.php?action=vaultpics&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='3'"));
        echo "<a href=\"lists.php?action=vaultgames&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='0'"));
        echo "<a href=\"lists.php?action=vaultother&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&sid=$sid\">";
echo "Add Item</a>
";
}
    echo "<a href=\"index.php?action=main&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='".$who."' AND type='1'"));
    }else{
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type='1'"));
    }
    $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='".$who."' AND type='1' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
        }else{
$sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type='1' 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&sid=$sid&vid=$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 = "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&page=$ppage&sid=$sid&who=$who\">«Prev</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"lists.php?action=$action&page=$npage&sid=$sid&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&sid=$sid\">";
echo "Add Item</a>
";
}
    echo "<a href=\"lists.php?action=vault&sid=$sid&who=$who\">«Back to Vault</a>
";
    echo "<a href=\"index.php?action=main&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='".$who."' AND type='2'"));
    }else{
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type='2'"));
    }
    $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='".$who."' AND type='2' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
        }else{
        $sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type='2' 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&sid=$sid&vid=$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 = "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&page=$ppage&sid=$sid&who=$who\">«Prev</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"lists.php?action=$action&page=$npage&sid=$sid&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&sid=$sid\">";
echo "Add Item</a>
";
}
    echo "<a href=\"lists.php?action=vault&sid=$sid&who=$who\">«Back to Vault</a>
";
    echo "<a href=\"index.php?action=main&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='".$who."' AND type='3'"));
    }else{
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type='3'"));
    }
    $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='".$who."' AND type='3' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
        }else{
$sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type='3' 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&sid=$sid&vid=$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 = "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&page=$ppage&sid=$sid&who=$who\">«Prev</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"lists.php?action=$action&page=$npage&sid=$sid&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&sid=$sid\">";
echo "Add Item</a>
";
}
    echo "<a href=\"lists.php?action=vault&sid=$sid&who=$who\">«Back to Vault</a>
";
    echo "<a href=\"index.php?action=main&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='".$who."' AND type='4'"));
    }else{
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type='4'"));
    }
    $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='".$who."' AND type='4' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
        }else{
$sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type='4' 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&sid=$sid&vid=$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 = "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&page=$ppage&sid=$sid&who=$who\">«Prev</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"lists.php?action=$action&page=$npage&sid=$sid&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&sid=$sid\">";
echo "Add Item</a>
";
}
    echo "<a href=\"lists.php?action=vault&sid=$sid&who=$who\">«Back to Vault</a>
";
    echo "<a href=\"index.php?action=main&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='".$who."' AND type='0'"));
    }else{
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE type='0'"));
    }
    $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='".$who."' AND type='0' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page";
        }else{
$sql = "SELECT id, title, itemurl, uid, downloads, pudt FROM ibwf_vault WHERE type='0' 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&sid=$sid&vid=$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 = "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&page=$ppage&sid=$sid&who=$who\">«Prev</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"lists.php?action=$action&page=$npage&sid=$sid&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&sid=$sid\">";
echo "Add Item</a>
";
}
    echo "<a href=\"lists.php?action=vault&sid=$sid&who=$who\">«Back to Vault</a>
";
    echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
    echo "</card>";
}
Guest #7

lol rko1, thats the code from my lavalair edited script. i asked you also don't share.

Guest #8

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

hypetype Developer · 128 posts #9

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

well already got that coding

Guest #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

Guest #13

yehh mate i fixed tht..thnx

Guest #14

yehh mate i fixed tht..thnx

bro pls help me also how to fix this?

alexism Developer · 136 posts #15

where must i put this code??

$result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'")

where??

amylee Principal · 1,092 posts #16

dont you read? GENPROC.PHP

alexism Developer · 136 posts #17

opss...sorry..i didnt read it carefully..

alexism Developer · 136 posts #18

im using wapdesire script n here is the coding for adding vault in my genproc.php

else if($action=="addvlt") {

if(!getplusses(getuid_sid($sid))>24) { echo "<card id="main" title="$sitename">"; echo " "; echo "Only 25+ plusses can add a vault item

"; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } $viname = $_POST["viname"]; $vilink = $_POST["vilink"]; //$qut = $_POST["qut"]; addonline(getuid_sid($sid),"Adding a vault item",""); echo "<card id="main" title="$sitename">"; echo " "; $crdate = time(); //$uid = getuid_sid($sid); $res = false;

  if((trim($vilink)!="")&&(trim($viname)!=""))
  {
  $res = mysql_query("INSERT INTO ibwf_vault SET uid='".$uid."', title='".mysql_escape_string($viname)."', pudt='".$crdate."', itemurl='".$vilink."'");
  }
  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&sid=$sid"><img src="../images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo "</card>";

}

where must i put this code??

$result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'")

where??

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close