Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(!(checkRegexp( $('#newuseremail'), /^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,6}$/ , "Email address invalid"  , $("#createAccountTips"))
  2.     && checkRegexp( $('#newusername'), /^[0-9a-z_]{5,40}$/ , "Username invalid : may only contain english characters, numbers and underscores( _ ),<br /> and must be between 5 and 40 characters"  , $("#createAccountTips"))
  3.     && checkRegexp( $('#newuserpass'), /^(.){5,40}$/ , "Password invalid : must be between 5 and 40 characters"  , $("#createAccountTips"))
  4.     && checkRegexp( $('#captcha'), /^(.){5,5}$/ , "Please copy the text in the image"  , $("#createAccountTips"))
  5.     && ($('#newuserpass').val() == $('#newuserpassrepeat').val())
  6.     )){
  7.         if($('#newuserpass').val() != $('#newuserpassrepeat').val()){
  8.             $('#newuserpass,#newuserpassrepeat').addClass( "ui-state-error" );
  9.             $('#createAccountTips').append("<li>passwords don't match</li>");
  10.         } else LoadPage("login.php",{ username : $("#newusername") , password : $("#newuserpass").val() , email : $("#newuseremail").val() } , "");
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement