Пример #1
0
<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require '../vendor/autoload.php';
use app\controllers\utilities;
$utilities = new utilities();
foreach ($_POST as $key => $value) {
    ${$key} = $value;
}
$addAlarm = $utilities->registerAlarms($alarm_name, $alarm_condition, $uname);
if ($addAlarm) {
    echo "true";
} else {
    echo "false";
}