Conditions | 6 |
Paths | 6 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
9 | function loadDirectory($path) { |
||
10 | if ($dh = opendir($path)) { |
||
11 | while ($name = readdir($dh)) { |
||
12 | if ($name[0] !== '.') { |
||
13 | $file = $path . '/' . $name; |
||
14 | if (is_dir($file)) { |
||
15 | loadDirectory($file); |
||
16 | } elseif (substr($name, -4, 4) === '.php') { |
||
17 | require_once $file; |
||
18 | } |
||
19 | } |
||
20 | } |
||
21 | } |
||
22 | } |
||
23 | |||
42 |