diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-11-16 22:29:37 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-11-16 22:29:37 +0100 |
commit | c95706497c2894f9c0f6571478f8550d3418fe72 (patch) | |
tree | 45d80b390dbea2450507fa786df8e1c7493e9daf /inc/actions.php | |
parent | 88e6a4f27638db93e9ca8ca28ea1710343c34701 (diff) | |
download | rpg-c95706497c2894f9c0f6571478f8550d3418fe72.tar.gz rpg-c95706497c2894f9c0f6571478f8550d3418fe72.tar.bz2 |
two more event hooks
darcs-hash:20061116212937-7ad00-2ac647a9040f75650bdbe1047e76370f9c900dff.gz
Diffstat (limited to 'inc/actions.php')
-rw-r--r-- | inc/actions.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php index a14cb385f..8d7479d0e 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -14,6 +14,9 @@ * Call the needed action handlers * * @author Andreas Gohr <andi@splitbrain.org> + * @triggers ACTION_ACT_PREPROCESS + * @triggers ACTION_REGISTER + * @triggers ACTION_HEADERS_SEND */ function act_dispatch(){ global $INFO; @@ -48,7 +51,8 @@ function act_dispatch(){ $ACT = act_permcheck($ACT); //register - if($ACT == 'register' && register()){ + $nil = array(); + if($ACT == 'register' && $_POST['save'] && trigger_event('ACTION_REGISTER', $nil, 'register')){ $ACT = 'login'; } |