Originally Posted by
Wolfe
Posted ToxicWoW's Reg Source code.
Enjoy!
Congratulations, you put js/register.js at the end of the toxic wow URL.. Wtf are you supposed to be getting +Rep for again? I refuse to give you any until you show me something I don't already know.
It's not hard to view the page source and get the JavaScript URL to the register system.
EDIT: It would be much nicer if you use the code tags, or leave the formatting the same.. It makes it much easier to read.
Code:
var xmlHttp
function RegisterAccount(username, password, password2, email, question, answer)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="accountregister.php"
url=url+"?username="+username+"&password="+password+"&password2="+password2+"&email="+email+"&question="+question+"&answer="+answer
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=DisplayRegisterResult
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function ResetRegisterFields()
{
document.getElementById('username').value = '';
document.getElementById('password').value = '';
document.getElementById('password2').value = '';
document.getElementById('email').value = '';
document.getElementById('question').value = '';
document.getElementById('answer').value = '';
//REWARD CHOICE RESET
}
function DisplayRegisterResult()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
ResetRegisterFields();
alert(xmlHttp.responseText);
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
//Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}