Update index.php
This commit is contained in:
@@ -1,29 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
|
||||||
|
|
||||||
if(isset($_GET['loginurl'])) {
|
|
||||||
$_SESSION['loginurl'] = $_GET['loginurl'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($_POST['submit'])) {
|
if (isset($_POST['submit'])) {
|
||||||
$loginurl = $_SESSION['loginurl'];
|
$username = $_POST['username'];
|
||||||
$username = $_POST['username'];
|
$password = $_POST['password'];
|
||||||
$password = $_POST['password'];
|
|
||||||
|
|
||||||
header("Location: " . $loginurl . "?username=" . $username . "&password=" . $password);
|
header("Location: http://portal.draytek.com:8001/cgi-bin/wifilogin.cgi?username=".$username."&password=".$password);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
|
<form name="login" action = "<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method = "POST">
|
||||||
<form name="login" action = "<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method = "POST">
|
<label for="username">Username</label>
|
||||||
<label for="username">Username</label>
|
<input class="input" type="text" id="username" name="username" />
|
||||||
<input class="input" type="text" id="username" name="username" />
|
<label for="password">Password</label>
|
||||||
<label for="password">Password</label>
|
<input class="input" type="text" id="password" name="password" />
|
||||||
<input class="input" type="text" id="password" name="password" />
|
<input type="submit" name="submit" value="LOGIN" />
|
||||||
<input type="submit" name="submit" value="LOGIN" />
|
</form>
|
||||||
</form>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user