convert birdnetpi_request.php birdweather_request.php

This commit is contained in:
frederik
2024-03-15 10:37:39 +01:00
parent abdffccc2e
commit 83f72c4991
2 changed files with 5 additions and 10 deletions
+3 -5
View File
@@ -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)
+2 -5
View File
@@ -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)