update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user