Blame contrib/mrtg_php_portal/www/login.php
|
Packit |
667938 |
<html>
|
|
Packit |
667938 |
<script>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
function setfocus() { document.login.form_password.focus(); }
|
|
Packit |
667938 |
-->
|
|
Packit |
667938 |
</script>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<head>
|
|
Packit |
667938 |
<meta http-equiv="Content-Language" content="en-us">
|
|
Packit |
667938 |
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
Packit |
667938 |
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
|
|
Packit |
667938 |
<meta name="ProgId" content="FrontPage.Editor.Document">
|
|
Packit |
667938 |
<title>MRTG Admin login</title>
|
|
Packit |
667938 |
</head>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<body onLoad=setfocus()>
|
|
Packit |
667938 |
<u>MRTG Admin login</u>
|
|
Packit |
667938 |
<FORM name=login ACTION=login.php METHOD=POST>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Admin Password:
|
|
Packit |
667938 |
<input type="password" name="form_password" size="20" tabindex="1">
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
<input type="submit" value="Login" name="B1" tabindex="2">
|
|
Packit |
667938 |
</form>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
</body></html>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
// Replace this path with the path to the config.inc.php file
|
|
Packit |
667938 |
include ("e:\\mrtg\\conf\\config.inc.php");
|
|
Packit |
667938 |
|
|
Packit |
667938 |
if ($pass_wrong == "1"){
|
|
Packit |
667938 |
echo "Wrong password !!! ";
|
|
Packit |
667938 |
}
|
|
Packit |
667938 |
if($REQUEST_METHOD == "POST"){
|
|
Packit |
667938 |
if($form_password){
|
|
Packit |
667938 |
if($form_password == $admin_password1 or $form_password == $admin_password2){
|
|
Packit |
667938 |
?>
|
|
Packit |
667938 |
<script language="JavaScript">
|
|
Packit |
667938 |
location="./admin.php";
|
|
Packit |
667938 |
</script>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
}else{
|
|
Packit |
667938 |
?>
|
|
Packit |
667938 |
<script language="JavaScript">
|
|
Packit |
667938 |
location="./login.php?pass_wrong=1";
|
|
Packit |
667938 |
</script>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
}
|
|
Packit |
667938 |
}
|
|
Packit |
667938 |
}
|
|
Packit |
667938 |
?>
|