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! +