|
From: Meik S. <acy...@us...> - 2007-09-22 19:18:11
|
Update of /cvsroot/phpbb/phpBB2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27284 Modified Files: common.php Log Message: new hook system (do not get it confused with events or plugins please) - introducing two new hookable functions too Index: common.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/common.php,v retrieving revision 1.207 retrieving revision 1.208 diff -C2 -d -r1.207 -r1.208 *** common.php 30 Aug 2007 21:29:16 -0000 1.207 --- common.php 22 Sep 2007 19:18:12 -0000 1.208 *************** *** 191,193 **** --- 191,202 ---- $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 |