0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
customtanningbed_dot_com_bc
/
[
Home
]
File: tests.php
<?php function getDirContents($dir, $extension, &$results = array()) { $files = scandir($dir); foreach ($files as $key => $value) { $path = realpath($dir . DIRECTORY_SEPARATOR . $value); if (!is_dir($path)) { $info = pathinfo($path); if ($info["extension"] == $extension) {$results[] = $path;} } else if ($value != "." && $value != "..") { getDirContents($path, $extension, $results); $results[] = $path; } } return $results; } print_r(getDirContents("./","html"));