# Quirck to expose auth=failed parameters to side.php. --- index.php.orig 2017-05-03 21:47:27.116717391 +0200 +++ index.php 2017-05-03 21:46:19.912604684 +0200 @@ -43,7 +43,7 @@ - + --- side.php.orig 2017-05-03 21:49:00.477263170 +0200 +++ side.php 2017-05-03 21:46:35.462862151 +0200 @@ -120,5 +120,26 @@ </div> </div> +<?php if (isset($_GET["auth"]) and $_GET["auth"] === "failed") { ?> +<h3><em style="color: red">Login Failed</em></h3> +<?php } ?> + +<?php if (getenv('REMOTE_USER')) { ?> +<form method="POST" action="/wleiden/nagios/logout" target="_parent"> + <fieldset><legend>Account</legend> + <input type="submit" name="login" value="Logout" /> + </fieldset> +</form> + +<?php } else { ?> +<form method="POST" action="/wleiden/nagios/login" target="_parent"> + <fieldset><legend>Login</legend> + Username: <input type="text" size="9" name="httpd_username" value="" /> + Password: <input type="password" size="9" name="httpd_password" value="" /> + <input type="submit" name="login" value="Login" /> + </fieldset> +</form> +<?php }; ?> + </BODY> </HTML>