Update advanced.php
This commit is contained in:
@@ -34,7 +34,7 @@ if(isset($_GET['submit'])) {
|
|||||||
$caddy_pwd = $_GET["caddy_pwd"];
|
$caddy_pwd = $_GET["caddy_pwd"];
|
||||||
if(strcmp($caddy_pwd,$config['CADDY_PWD']) !== 0) {
|
if(strcmp($caddy_pwd,$config['CADDY_PWD']) !== 0) {
|
||||||
$contents = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=\"$caddy_pwd\"", $contents);
|
$contents = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=\"$caddy_pwd\"", $contents);
|
||||||
$contents2 = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=\"$caddy_pwd\"", $contents);
|
$contents2 = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=\"$caddy_pwd\"", $contents2);
|
||||||
$fh = fopen('/etc/birdnet/birdnet.conf', "w");
|
$fh = fopen('/etc/birdnet/birdnet.conf', "w");
|
||||||
$fh2 = fopen("./scripts/thisrun.txt", "w");
|
$fh2 = fopen("./scripts/thisrun.txt", "w");
|
||||||
fwrite($fh, $contents);
|
fwrite($fh, $contents);
|
||||||
|
|||||||
Reference in New Issue
Block a user