summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-04-15 17:24:44 +0200
committerchris <chris@jalakai.co.uk>2006-04-15 17:24:44 +0200
commita4b5ae12aa2904f2bb8db8e78649acb4c382ba8a (patch)
tree9732fdbfc1ab64065979953fee75d3ce0a215785 /doku.php
parent39a89382d5e693e2b9c9f4e10d73081d1311aeee (diff)
downloadrpg-a4b5ae12aa2904f2bb8db8e78649acb4c382ba8a.tar.gz
rpg-a4b5ae12aa2904f2bb8db8e78649acb4c382ba8a.tar.bz2
add events, DOKUWIKI_START & DOKUWIKI_END
event DOKUWIKI_START This event is advisory only. There is no event data There is no default action The event is signalled after Dokuwiki has completed its initialisation phase and before it closes the session. Most Dokuwiki globals will have been created and populated, the global $_SESSION var will still be in existence. Note: Even after $_SESSION has been closed a plugin can reopen the session to access session data - as long as headers have not already been sent. For more information refer to lib/plugins/config/admin.php. event DOKUWIKI_END This event is advisory only. There is no event data There is no default action The event is signalled after all processing has been completed as the last thing doku.php does before exiting. It is possible that under certain circumstances dokuwiki will exit without returning to doku.php and this event may not then be signalled. darcs-hash:20060415152444-9b6ab-1e41d0265f2a6660ad497dd387c7930251dc4030.gz
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/doku.php b/doku.php
index 242d2e6c2..64c59d74c 100644
--- a/doku.php
+++ b/doku.php
@@ -62,11 +62,18 @@
//prepare breadcrumbs (initialize a static var)
breadcrumbs();
+ $evt = new event('DOKUWIKI_START',$tmp=array());
+ $evt->advise();
+ unset($evt);
+
//close session
session_write_close();
//do the work
act_dispatch($ACT);
+ $evt = new event('DOKUWIKI_END', $tmp=array());
+ $evt->advise();
+
// xdebug_dump_function_profile(1);
?>