"You cannot" styling

This commit is contained in:
ehpersonal38
2022-06-11 09:54:29 -04:00
parent 0f68b676c6
commit daf8469b42
3 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -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;
}
}
+2 -2
View File
@@ -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;
}
}
+2 -2
View File
@@ -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;
}
}