OpenVPN_Management_GUI/Site/login_formular.php

44 lines
1.1 KiB
PHP
Raw Normal View History

2012-07-16 21:30:19 +02:00
<!-- MAIN CONTENT BEGINN ################################################################################ -->
<?php
$moduleurl = $_SERVER["REQUEST_URI"];
$urlcut = strpos($moduleurl, "&");
2012-07-16 23:07:15 +02:00
if($urlcut > 0) {
2012-07-16 21:30:19 +02:00
$moduleurl = substr($moduleurl,0,$urlcut);
2012-07-16 23:07:15 +02:00
} else {
if(strpos($moduleurl, "?") == 0) {
$moduleurl = $_SERVER["REQUEST_URI"] . "?site=1";
2012-07-16 21:30:19 +02:00
}
2012-07-16 23:07:15 +02:00
if($_SERVER["REQUEST_URI"] == "/" || is_null($_SERVER["REQUEST_URI"])) {
2012-07-16 21:30:19 +02:00
$moduleurl = "/index.php?site=1";
}
2012-07-16 23:07:15 +02:00
if($moduleurl == "/index.php?site=lf") {
2012-07-16 21:30:19 +02:00
$moduleurl = "/index.php?site=1";
}
}
?>
2012-07-16 23:07:15 +02:00
<!-- MAIN -->
<div id="main">
<div class="wrapper">
<h2><font color=red><b>Login was incorrect!</b></font></h2>
2012-07-16 21:30:19 +02:00
2012-07-16 23:07:15 +02:00
<form action="/Site/login.php" method="post">
<br />
Retry:
<table>
<tr>
<td>Username:</td>
<td><input type="text" name="name" size="20"/></td>
</tr>
<tr>
<td>Passwort:</td>
<td><input type="password" name="pwd" size="20"/></td>
</tr>
<tr>
<td><input type="hidden" name="path" size="50" value="<?php echo $moduleurl; ?>"/></td>
</tr>
</table>
<input type="submit" value="Login"/>
</form>
</div>
</div>