Wapside Full (with Themes) Latest Version - Wap2k
Started on the old forum in May 2008 · view the original in the archive · old links redirect here
TL;DR · summary of 66 replies
- - The registration issue is fixed with the code provided by Guest and amylee.
- - The shoutbox error persists, as indicated by rietrot getting an "1146-Table doesn't exist" error after adding a SQL query to create the shouts table.
- - The shoutbox error might be related to the database structure or configuration, as suggested by rietrot needing to add the SQL query in the correct place within the database.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
if(!wsd_query("* WSIN ".WS_USERS." WSIS user='$myuser'","c") > 0){
$myreged = wsd_query("".WS_USERS." (id,user,pass,bday,bmonth,byear,sex,location,joined,secreta,secretq) VALUES (0,'$myuser','$encmypass','$mydd','$mymm','$myyyyy','$mysex','$mylocation','$myreg','$secreta','$secretq')","n");
$myreguidsql = wsd_query("id WSIN ".WS_USERS." WSIS user='$myuser'","f");
$myreguid = $myreguidsql[0];
$lss = wsd_query("* WSIN ".WS_USERS." WSIS id='$myreguid' LIMIT 1","c");
errors there as data isn't being inserted to the database if i had the time i'd look at the script and fix it
This should fix that error
if(!wsd_query("* WSIN ".WS_USERS." WSIS user='$myuser'","c") > 0){
$myreged = wsd_query("".WS_USERS." (id,user,pass,bday,bmonth,byear,sex,location,joined,secreta,secretq) VALUES (0,'$myuser','$encmypass','$mydd','$mymm','$myyyyy','$mysex','$mylocation','$myreg','$secreta','$secretq')","u");
$myreguidsql = wsd_query("id WSIN ".WS_USERS." WSIS user='$myuser'","f");
$myreguid = $myreguidsql[0];
$lss = wsd_query("* WSIN ".WS_USERS." WSIS id='$myreguid' LIMIT 1","c");
nope unexpected send on index.php on line 3558
the signup is this hopefully fixed
if($wsm=="join2"){
if(empty($wsid)){
ws_err("Cant find session id!");
}
$passed_reg = ws_get_var("passed_reg");
$regsql = wsd_query("note WSIN ".WS_SETTINGS." WSIS type='registration'","f");
$regon = $regsql[0];
if($regon=="0"){
ws_temp("sorry");
exit();
}
$mypass = ws_get_var("pass");
$secreta = ws_get_var("secreta");
$secretq = ws_get_var("secretq");
if(empty($mypass) || empty($secreta) || empty($secretq)){
ws_err("Password/answer/question field cannot be empty please fill it in!");
}
if(strlen($mypass) < 3){
ws_err("Password is not long enough must be atleast 3 chars long!");
}
$myuser = ws_sesvar("user");
$mypass = ws_get_var("pass");
$mycpass = ws_get_var("pass");
$secreta = ws_get_var("secreta");
$secretq = ws_get_var("secretq");
$mybday = ws_get_var("bday");
$mysex = ws_get_var("sex");
$mylocation = ws_get_var("location");
$mydays = explode("-",$mybday);
$mydd = $mydays[0];
$mymm = $mydays[1];
$myyyyy = $mydays[2];
$myreg = time();
$encmypass = md5($mypass);
if(!wsd_query("* WSIN ".WS_USERS." WSIS user='$myuser'","c") > 0){
$myreged = wsd_query("".WS_USERS." (id,user,pass,bday,bmonth,byear,sex,location,joined,secreta,secretq) VALUES (0,'$myuser','$encmypass','$mydd','$mymm','$myyyyy','$mysex','$mylocation','$myreg','$secreta','$secretq')","i");
$myreguidsql = wsd_query("id WSIN ".WS_USERS." WSIS user='$myuser'","f");
$myreguid = $myreguidsql[0];
$lss = wsd_query("* WSIN ".WS_USERS." WSIS id='$myreguid' LIMIT 1","c");
if($lss=="1"){
wsd_query("".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,'best friends','$myreguid' ,'1')","i");
wsd_query("".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,'good friends','$myreguid' ,'2')","i");
wsd_query("".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,'friends','$myreguid','1')","i");
wsd_query("".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,'acquaintances','$myreguid','4')","i");
wsd_query(" ".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,'havent met ','$myreguid','5')","i");
}
if(!$myreged){
ws_err("Sorry your registration request has failed please try again!");
} else {
ws_done("Thankyou and welcome to Wapside ".$myuser."!
<a href=\"".$self."".$mode."login2&username=$myuser&password=$mypass&tvar=1\">Login Here</a>
");
}
} else {
ws_err("Sorry the username ".$myuser." is allready in use please choose another one!");
}
$what = Array();
$with = Array();
ws_temp("signup2");
}
just tried it and now says
1064-You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(id,user,pass,bday,bmonth,byear,sex,location,joined,secreta,secretq) VALUES (0,'' at line 1
lol
ummm ignore that last one i posted same time as u wrote that rofl, tested it and it working fine now thanks m8