summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-02-19 11:20:55 +0100
committerandi <andi@splitbrain.org>2005-02-19 11:20:55 +0100
commited7b5f0908941f1bacef7e7c3a02c106a42cd5cc (patch)
tree6582419f82a87837adaefee934e1cb2a5316d8cb /doku.php
parentf840b65d632cd5e155f4d6e39c8a42ae9fd5f566 (diff)
downloadrpg-ed7b5f0908941f1bacef7e7c3a02c106a42cd5cc.tar.gz
rpg-ed7b5f0908941f1bacef7e7c3a02c106a42cd5cc.tar.bz2
added init.php - may have broken something! (related to #153)
darcs-hash:20050219102055-9977f-575d654e742934c911ffab855d82aa91f198b5cf.gz
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/doku.php b/doku.php
index d1781a9a2..c69462574 100644
--- a/doku.php
+++ b/doku.php
@@ -5,14 +5,15 @@
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Andreas Gohr <andi@splitbrain.org>
*/
-
- require_once("conf/dokuwiki.php");
- require_once("inc/common.php");
- require_once("inc/html.php");
- require_once("inc/parser.php");
- require_once("lang/en/lang.php");
- require_once("lang/".$conf['lang']."/lang.php");
- require_once("inc/auth.php");
+
+ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__)).'/');
+ require_once(DOKU_INC.'inc/init.php');
+ require_once(DOKU_INC.'inc/common.php');
+ require_once(DOKU_INC.'inc/html.php');
+ require_once(DOKU_INC.'inc/parser.php');
+ require_once(DOKU_INC.'lang/en/lang.php');
+ require_once(DOKU_INC.'lang/'.$conf['lang'].'/lang.php');
+ require_once(DOKU_INC.'inc/auth.php');
//import variables
$QUERY = trim($_REQUEST['id']);
@@ -73,7 +74,7 @@
//unlock it
unlock($id);
//show it
- header("Location: ".wl($ID, '','doku.php',true));
+ header("Location: ".wl($ID,'',true));
exit();
}
}