From 523fc1849d157ca6a1d70fad1dfa57e66c1c77a0 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Wed, 22 Aug 2018 16:43:19 +0200 Subject: [PATCH] Test if we can download the from the browser. Alert, annoyingly, that the user should fix this --- index.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/index.php b/index.php index 65b3436..9a4aaf3 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,9 @@ include_once('includes/config.inc.php'); include_once('includes/session.inc.php'); include_once('includes/misc.inc.php'); +$testpath = str_replace(basename($_SERVER['REQUEST_URI']), $authdb, $_SERVER['REQUEST_URI']); +$testurl = $_SERVER['REQUEST_SCHEME']."://".$_SERVER['HTTP_HOST'].$testpath; + global $errormsg, $blocklogin; if (isset($_GET['logout']) or isset($_POST['logout'])) { @@ -33,6 +36,24 @@ if (is_logged_in() and isset($_POST['formname']) and $_POST['formname'] === "cha NSEdit! +