5, 'FrameId' => 7, 'ZoneId' => 3, 'Width' => 640, 'Height' => 480, 'ZoneName' => null, 'Units' => null, 'Area' => null, 'Coords' => null, 'PixelDiff' => 20, 'AlarmPixels' => 100, 'FilterPixels' => 100, 'BlobPixels' => 100, 'Blobs' => 1, 'MinBlobSize' => 100, 'MaxBlobSize' => 100, 'Score' => 4, 'MinX' => 0, 'MinY' => 0, 'MaxX' => 10, 'MaxY' => 10, )); } $failures = 0; function check($n, $ok) { global $failures; if ($ok) echo "ok - $n\n"; else { $failures++; echo "FAIL - $n\n"; } } $src = file_get_contents($root.'/web/skins/classic/includes/functions.php'); preg_match('/function getStatsTableHTML\(.*?\n\}\n/s', $src, $m); eval($m[0]); $html = getStatsTableHTML(5, 7); check('table labels a deleted zone by id', strpos($html, '