Guest User

Untitled

a guest
Sep 25th, 2018
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. $(function(){$(".login").click(function(){var username=$("input#username").val();var password=$("input#password").val();if(username==''){$("input#username").focus();$("#loginresponse").html("<font color=\"red\"><b>You must enter a valid username!</b></font>");return false;}
  2. if(password==''){$("input#password").focus();$("#loginresponse").html("<font color=\"red\"><b>You must enter a valid password!</b></font>");return false;}});$(".edituser").click(function(){var password=$('#password').val();var email=$('#email').val();var username=$('#username').val();var data='password='+password+'&email='+email+'&username='+username;$.ajax({type:'POST',url:'admin.php?processedit',data:data,success:function(response){$('#userchange').html(response);return false;}});return false;});$(".recover").click(function(){window.location='recover.php';return false;});$(".changepw").click(function(){var currentpassword=$("input#password").val();var newpw=$("input#newpw").val();var confirmpw=$("input#confirmpw").val();if(currentpassword==''){$("input#password").focus();$("#changepwresponse").html("<font color=\"red\"><b>You must enter your current password!</b></font>");return false;}
  3. if(newpw==''){$("input#newpw").focus();$("#changepwresponse").html("<font color=\"red\"><b>You must enter your new password!</b></font>");return false;}
  4. if(confirmpw==''){$("input#confirmpw").focus();$("#changepwresponse").html("<font color=\"red\"><b>You must confirm your new password!</b></font>");return false;}
  5. if(newpw!=confirmpw){$("#changepwresponse").html("<font color=\"red\"><b>The passwords you entered do not match.</b></font>");return false;}});$(".logout").click(function(){var areyousure=confirm("Are you sure you want to log out?");if(areyousure){document.location="login.php?logout";}else{return false;}});$(".inviteusers").click(function(){var email=$("input#email").val();if(email==''){$("input#email").focus();$("#inviteusersresponse").html("<font color=\"red\"><b>You must enter an email!</b></font>");return false;}
  6. var areyousure=confirm("Are you sure you want to continue?");if(!areyousure){return false;}});$(".getskype").click(function(){var username=$("input#skypeusername").val();if(username==''){$("#skyperesponse").html("<font color=\"red\"><b>You must enter a username!</b></font>");return false;}
  7. $("#skyperesponse").html("<img src=\"images/loading.gif\"><br>We're just fetching that for you now...");var data="user="+username;$.ajax({type:"POST",data:data,url:"getskype.php",success:function(response){$("#skyperesponse").html(response);return false;}});return false;});});
Add Comment
Please, Sign In to add comment