check_vpn status
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-13 21:08:33 +01:00
parent 26e37a16d3
commit de23eaf27c
3 changed files with 38 additions and 1 deletions

View File

@@ -387,6 +387,20 @@ switch ($_GET["op"]) {
if (set_output("add_repository",$json)) echo "OK";
else echo "ERROR";
break;
case "check_vpn":
$key = "check_vpn";
$arr = array("STATUS" => 0);
$json = json_encode($arr, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT);
set_output($key,$json);
sleep(1);
$arr = check_response($key);
if (!empty($arr)) {
$data = $arr[$key];
echo $data["STATUS"];
remove_response("$key");
}
else echo "NO";
break;
case "save_vpn":
remove_response("save_repository");