get passed
"; } fwrite($spawn, $response); break; case "set": logger(DEBUG, _("SET reached"), __FILE__ . ":" . __LINE__); $response = "
set passed
"; fwrite($spawn, $response); break; case "dump": case "print": logger(DEBUG, $command . _(" reached"), __FILE__ . ":" . __LINE__); $var = $GLOBALS[$argList["object"]]; if (isset($argList["topic"])) { $topic = $argList["topic"]; } if (isset($argList["address"])) { $var = $var[$argList["address"]]; }elseif (isset($argList["fn"])) { if(!empty($topic)) { $var = $var[$topic]; $path = explode("/", $argList["fn"]); foreach($path as $tmp) { $var = $var[$tmp]; } }else { $str = _("topic is not defining: add &topic=\nThese topics are availables: "); foreach($topics as $key => $value) { $str .= $key . EOL; } logger(ERROR, $str, __FILE__ . ":" . __LINE__); } } $error = error_get_last(); if($error !== null) { $response = "
" . $error["message"] . " file: " . $error["file"] . " line: " . $error["line"] . "
"; } if ($command === "print") { $response = print_r($var, true); }elseif($command === "dump") { $response = "Dump" . EOL; $response .= var_export($var, true); } fwrite($spawn, $response); break; default: logger(DEBUG, _("unknown command"), __FILE__ . ":" . __LINE__); fwrite($spawn, _("unknown command")); } } } } } } ?>