Update some stuff

This commit is contained in:
Michael Reber 2019-11-14 19:51:42 +01:00
parent 6491206f83
commit aee2d99391
2 changed files with 6 additions and 4 deletions

View File

@ -5,8 +5,10 @@ $config = array();
$config['website-name'] = "Web Proxy";
$config['access-password'] = "MY_PASSWORD_TO_ACCESS";
$config['website-url'] = "MY_FQDN/webproxy";
$config['website-url'] = "/web-proxy/";
$config['website-description'] = "Web Proxy";
//ini_set( 'error_reporting', E_ALL ); //enable for debugging!
//ini_set( 'display_errors', true ); //enable for debugging!
// a unique key that identifies this application - DO NOT LEAVE THIS EMPTY!
$config['app_key'] = 'ADD_HERE_SOME_RANDOM_STRING';

View File

@ -24,7 +24,7 @@ $timeout = (TIMEOUT_MINUTES == 0 ? 0 : time() + TIMEOUT_MINUTES * 60);
// logout?
if(isset($_GET['logout'])) {
setcookie("verify", '', $timeout, '/'); // clear password;
header('Location: ' . "/webproxy/");
header('Location: ' . "/web-proxy/");
exit();
}
if(!function_exists('showLoginPasswordProtect')) {
@ -321,7 +321,7 @@ function showLoginPasswordProtect($error_msg) {
<button type="submit" value="Submit" class="login__submit">Login</button>
</form>
<p class="login__signup">Don't have an password? &nbsp;<a>Ask M.Reber</a></p>
<p class="login__signup">Don't have an password? &nbsp;<a>Good luck.</a></p>
<font color="red" style="font-size: x-small";><?php echo $error_msg; ?></font>
</div>
</div>
@ -401,7 +401,7 @@ if (isset($_POST['access_password'])) {
unset($_POST['access_login']);
unset($_POST['access_password']);
unset($_POST['Submit']);
header('Location: ' . $logoutURL . '/webproxy/');
header('Location: ' . $logoutURL . '/web-proxy/');
}
}
else {