single URL installation -- 1 custom URL

This commit is contained in:
mcguirepr89
2022-03-14 09:58:19 -04:00
parent 98d7ee2b08
commit 3f5c667fa1
7 changed files with 173 additions and 133 deletions
+1 -8
View File
@@ -153,14 +153,7 @@ if(isset($_POST['view'])){
$submitteduser = $_SERVER['PHP_AUTH_USER'];
if($submittedpwd == $caddypwd && $submitteduser == 'birdnet'){
#ACCESS THE WEB TERMINAL
if(empty($config['BIRDNETLOG_URL']) == false) {
$webterm = $config['WEBTERMINAL_URL'];
} elseif(empty($config['BIRDNETPI_URL'] == false)) {
$webterm = $config['BIRDNETPI_URL'].":8888";
} else {
$webterm = "http://birdnetpi.local:8888";
}
header("Location: $webterm");
header("Location: /terminal");
} else {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');