summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorHakan Sandell <sandell.hakan@gmail.com>2010-11-20 14:30:57 +0100
committerHakan Sandell <sandell.hakan@gmail.com>2010-11-20 14:30:57 +0100
commit8f0a521756228d15469d2a712fa1010b64a1d53a (patch)
tree38ce28a99433403fa18d2bce871abc7290c8be54 /inc/actions.php
parentba9418bca378a6759305e3b388926df4f5a0af9c (diff)
parent85dcda20ffd82becbe69a7ca5d99e4b6fd99c9ea (diff)
downloadrpg-8f0a521756228d15469d2a712fa1010b64a1d53a.tar.gz
rpg-8f0a521756228d15469d2a712fa1010b64a1d53a.tar.bz2
Merge branch 'master' of git://github.com/splitbrain/dokuwiki
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 9db7d5f24..fb2ae452f 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -20,6 +20,7 @@ function act_dispatch(){
global $ID;
global $QUERY;
global $lang;
+ global $conf;
$preact = $ACT;
@@ -50,6 +51,12 @@ function act_dispatch(){
}
}
+ //display some infos
+ if($ACT == 'check'){
+ check();
+ $ACT = 'show';
+ }
+
//check permissions
$ACT = act_permcheck($ACT);
@@ -120,12 +127,6 @@ function act_dispatch(){
if(substr($ACT,0,7) == 'export_')
$ACT = act_export($ACT);
- //display some infos
- if($ACT == 'check'){
- check();
- $ACT = 'show';
- }
-
//handle admin tasks
if($ACT == 'admin'){
// retrieve admin plugin name from $_REQUEST['page']
@@ -143,6 +144,10 @@ function act_dispatch(){
$ACT = act_permcheck($ACT);
} // end event ACTION_ACT_PREPROCESS default action
$evt->advise_after();
+ // Make sure plugs can handle 'denied'
+ if($conf['send404'] && $ACT == 'denied') {
+ header('HTTP/1.0 403 Forbidden');
+ }
unset($evt);
// when action 'show', the intial not 'show' and POST, do a redirect