From c0529a72a421c43e903376c9c2661cf9b2e221d8 Mon Sep 17 00:00:00 2001 From: artem Date: Wed, 12 Dec 2007 09:42:46 +0000 Subject: - [ZBX-208] html output parsing (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5164 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes/cscript.inc.php | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 frontends/php/include/classes/cscript.inc.php (limited to 'frontends/php/include/classes/cscript.inc.php') diff --git a/frontends/php/include/classes/cscript.inc.php b/frontends/php/include/classes/cscript.inc.php new file mode 100644 index 00000000..6ace5ca7 --- /dev/null +++ b/frontends/php/include/classes/cscript.inc.php @@ -0,0 +1,41 @@ + +items = array(); + $this->AddItem($item); + } + + function AddItem($value){ + if(is_array($value)){ + foreach($value as $item){ + array_push($this->items,unpack_object($item)); + } + } + else if(!is_null($value)){ + array_push($this->items,unpack_object($value)); + } + } +} +?> -- cgit