convert birdnetpi_request.php birdweather_request.php
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if (file_exists('thisrun.txt')) {
|
require_once 'scripts/common.php';
|
||||||
$config = parse_ini_file('thisrun.txt');
|
$config = get_config();
|
||||||
} elseif (file_exists('firstrun.ini')) {
|
|
||||||
$config = parse_ini_file('firstrun.ini');
|
|
||||||
}
|
|
||||||
$template = file_get_contents("./scripts/email_template2");
|
$template = file_get_contents("./scripts/email_template2");
|
||||||
|
|
||||||
foreach($config as $key => $value)
|
foreach($config as $key => $value)
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
if (file_exists('thisrun.txt')) {
|
require_once 'scripts/common.php';
|
||||||
$config = parse_ini_file('thisrun.txt');
|
$config = get_config();
|
||||||
} elseif (file_exists('firstrun.ini')) {
|
|
||||||
$config = parse_ini_file('firstrun.ini');
|
|
||||||
}
|
|
||||||
$template = file_get_contents("./scripts/email_template");
|
$template = file_get_contents("./scripts/email_template");
|
||||||
|
|
||||||
foreach($config as $key => $value)
|
foreach($config as $key => $value)
|
||||||
|
|||||||
Reference in New Issue
Block a user