aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-09-22 19:18:13 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-09-22 19:18:13 +0000
commit7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b (patch)
tree562486b0531a95c67081cb61fd67221f8f9daa2a /phpBB/common.php
parente3882844ec985a62ae573bbcf618c08343afc717 (diff)
downloadforums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.tar
forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.tar.gz
forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.tar.bz2
forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.tar.xz
forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.zip
new hook system (do not get it confused with events or plugins please)
- introducing two new hookable functions too git-svn-id: file:///svn/phpbb/trunk@8100 89ea8834-ac86-4346-8a33-228a782c2dd0
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