This commit is contained in:
Your Name
2025-01-30 11:42:02 +01:00
parent a8ca15505e
commit 578721a9f2
6 changed files with 156 additions and 23 deletions

View File

@@ -1,4 +1,9 @@
<?php
// ✅ Prevents caching → Adds headers to ensure fresh response.
header("Content-Type: application/json");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Pragma: no-cache");
$type=$_GET['type'];
if ($type == "update_config") {
@@ -25,6 +30,12 @@ if ($type == "RTC_time") {
echo $time;
}
if ($type == "sys_RTC_module_time") {
$command = '/usr/bin/python3 /var/www/nebuleair_pro_4g/RTC/read.py';
$output = shell_exec($command);
echo $output;
}
if ($type == "git_pull") {
$command = 'sudo git pull';
$output = shell_exec($command);