2 require './lib/common.inc.php';
5 require './setup/lib/validate.lib.php';
7 header('Content-type: application/json');
9 $vids = explode(',', filter_input(INPUT_POST
, 'id'));
10 $values = json_decode(filter_input(INPUT_POST
, 'values'));
11 if (!($values instanceof stdClass
)) {
14 $values = (array)$values;
15 $result = validate($vids, $values, true);
16 if ($result === false) {
17 $result = 'Wrong data or no validation for ' . $vids;
19 echo $result !== true ?
json_encode($result) : '';