summaryrefslogtreecommitdiffstats
path: root/code/handlers.inc.php
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-03-05 01:01:01 +0100
committerneoraider <devnull@localhost>2006-03-05 01:01:01 +0100
commitd8edab617c02409178e82a59ce704d7da5de6d9a (patch)
tree59a6f6fdc26dd908d69f730a418e6a303015c384 /code/handlers.inc.php
parentb7cab9a930cf9ab53e5d11764cd560c7d9ef1632 (diff)
downloadneon-d8edab617c02409178e82a59ce704d7da5de6d9a.tar
neon-d8edab617c02409178e82a59ce704d7da5de6d9a.zip
Anstatt der defined-Abfragen wird jetzt require_once benutzt.
Diffstat (limited to 'code/handlers.inc.php')
-rw-r--r--code/handlers.inc.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/code/handlers.inc.php b/code/handlers.inc.php
index 018402e..5410de0 100644
--- a/code/handlers.inc.php
+++ b/code/handlers.inc.php
@@ -1,13 +1,9 @@
<?PHP
- if(!defined('HANDLERS_INC')) {
- define('HANDLERS_INC', 1);
-
- $dir = opendir('handlers');
-
- while($file = readdir($dir))
- if($file[0] != '.' && substr($file, -8) == '.inc.php')
- include('handlers/' . $file);
-
- closedir($dir);
- }
+ $dir = opendir('handlers');
+
+ while($file = readdir($dir))
+ if($file[0] != '.' && substr($file, -8) == '.inc.php')
+ include('handlers/' . $file);
+
+ closedir($dir);
?>