Jump to content

What does this mean? Someone who can understand it.


Macintosh

Recommended Posts

// Define variável global

var xmlhttp;

 

function __mudaSenha(varForm) {

 

// Atribui valores as variáveis

var usuario = document.getElementById('usuario').value;

var senha = document.getElementById('senha').value;

var novasenha = document.getElementById('novasenha').value;

var renovasenha = document.getElementById('renovasenha').value;

 

   // Instancia o objeto, dependendo do navagador

   if (window.XMLHttpRequest) {

 xmlhttp = new XMLHttpRequest();  

   } else if (window.ActiveXObject) {

  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");  

   } else {

 alert("Seu navegador não suporta XMLHttpRequest. Atualize seu navegador");

 return;

   }

 

   xmlhttp.open("POST", "acc_change_password/changePassword.php", true);    

 

   xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");

   xmlhttp.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");

   xmlhttp.setRequestHeader("Cache-Control", "post-check=0, pre-check=0");

   xmlhttp.setRequestHeader("Pragma", "no-cache");

   

   xmlhttp.onreadystatechange = processReqChange;

 

   xmlhttp.send("usuario=" + usuario + "&senha=" + senha + "&novasenha=" + novasenha + "&renovasenha=" + renovasenha);

}

 

 

function processReqChange() {

 

   document.getElementById("resp").innerHTML = "Processing Data...";

   if (xmlhttp.readyState == 4) {    

if (xmlhttp.status == 200) {

 // xmlhttp.responseText, recebe o valor da variavel $msg de cadastro.php

   if(xmlhttp.responseText == 1) {

document.getElementById("resp").innerHTML = "Password Changed ! ! ! <br><br><br>";

window.location.href = "http://www.l2reliance.net/br";    // Redireciona para uma pagina....

} else

document.getElementById("resp").innerHTML = xmlhttp.responseText;

       } else {

           alert("Problems on data load.");

       }

   }

 

}

 

Link to comment
Share on other sites

What is this? From where you find it ?

 

Its account Login for a website, i got the site files off of maxcheaters and i dont know how to make them work. I didnt know if you did either. This is where it goes. http://l2null.com/en/register-account

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...