Commit f00269cd authored by Andrey Filippov's avatar Andrey Filippov

debugging

parent c7901f1e
......@@ -238,6 +238,13 @@ function filter_record_by_file($a,$f){
// default CT is text/html - LibreJS can add extra tags: <html><head></head><body>response</body></html>
header("Content-Type: text/plain");
if ($cmd=="debug"){
$arr = get_control($file);
echo "<!--";
print_r($arr);
echo "-->";
exit (0);
}
if ($cmd=="do_nothing"){
......@@ -309,7 +316,11 @@ if ($cmd=="restore"){
if ($cmd=="reread"){
$file = $_GET['file'];
$arr = get_control($DEBUGFSFILE);
$filtered = filter_record_by_file($arr,$file);
if (!$file) {
$filtered = $arr;
} else {
$filtered = filter_record_by_file($arr,$file);
}
echo json_encode($filtered);
//echo "<pre>";print_r($filtered);
}
......
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