diff --git a/scripts/halt.php b/scripts/halt.php index ee1cdb6..b6ef6dd 100644 --- a/scripts/halt.php +++ b/scripts/halt.php @@ -8,7 +8,7 @@ $start = $time; include "../config/config.php"; include "../include/tools.php"; include "../include/functions.php"; -if (!isset($_SERVER['PHP_AUTH_USER'])) { +if (!isset($_SERVER['PHP_AUTH_USER']) && HALTUSER !== "" && HALTPW !== "") { header('WWW-Authenticate: Basic realm="Dashboard"'); header('HTTP/1.0 401 Unauthorized'); echo 'Zur Ausführung bitte die geforderten Login-Daten eingeben!'; diff --git a/scripts/log.php b/scripts/log.php index 3e751a7..7e91ba0 100644 --- a/scripts/log.php +++ b/scripts/log.php @@ -10,7 +10,7 @@ include "../include/tools.php"; include "../include/functions.php"; include "../include/init.php"; -if (!isset($_SERVER['PHP_AUTH_USER'])) { +if (!isset($_SERVER['PHP_AUTH_USER']) && VIEWLOGUSER !== "" && VIEWLOGPW !== "") { header('WWW-Authenticate: Basic realm="Dashboard"'); header('HTTP/1.0 401 Unauthorized'); echo 'Zur Ausführung bitte die geforderten Login-Daten eingeben!'; diff --git a/scripts/reboot.php b/scripts/reboot.php index a2150c5..4676e2a 100644 --- a/scripts/reboot.php +++ b/scripts/reboot.php @@ -8,7 +8,7 @@ $start = $time; include "../config/config.php"; include "../include/tools.php"; include "../include/functions.php"; -if (!isset($_SERVER['PHP_AUTH_USER'])) { +if (!isset($_SERVER['PHP_AUTH_USER']) && REBOOTUSER !== "" && REBOOTPW !== "") { header('WWW-Authenticate: Basic realm="Dashboard"'); header('HTTP/1.0 401 Unauthorized'); echo 'Zur Ausführung bitte die geforderten Login-Daten eingeben!'; diff --git a/scripts/rebootmmdvm.php b/scripts/rebootmmdvm.php index 5749446..7071389 100644 --- a/scripts/rebootmmdvm.php +++ b/scripts/rebootmmdvm.php @@ -9,7 +9,7 @@ $start = $time; include "../config/config.php"; include "../include/tools.php"; include "../include/functions.php"; -if (!isset($_SERVER['PHP_AUTH_USER'])) { +if (!isset($_SERVER['PHP_AUTH_USER']) && RESTARTUSER !== "" && RESTARTPW !== "") { header('WWW-Authenticate: Basic realm="Dashboard"'); header('HTTP/1.0 401 Unauthorized'); echo 'Zur Ausführung bitte die geforderten Login-Daten eingeben!'; diff --git a/scripts/switchnetwork.php b/scripts/switchnetwork.php index 2896cba..2bb4c41 100644 --- a/scripts/switchnetwork.php +++ b/scripts/switchnetwork.php @@ -10,7 +10,7 @@ include "../config/config.php"; include "../include/tools.php"; include "../include/functions.php"; include "../include/init.php"; -if (!isset($_SERVER['PHP_AUTH_USER'])) { +if (!isset($_SERVER['PHP_AUTH_USER']) && SWITCHNETWORKUSER !== "" && SWITCHNETWORKPW !== "") { header('WWW-Authenticate: Basic realm="Dashboard"'); header('HTTP/1.0 401 Unauthorized'); echo 'Zur Ausführung bitte die geforderten Login-Daten eingeben!'; diff --git a/version.php b/version.php index da6bba3..d3a0833 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@