summaryrefslogtreecommitdiffstats
path: root/code/handlers.inc.php
blob: a167ba8864d1da96b7966517cb294958ded5463e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?PHP
  require_once('code/modules.inc.php');
  
  $dir = opendir('handlers');
  
  while($file = readdir($dir))
    if($file[0] != '.' && substr($file, -8) == '.inc.php')
      include('handlers/' . $file);
  
  closedir($dir);
  
  foreach($GLOBALS['modules']->handlers as $file)
    include($file);
?>