summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-01-31 19:02:14 +0100
committerAndreas Gohr <andi@splitbrain.org>2010-01-31 19:02:14 +0100
commit16905344219a6293705b71cd526fad3ba07b04eb (patch)
tree0fbb1eb7af4a90cb0cd569bb02f6d219ea790dd7 /inc/init.php
parentfcd3bb7cfe60027407e0af2ec83fafbf89758e9c (diff)
downloadrpg-16905344219a6293705b71cd526fad3ba07b04eb.tar.gz
rpg-16905344219a6293705b71cd526fad3ba07b04eb.tar.bz2
first attempt to centralize all include loading
Classes are loaded throug PHP5's class autoloader, all other includes are just loaded by default. This skips a lot of require_once calls. Parser and Plugin stuff isn't handled by the class loader yet.
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/inc/init.php b/inc/init.php
index 6fb9559ce..3cff40073 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -37,6 +37,9 @@ if (!defined('DOKU_E_LEVEL')) {
error_reporting(DOKU_E_LEVEL);
}
+// load libraries
+require_once(DOKU_INC.'inc/load.php');
+
// init memory caches
global $cache_revinfo;
$cache_revinfo = array();
@@ -245,6 +248,8 @@ init_files();
scriptify(DOKU_CONF.'users.auth');
scriptify(DOKU_CONF.'acl.auth');
+// setup authentication system
+auth_setup();
/**
* Checks paths from config file
@@ -526,7 +531,6 @@ EOT;
exit;
}
-
/**
* A realpath() replacement
*
@@ -588,5 +592,3 @@ function fullpath($path,$exists=false){
return $finalpath;
}
-
-