A live bird collage card for your Home Assistant dashboard.
"You cannot" styling
ehpersonal38daf8469b429a
diff --git a/homepage/views.php b/homepage/views.phpindex 42736671..73e9e3f9 100644--- a/homepage/views.php+++ b/homepage/views.php@@ -102,7 +102,7 @@ if(isset($_GET['view'])){if (!isset($_SERVER['PHP_AUTH_USER'])) {header('WWW-Authenticate: Basic realm="My Realm"');header('HTTP/1.0 401 Unauthorized');- echo 'You cannot edit the settings for this installation';+ echo '<table><tr><td>You cannot edit the settings for this installation</td></tr></table>';exit;} else {$submittedpwd = $_SERVER['PHP_AUTH_PW'];@@ -125,7 +125,7 @@ if(isset($_GET['view'])){} else {header('WWW-Authenticate: Basic realm="My Realm"');header('HTTP/1.0 401 Unauthorized');- echo 'You cannot edit the settings for this installation';+ echo '<table><tr><td>You cannot edit the settings for this installation</td></tr></table>';exit;}}@@ -198,7 +198,7 @@ if(isset($_GET['view'])){if (!isset($_SERVER['PHP_AUTH_USER'])) {header('WWW-Authenticate: Basic realm="My Realm"');header('HTTP/1.0 401 Unauthorized');- echo 'You cannot access the web terminal';+ echo '<table><tr><td>You cannot access the web terminal</td></tr></table>';exit;} else {$submittedpwd = $_SERVER['PHP_AUTH_PW'];@@ -209,7 +209,7 @@ if(isset($_GET['view'])){} else {header('WWW-Authenticate: Basic realm="My Realm"');header('HTTP/1.0 401 Unauthorized');- echo 'You cannot access the web terminal';+ echo '<table><tr><td>You cannot access the web terminal</td></tr></table>';exit;}}diff --git a/scripts/advanced.php b/scripts/advanced.phpindex c0b3fe4e..ebe7c33f 100644--- a/scripts/advanced.php+++ b/scripts/advanced.php@@ -13,7 +13,7 @@ $caddypwd = $config['CADDY_PWD'];if (!isset($_SERVER['PHP_AUTH_USER'])) {header('WWW-Authenticate: Basic realm="My Realm"');header('HTTP/1.0 401 Unauthorized');- echo 'You cannot edit the settings for this installation';+ echo '<table><tr><td>You cannot edit the settings for this installation</td></tr></table>';exit;} else {$submittedpwd = $_SERVER['PHP_AUTH_PW'];@@ -21,7 +21,7 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {if($submittedpwd !== $caddypwd || $submitteduser !== 'birdnet'){header('WWW-Authenticate: Basic realm="My Realm"');header('HTTP/1.0 401 Unauthorized');- echo 'You cannot edit the settings for this installation';+ echo '<table><tr><td>You cannot edit the settings for this installation</td></tr></table>';exit;}}diff --git a/scripts/config.php b/scripts/config.phpindex 159f8e4f..ce321116 100644--- a/scripts/config.php+++ b/scripts/config.php@@ -156,7 +156,7 @@ $caddypwd = $config['CADDY_PWD'];if (!isset($_SERVER['PHP_AUTH_USER'])) {header('WWW-Authenticate: Basic realm="My Realm"');header('HTTP/1.0 401 Unauthorized');- echo 'You cannot edit the settings for this installation';+ echo '<table><tr><td>You cannot edit the settings for this installation</td></tr></table>';exit;} else {$submittedpwd = $_SERVER['PHP_AUTH_PW'];@@ -164,7 +164,7 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {if($submittedpwd !== $caddypwd || $submitteduser !== 'birdnet'){header('WWW-Authenticate: Basic realm="My Realm"');header('HTTP/1.0 401 Unauthorized');- echo 'You cannot edit the settings for this installation';+ echo '<table><tr><td>You cannot edit the settings for this installation</td></tr></table>';exit;}}