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
WhiteWarrior Principal · 1,419 posts #21
hmm... did you use the genproc.php here?..

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

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

";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
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 "<p align=\"center\">";
$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)
{
$result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'")
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 "</p>";
echo "</card>";

}

thats just a random guess... don't know if thats where it goes lol

alexism Developer · 136 posts #22

Parse error: syntax error, unexpected T_ECHO in /home/kristalw/xxxxxxx/wap/genproc.php on line 1122

WhiteWarrior Principal · 1,419 posts #23

Put ; at the end like $result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'");

alexism Developer · 136 posts #25

the code still didnt wor..all item still goes to other..can anybody give me working vault catagary script?

alexism Developer · 136 posts #26

the item r all catagarize but no i got new error..the download link become

http:/............../wap/download.php?id=1

its not be the item real link

so people cannot download the item..help plz...

winpda Junior · 38 posts #27

Where wanna add this coding $result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'") at genproc .. ? who can help this topic?

SiLeNce Developer · 138 posts #28
echo "<p align=\"center\">";
      $crdate = (time() - $timeadjust);
      $res = false;
      $ext = getext($vilink);
      if ($ext=="mp3" or $ext=="amr" or $ext=="wav" or $ext=="aac") {
      $type = 1;
      }
      if ($ext=="jpg" or $ext=="jpeg" or $ext=="gif" or $ext=="png" or $ext=="bmp") {
      $type = 2;
      }
      if ($ext=="sis" or $ext=="sisx" or $ext=="blz") {
      $type = 3;
      }
      if ($ext=="mpg" or $ext=="3gp" or $ext=="mov" or $ext=="avi" or $ext=="mp4" or $ext=="wmv" or $ext=="ram" or $ext=="rmvb") {
      $type = 4;
      }
      if ($ext=="exe" or $ext=="bit") {
      $type = 5;
      }
      if ($ext=="jar" or $ext=="jad") {
      $type = 6;
      }
      if ($ext=="zip" or $ext=="rar") {
      $type = 7;
      }
      if ($ext=="mid" or $ext=="midi") {
      $type = 8;
      }
      /*if ($ext=="unknown" or $ext=="unknown") {
      $type = 9;
      }*/
      if((trim($vilink)!="")&&(trim($viname)!=""))
      {
       $res = mysql_query("INSERT INTO ibwf_vault SET uid='".$uid."', description='".$vinfo."', title='".mysql_escape_string($viname)."', pudt='".(time() - $timeadjust)."', itemurl='".$vilink."', type='".$type."'");
      }
      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=cpanel&sid=$sid\">Cpanel</a>
";
      echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";

      echo "</p>";

and sets in vault tables

  `description` varchar(255) NOT NULL default 'No Info !',
  `type` int(100) NOT NULL default '0',
winpda Junior · 38 posts #29

Thanks Silence ... 😀

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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