function run_koharness($basedir) { assert_true($koharness_path = realpath(__DIR__ . '/../koharness'), 'Found koharness script'); $cmd = 'cd ' . escapeshellarg($basedir) . ' && ' . escapeshellcmd($koharness_path); echoline("Executing koharness with command {$cmd}"); passthru($cmd, $return); assert_true($return === 0, "Koharness execution should return 0"); }
for ($i = 0; $i < $max; $i++) { echoline($fw, $fx, $elements[1][$i], 'sub form'); } echoline($fw, $fx, trim($params['atime']), 'sub atime', 'd'); echoline($fw, $fx, trim($params['mtime']), 'sub mtime', 'd'); echoline($fw, $fx, trim($params['ctime']), 'sub ctime', 'd'); echoline($fw, $fx, trim($params['date']), 'sub date'); echoline($fw, $fx, trim($params['size']), 'sub size'); echoline($fw, $fx, trim($params['rev']), 'sub rev'); echoline($fw, $fx, substr(trim($params['tag']), 1), 'sub tag'); } elseif (preg_match('/\\.(gif|jpg|png)$/i', $file)) { echoline($fw, $fx, $file, 'file image'); } else { echoline($fw, $fx, $file, 'file other'); } echoline($fw, $fx, ''); flush(); } } echoline($fw, $fx, 'end of box', 'eob'); } fclose($fw); fclose($fx); } if (is_file($logfilehtml)) { readfile($logfilehtml); } ?> </pre> </body></html>