NewsFeaturesDownloadsDevelopmentSupportAbout Us

lifetype-1.1.6/index.php

Go to the documentation of this file.
00001 <?php
00002 
00003 //xdebug_start_profiling();
00004 //xdebug_start_trace('/Users/oscar/plog-devel/tmp/trace');
00005 
00006     // please enable the line below if you are having memory problems
00007     //ini_set('memory_limit', "16M");
00008 
00009     if (!defined( "PLOG_CLASS_PATH" )) {
00010         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
00011     }
00012 
00013     include_once( PLOG_CLASS_PATH."class/bootstrap.php" );    
00014     include_once( PLOG_CLASS_PATH."class/controller/blogcontroller.class.php" );
00015     include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
00016     include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
00017     include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
00018     include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
00019     include_once( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
00020 
00021     
00022     // start gathering statistics
00023     Info::startMetrics();    
00024 
00025     // just to make php use &amp; as the separator when adding the PHPSESSID
00026     // variable to our requests
00027     ini_set("arg_seperator.output", "&amp;");
00028     ini_set("magic_quotes_runtime", 0 );
00029 
00030     //
00031     // a security check, or else people might forget to remove the wizard.php script
00032     //
00033     if( File::isReadable( "wizard.php")) {
00034         include_once( PLOG_CLASS_PATH."install/installation.class.php" );
00035         Installation::check();
00036     }
00037 
00038     // initialize the session
00039     SessionManager::init();
00040 
00041     $controller = new BlogController();
00042 
00043     // load the plugins, this needs to be done *before* we call the
00044     // Controller::process() method, as some of the plugins _might_
00045     // add new actions to the controller
00046     $pluginManager =& PluginManager::getPluginManager();
00047     $pluginManager->loadPlugins();
00048         
00049     // give control to the, ehem, controller :)
00050     $controller->process( HttpVars::getRequest(), "op");        
00051 
00052     // log statistics, only for debugging purposes
00053     //Info::logMetrics();
00054 ?>