summaryrefslogtreecommitdiffstats
path: root/code/templates.inc.php
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-11 20:34:03 +0200
committerneoraider <devnull@localhost>2006-04-11 20:34:03 +0200
commit3634676b7fab1da7ffb5f3d32bc4608a6f339305 (patch)
treef9a8e5cf5f78c2a76cda3152ee8b58cf286a4292 /code/templates.inc.php
parent2fe04a4707412ff2f4f8df5f5524bb1b2dcbb3d7 (diff)
downloadneon-3634676b7fab1da7ffb5f3d32bc4608a6f339305.tar
neon-3634676b7fab1da7ffb5f3d32bc4608a6f339305.zip
Handler hei?en jetzt Templates.
Diffstat (limited to 'code/templates.inc.php')
-rw-r--r--code/templates.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/code/templates.inc.php b/code/templates.inc.php
new file mode 100644
index 0000000..7abfe79
--- /dev/null
+++ b/code/templates.inc.php
@@ -0,0 +1,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);
+?>