/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to services/list.php

  • Committer: Suren A. Chilingaryan
  • Date: 2021-07-12 02:27:35 UTC
  • Revision ID: csa@suren.me-20210712022735-mizckdff53ie51v6
Implement list_hardware bypass to provide access to internal ZEUS data organization (opc sources & blocks)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
else $menu = false; 
27
27
 
28
28
$flags = 0;
 
29
if ($_GET['list_hardware']) $flags |= REQUEST::LIST_HARDWARE;
29
30
if ($_GET['list_virtual']) $flags |= REQUEST::LIST_VIRTUAL;
30
31
if ($_GET['list_complex']) $flags |= REQUEST::LIST_COMPLEX;
31
32
if ($_GET['list_custom']) $flags |= REQUEST::LIST_CUSTOM;
318
319
                    if ($flags&REQUEST::CONTROL) array_push($used_keys, "read", "write", "sampling_rate");
319
320
                    foreach ($info as $key=>$value) {
320
321
                        if (in_array($key, $used_keys)||(is_array($value))) continue;
321
 
                        $extra .= " $key=\"$value\"";
 
322
                        $extra .= " $key=\"" . xml_escape($value) . "\"";
322
323
                    }
323
324
                }
324
325