aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 1be8eeec9b..2d8a654dac 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -190,4 +190,13 @@ unset($dbpasswd);
// Grab global variables, re-cache if necessary
$config = $cache->obtain_config();
+// Add own hook handler
+require($phpbb_root_path . 'includes/hooks/index.' . $phpEx);
+$phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));
+
+foreach ($cache->obtain_hooks() as $hook)
+{
+ include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
+}
+
?> \ No newline at end of file