source:
trunk/web/app/main.php
Last change on this file was 6, checked in by dj3c1t, 13 years ago | |
---|---|
File size: 416 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | if($dh = opendir($env->path("app")."run/")) |
4 | { $files = array(); |
5 | while(($file = readdir($dh)) !== false) $files[] = $file; |
6 | closedir($dh); |
7 | if($files) |
8 | { sort($files); |
9 | foreach($files as $file) |
10 | { if(!is_dir($env->path("app")."run/".$file) && strcmp(substr($file, -4), ".php") == 0) require $env->path("app")."run/".$file; |
11 | } |
12 | } |
13 | } |
14 | if($env->erreur) $env->e = "erreur"; |
15 | |
16 | ?> |
Note: See TracBrowser
for help on using the repository browser.