Update some stuff

master
Michael Reber 5 years ago
parent 6491206f83
commit aee2d99391

@ -5,8 +5,10 @@ $config = array();
$config['website-name'] = "Web Proxy"; $config['website-name'] = "Web Proxy";
$config['access-password'] = "MY_PASSWORD_TO_ACCESS"; $config['access-password'] = "MY_PASSWORD_TO_ACCESS";
$config['website-url'] = "MY_FQDN/webproxy"; $config['website-url'] = "/web-proxy/";
$config['website-description'] = "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! // a unique key that identifies this application - DO NOT LEAVE THIS EMPTY!
$config['app_key'] = 'ADD_HERE_SOME_RANDOM_STRING'; $config['app_key'] = 'ADD_HERE_SOME_RANDOM_STRING';

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

Loading…
Cancel
Save