Forums / WEB Development
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.
Sort replies:
Oldest
Top voted
Newest
WH
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
AL
Parse error: syntax error, unexpected T_ECHO in /home/kristalw/xxxxxxx/wap/genproc.php on line 1122
WH
Put ; at the end like $result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'");
SI
AL
the code still didnt wor..all item still goes to other..can anybody give me working vault catagary script?
AL
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...
WI
Where wanna add this coding
$result = mysql_query("UPDATE ibwf_vault SET type='2' WHERE age='0'")
at genproc .. ? who can help this topic?
SI
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',
WI