source: branches/rsr.v5.1.dev/web/app/main.php @ 3

Last change on this file since 3 was 1, checked in by dj3c1t, 13 years ago

import initial

File size: 416 bytes
RevLine 
[1]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.