mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
20 lines
No EOL
457 B
PHP
20 lines
No EOL
457 B
PHP
<?php
|
|
header("Content-Type: application/json");
|
|
|
|
$directories = array();
|
|
|
|
if ($handle = opendir(getcwd())) {
|
|
while (false !== ($file = readdir($handle))) {
|
|
if (is_dir($file) && $file[0] !== "." ) {
|
|
array_push($directories, $file);
|
|
}
|
|
}
|
|
|
|
closedir($handle);
|
|
}
|
|
|
|
$test_pages = array_merge($directories, glob("**/*-tests.html"));
|
|
sort($test_pages);
|
|
|
|
echo '{ "testPages":["' . implode( '","', $test_pages ) . '"]}';
|
|
?>
|