my bad it was cache lol
Wapside Full (with Themes) Latest Version - Wap2k
Collapse
X
-
Guest
the signup is this hopefully fixed
Code: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"); }
Comment
-
Guest
-
Guest
-
Guest
-
Code: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");
Comment
-
Guest
Comment