From: Matteo Nastasi Date: Fri, 5 Jan 2018 10:18:59 +0000 (+0100) Subject: add variable retrievement from external environment X-Git-Tag: v5.6.0~20 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=8192c051c28a3293820ee32802686fe4e40f6fac;p=brisk.git add variable retrievement from external environment --- diff --git a/web/usermgmt.php b/web/usermgmt.php index 307372c..e5689e7 100644 --- a/web/usermgmt.php +++ b/web/usermgmt.php @@ -22,6 +22,30 @@ * */ +foreach (array("HTTP_HOST", "DOCUMENT_ROOT") as $i) { + if (isset($_SERVER[$i])) { + $$i = $_SERVER[$i]; + } + } + +foreach (array("pazz") as $i) { + if (isset($_POST[$i])) { + $$i = $_POST[$i]; + } + } + +foreach (array("sess") as $i) { + if (isset($_COOKIE[$i])) { + $$i = $_COOKIE[$i]; + } + } + +foreach (array("sess") as $i) { + if (isset($_COOKIE[$i])) { + $$i = $_COOKIE[$i]; + } + } + $G_base = ""; $mlang_umgmt = array( 'nu_psubj' => array( 'it' => 'Brisk: credenziali di accesso.',