1
0
mirror of https://github.com/limosek/zaf-plugins.git synced 2025-11-01 01:57:38 +01:00

Added subcommands register and send

This commit is contained in:
Lukas Macura
2017-01-30 10:31:37 +01:00
parent bc17752cf1
commit 6ee868cf6d
6 changed files with 139 additions and 6 deletions

View File

@@ -14,12 +14,15 @@ fclose($c);
json_init();
$last=end($header);
$last1=end($header);
$last2=end($range);
foreach ($header as $num=>$column) {
if (!array_key_exists($num,$range)) continue;
json_row();
json_column("FIELD","$column",true);
json_row_end($last==$column);
json_column("COLUMN",$num);
json_column("NAME",addslashes($column),true);
json_row_end($last1==$column||$last2==($num+1));
}
json_end();