Wapside Full (with Themes) Latest Version - Wap2k

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    my bad it was cache lol




    Comment


      #32
      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=&#39;$myuser&#39;","c") > 0){
      $myreged = wsd_query("".WS_USERS." (id,user,pass,bday,bmonth,byear,sex,location,joined,secreta,secretq) VALUES (0,&#39;$myuser&#39;,&#39;$encmypass&#39;,&#39;$mydd&#39;,&#39;$mymm&#39;,&#39;$myyyyy&#39;,&#39;$mysex&#39;,&#39;$mylocation&#39;,&#39;$myreg&#39;,&#39;$secreta&#39;,&#39;$secretq&#39;)","i");
      $myreguidsql = wsd_query("id WSIN ".WS_USERS." WSIS user=&#39;$myuser&#39;","f");
      $myreguid = $myreguidsql[0];
      $lss = wsd_query("* WSIN ".WS_USERS." WSIS id=&#39;$myreguid&#39; LIMIT 1","c");
      
      if($lss=="1"){
      wsd_query("".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,&#39;best friends&#39;,&#39;$myreguid&#39; ,&#39;1&#39;)","i");
      wsd_query("".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,&#39;good friends&#39;,&#39;$myreguid&#39; ,&#39;2&#39;)","i");
      wsd_query("".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,&#39;friends&#39;,&#39;$myreguid&#39;,&#39;1&#39;)","i");
      wsd_query("".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,&#39;acquaintances&#39;,&#39;$myreguid&#39;,&#39;4&#39;)","i");
      wsd_query(" ".WS_BUDGROUPS." (id,name,uid,img) VALUES (0,&#39;havent met &#39;,&#39;$myreguid&#39;,&#39;5&#39;)","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&amp;username=$myuser&amp;password=$mypass&amp;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


        #33
        lol no bother bro im used to it lol

        Comment


          #34
          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 &#39id,user,pass,bday,bmonth,byear,sex,location,joined ,secreta,secretq) VALUES (0,&#39;&#39; at line 1[/b]
          lol




          Comment


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

            Comment


              #36
              ummm ignore that last one i posted same time as u wrote that rofl, tested it and it working fine now thanks m8




              Comment


                #37
                is WS_USERS defined in config.php ?

                Comment


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

                  Comment


                    #39
                    Code:
                    define(&#39;WST_SHOUTS&#39;     , $wst_ext."shouts");
                    define(&#39;WS_USERS&#39;      , $wst_ext."users");
                    define(&#39;WS_QUOTES&#39;     , $wst_ext."quotes");
                    define(&#39;WS_BUDGROUPS&#39;  , $wst_ext."budgroups");
                    define(&#39;WS_THEMES&#39;      , $wst_ext."themes");
                    define(&#39;WS_FLAGS&#39;      , $wst_ext."flags");
                    top is users

                    Comment


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

                      Comment


                        #41
                        killa is it workin now?

                        Comment


                          #42
                          yes the only bug i found in it so far that the country doesn&#39;t update itself




                          Comment


                            #43
                            where must i add this code in config file?

                            Comment


                              #44
                              its in Index, near line 679




                              Comment


                                #45
                                thx man

                                Comment

                                Working...
                                X