3 if (!defined( "PLOG_CLASS_PATH" )) {
4 define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
7 include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
8 lt_include( PLOG_CLASS_PATH."class/summary/controller/summarycontroller.class.php" );
9 lt_include( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
10 lt_include( PLOG_CLASS_PATH."class/misc/version.class.php" );
11 lt_include( PLOG_CLASS_PATH."class/data/validator/usernamevalidator.class.php" );
12 lt_include( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
13 lt_include( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
14 lt_include( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
16 define( "SUMMARY_DEFAULT_BLOGS_PER_PAGE", 25 );
19 // a security check, or else people might forget to remove the wizard.php script
21 if( is_readable( "wizard.php")) {
22 lt_include( PLOG_CLASS_PATH."install/installation.class.php" );
23 Installation::check();
26 // check if the url is coming for a subdomain because if it is... we should
27 // redirect to index.php because it is not coming to us!
28 $config =& Config::getConfig();
29 if( $config->getValue( "subdomains_enabled") && Subdomains::isSubdomainUrl()) {
30 $indexPage = $config->getValue( "script_name", "index.php" );
31 lt_include( PLOG_CLASS_PATH.$indexPage );
35 // initialiaze the session
36 SessionManager::init();
39 $controller = new SummaryController();
40 $controller->process( HttpVars::getRequest());