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

66 replies · 13,964 views · started 18 years ago · 1 min read

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.

12 participants
rietrot Developer · 149 posts #21

dude u cant register thats that im not trying to log in ffs

rietrot Developer · 149 posts #22

you mean ya cant login with sql injected ? lol You had a problem open the login part not sign up error i think you need to think before postin messages mate

no i mean on your demo u posted we cant even register go have alook

Guest #23

If i can be bothered i will error check it lator make sure everthing is working fine

rietrot Developer · 149 posts #24

If i can be bothered i will error check it lator make sure everthing is working fine

thx rich it would help alot

amylee Principal · 1,092 posts #25
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

Guest #26

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");
Guest #28

ill check it out

Guest #29

Im guessing this was caused when pasting the above code back into the index file nope unexpected send on index.php on line 3558 is a missing bracket } or {

rietrot Developer · 149 posts #30

in config.php there is ws_query and wsd_query lines must they all be replaced by wst_query?????

also when i replaced them with wst_query i get a ws/TEMPS missing error look in config there a line about TEMPS must TEMPS be replaced by THEMES

Guest #32

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");
}
Guest #33

lol no bother bro im used to it lol

rietrot Developer · 149 posts #35

the sql dump is swt_ string not swd_ is this the root of evil

Guest #37

is WS_USERS defined in config.php ?

Guest #38

grrr its ok mate lol i might do some work on ws to make it a usable script lol

rietrot Developer · 149 posts #39
define('WST_SHOUTS'     , $wst_ext."shouts");
define('WS_USERS'      , $wst_ext."users");
define('WS_QUOTES'     , $wst_ext."quotes");
define('WS_BUDGROUPS'  , $wst_ext."budgroups");
define('WS_THEMES'      , $wst_ext."themes");
define('WS_FLAGS'      , $wst_ext."flags");

top is users

Guest #40

Yep error is fixed just checked it on localhost signup should work with the fix code

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