From 9210890edaf6a653bff1c3d8658425390dc28867 Mon Sep 17 00:00:00 2001 From: Bryan Pedini Date: Thu, 7 Feb 2019 11:51:47 +0100 Subject: [PATCH] Minor bug fixes, added URL link on redirect page. --- includes/redirect.html | 20 ++++++++++++-------- index.php | 4 +++- js/insertnew.js | 2 +- js/login.js | 2 +- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/includes/redirect.html b/includes/redirect.html index 82def3e..218b8dc 100644 --- a/includes/redirect.html +++ b/includes/redirect.html @@ -5,18 +5,22 @@
-

You will be redirected to ... in 5

+

You will be redirected to in 5

diff --git a/index.php b/index.php index 4a61cf5..6452758 100644 --- a/index.php +++ b/index.php @@ -60,7 +60,7 @@ elseif ( isset ( $_GET [ 'logout' ] ) ) { $_SESSION = array ( ); session_destroy ( ); - header ( "Location: /" ); + header ( "Location: " . $_SERVER [ 'SCRIPT_NAME' ] ); } else { if ( ! isset ( $_SESSION [ 'user_id' ] ) ) { @@ -77,6 +77,7 @@
+ Insert new URL
+