Rename draytek.php to Draytek/draytek.php

This commit is contained in:
nasirhafeez
2019-09-08 09:06:48 +05:00
committed by GitHub
parent b1a1698ab2
commit 7e02a5fd67

26
Draytek/draytek.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
if (isset($_POST['submit'])) {
$username = $_POST['username'];
$password = $_POST['password'];
header("Location: http://portal.draytek.com:8001/cgi-bin/wifilogin.cgi?username=".$username."&password=".$password);
}
?>
<html>
<body>
<form name="login" action = "<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method = "POST">
<label for="username">Username</label>
<input class="input" type="text" id="username" name="username" />
<label for="password">Password</label>
<input class="input" type="text" id="password" name="password" />
<input type="submit" name="submit" value="LOGIN" />
</form>
</body>
</html>