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