mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
26 lines
524 B
PHP
26 lines
524 B
PHP
|
<?php
|
||
|
|
||
|
function getGeneratedFiles($dir, &$results = array())
|
||
|
{
|
||
|
$files = scandir($dir);
|
||
|
|
||
|
foreach ($files as $key => $value) {
|
||
|
$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
|
||
|
if (!is_dir($path)) {
|
||
|
$results[] = $path;
|
||
|
} else if ($value != "." && $value != "..") {
|
||
|
getGeneratedFiles($path, $results);
|
||
|
}
|
||
|
}
|
||
|
return $results;
|
||
|
}
|
||
|
|
||
|
foreach (getGeneratedFiles("generated") as $filename)
|
||
|
{
|
||
|
if (!is_dir($filename)) {
|
||
|
include_once $filename;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|