Commit 278cdd5e authored by Andrey Filippov's avatar Andrey Filippov

update lwir16.php and related files

parent 3b0788d7
...@@ -5,6 +5,7 @@ INSTALL = install ...@@ -5,6 +5,7 @@ INSTALL = install
DOCS= img.html \ DOCS= img.html \
index.html \ index.html \
index.php \ index.php \
index1.php \
mjpeg.html mjpeg.html
all: all:
......
ips = "192.168.0.41,192.168.0.42,192.168.0.43,192.168.0.44,192.168.0.45" ips = "192.168.0.41,192.168.0.42,192.168.0.43,192.168.0.44,192.168.0.45"
port_masks= "15,15,15,15,15"
duration = 100 duration = 100
pre_delay = 3.0 pre_delay = 3.0
ffc_period = 30.0 ffc_period = 30.0
ffc_groups = 2 ffc_groups = 2
ffc_frames = 8 ffc_frames = 8
ffc = 1 ffc = 1
tiff_telem = 1
tiff_mn = 0
tiff_mx = 65535
tiff_bin_shift = 1
tiff_auto = 0
debug = 1 debug = 1
# no spaces around commas! # no spaces around commas!
CMD = INIT,START CMD = INIT,START
\ No newline at end of file
This diff is collapsed.
...@@ -178,12 +178,16 @@ function curl_multi_finish($data, $use_xml=true, $ntry=0, $echo = false, $with_h ...@@ -178,12 +178,16 @@ function curl_multi_finish($data, $use_xml=true, $ntry=0, $echo = false, $with_h
$xml = simplexml_load_string (curl_multi_getcontent ($ch)); $xml = simplexml_load_string (curl_multi_getcontent ($ch));
curl_multi_remove_handle ($curl_mh, $ch); curl_multi_remove_handle ($curl_mh, $ch);
$results[$i] = array (); $results[$i] = array ();
foreach ($xml as $tag => $value) { try {
$svalue = (string) $value; foreach ($xml as $tag => $value) {
if (strlen ($svalue) > 0) { $svalue = (string) $value;
if ($svalue[0] == '"') $results[$i][$tag] = trim ($svalue, '"'); if (strlen ($svalue) > 0) {
else $results[$i][$tag] = (int) $svalue; if ($svalue[0] == '"') $results[$i][$tag] = trim ($svalue, '"');
} else $results[$i][$tag] = (int) $svalue;
}
}
} catch (exception $e) {
// empty array?
} }
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment