-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (41 loc) · 1.89 KB
/
index.php
File metadata and controls
55 lines (41 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
// please enable the line below if you are having memory problems
//ini_set('memory_limit', "16M");
if (!defined( "PLOG_CLASS_PATH" )) {
define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
}
include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
lt_include( PLOG_CLASS_PATH."class/file/file.class.php" );
// start gathering statistics
//Info::startMetrics();
// just to make php use & as the separator when adding the PHPSESSID
// variable to our requests
ini_set("arg_seperator.output", "&");
ini_set("magic_quotes_runtime", 0 );
//
// a security check, or else people might forget to remove the wizard.php script
//
if( File::isReadable( "wizard.php")) {
lt_include( PLOG_CLASS_PATH."install/installation.class.php" );
Installation::check();
}
lt_include( PLOG_CLASS_PATH."plugins/badbehavior/index.inc.php" );
lt_include( PLOG_CLASS_PATH."class/controller/blogcontroller.class.php" );
lt_include( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
lt_include( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
lt_include( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
lt_include( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
lt_include( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
// initialize the session
SessionManager::init();
$controller = new BlogController();
// load the plugins, this needs to be done *before* we call the
// Controller::process() method, as some of the plugins _might_
// add new actions to the controller
$pluginManager =& PluginManager::getPluginManager();
$pluginManager->loadPlugins( "index" );
// give control to the, ehem, controller :)
$controller->process( HttpVars::getRequest());
// log statistics, only for debugging purposes
//Info::logMetrics();
?>