This commit is contained in:
PaulVua
2025-01-23 18:03:11 +01:00
parent 660af80ab0
commit 155a2bd453
4 changed files with 74 additions and 11 deletions

View File

@@ -1,6 +1,15 @@
<?php
$type=$_GET['type'];
if ($type == "update_config") {
echo "updating....";
$configFile = '../config.json';
$configData = json_decode(file_get_contents($configFile), true);
$configData['loop_activation'] = true;
file_put_contents($configFile, json_encode($configData, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
echo "Config updated!";
}
if ($type == "RTC_time") {
$time = shell_exec("date '+%d/%m/%Y %H:%M:%S'");
echo $time;