--- inc/util.php 2001/10/10 12:40:58 1.7 +++ inc/util.php 2001/10/12 09:22:02 1.8 @@ -170,8 +170,13 @@ return $password; } + $isEdit = stristr($ME, "/edit/") ? true : false; + $isMed = stristr($ME, "med") || stristr($ME, "pm") ? true : false; + function Auth($user = "", $pwd = "") { global $ME,$HTTP_USER_AGENT,$REMOTE_ADDR; + global $isEdit; + if ($isEdit) return 0; // DEBUG: #if (stristr($ME, "test.plivamed.net")) return 0; // User-Agent: should be mnoGoSearch, but in version 3.1.19 @@ -198,8 +203,7 @@ } Header("Content-Type: text/html; charset=ISO-8859-2"); - $isEdit = stristr($ME, "/edit/") ? true : false; - $isMed = stristr($ME, "med") || stristr($ME, "pm") ? true : false; +/* if ($isEdit) { if ($PHP_AUTH_USER != "editor" && $PHP_AUTH_PW != "jokkvpr") { Header("WWW-Authenticate: Basic realm=\"PLIVA".($isMed?"med.net":"zdravlje.hr")."\""); @@ -208,6 +212,7 @@ exit; } } +*/ $isReg = $isMed ? false : true; if (!$isReg) $isReg = (Auth() == 0) ? true : false; ?>