From 7431986a96c4ca883d7b6f43e1194fdd651b74e4 Mon Sep 17 00:00:00 2001 From: aymm Date: Mon, 5 Apr 2021 15:04:47 +0200 Subject: [PATCH] Fixed #17 --- .nova/Publishing/Phlaym Polls.json | 3 ++- logout.php | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 logout.php diff --git a/.nova/Publishing/Phlaym Polls.json b/.nova/Publishing/Phlaym Polls.json index 0e91ae7..60bb6b1 100644 --- a/.nova/Publishing/Phlaym Polls.json +++ b/.nova/Publishing/Phlaym Polls.json @@ -10,7 +10,8 @@ ".git", ".eslintrc", ".nova", - "*.log" + "*.log", + "config.php" ], "remotePath" : "\/var\/www\/html\/Dragonpolls", "remoteURL" : "https:\/\/phlaym.net\/Dragonpolls\/", diff --git a/logout.php b/logout.php new file mode 100644 index 0000000..6717bdc --- /dev/null +++ b/logout.php @@ -0,0 +1,7 @@ +logout(); +$url = empty($_SERVER['HTTP_REFERER']) ? 'index.php' : $_SERVER['HTTP_REFERER']; +redirect($url);