"You cannot" styling
This commit is contained in:
+4
-4
@@ -102,7 +102,7 @@ if(isset($_GET['view'])){
|
|||||||
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||||
header('WWW-Authenticate: Basic realm="My Realm"');
|
header('WWW-Authenticate: Basic realm="My Realm"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
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;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
$submittedpwd = $_SERVER['PHP_AUTH_PW'];
|
$submittedpwd = $_SERVER['PHP_AUTH_PW'];
|
||||||
@@ -125,7 +125,7 @@ if(isset($_GET['view'])){
|
|||||||
} else {
|
} else {
|
||||||
header('WWW-Authenticate: Basic realm="My Realm"');
|
header('WWW-Authenticate: Basic realm="My Realm"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -198,7 +198,7 @@ if(isset($_GET['view'])){
|
|||||||
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||||
header('WWW-Authenticate: Basic realm="My Realm"');
|
header('WWW-Authenticate: Basic realm="My Realm"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
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;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
$submittedpwd = $_SERVER['PHP_AUTH_PW'];
|
$submittedpwd = $_SERVER['PHP_AUTH_PW'];
|
||||||
@@ -209,7 +209,7 @@ if(isset($_GET['view'])){
|
|||||||
} else {
|
} else {
|
||||||
header('WWW-Authenticate: Basic realm="My Realm"');
|
header('WWW-Authenticate: Basic realm="My Realm"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ $caddypwd = $config['CADDY_PWD'];
|
|||||||
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||||
header('WWW-Authenticate: Basic realm="My Realm"');
|
header('WWW-Authenticate: Basic realm="My Realm"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
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;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
$submittedpwd = $_SERVER['PHP_AUTH_PW'];
|
$submittedpwd = $_SERVER['PHP_AUTH_PW'];
|
||||||
@@ -21,7 +21,7 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
|||||||
if($submittedpwd !== $caddypwd || $submitteduser !== 'birdnet'){
|
if($submittedpwd !== $caddypwd || $submitteduser !== 'birdnet'){
|
||||||
header('WWW-Authenticate: Basic realm="My Realm"');
|
header('WWW-Authenticate: Basic realm="My Realm"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -156,7 +156,7 @@ $caddypwd = $config['CADDY_PWD'];
|
|||||||
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||||
header('WWW-Authenticate: Basic realm="My Realm"');
|
header('WWW-Authenticate: Basic realm="My Realm"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
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;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
$submittedpwd = $_SERVER['PHP_AUTH_PW'];
|
$submittedpwd = $_SERVER['PHP_AUTH_PW'];
|
||||||
@@ -164,7 +164,7 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
|||||||
if($submittedpwd !== $caddypwd || $submitteduser !== 'birdnet'){
|
if($submittedpwd !== $caddypwd || $submitteduser !== 'birdnet'){
|
||||||
header('WWW-Authenticate: Basic realm="My Realm"');
|
header('WWW-Authenticate: Basic realm="My Realm"');
|
||||||
header('HTTP/1.0 401 Unauthorized');
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user