NewsFeaturesDownloadsDevelopmentSupportAbout Us

lifetype/branches/lifetype-1.0.6/index.php

Go to the documentation of this file.
00001 <?php
00002 
00003     // please enable the line below if you are having memory problems
00004     //ini_set('memory_limit', "16M");
00005 
00006     if (!defined( "PLOG_CLASS_PATH" )) {
00007         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
00008     }
00009 
00010     include_once( PLOG_CLASS_PATH."class/controller/blogcontroller.class.php" );
00011     include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
00012     include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
00013     include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
00014     include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
00015 
00016     // just to make php use &amp; as the separator when adding the PHPSESSID
00017     // variable to our requests
00018     ini_set("arg_seperator.output", "&amp;");
00019     ini_set("magic_quotes_runtime", 0 );
00020 
00021     //
00022     // a security check, or else people might forget to remove the wizard.php script
00023     //
00024     if( File::isReadable( "wizard.php")) {
00025         print("<span style=\"color:red\">The wizard.php script has to be removed after the installation process.</span><br/><br/>
00026                Please remove it first to continue.");
00027         die();
00028     }
00029 
00030     // initialize the session
00031     SessionManager::init();
00032 
00033     $controller = new BlogController();
00034 
00035     // load the plugins, this needs to be done *before* we call the
00036     // Controller::process() method, as some of the plugins _might_
00037     // add new actions to the controller
00038     $pluginManager =& PluginManager::getPluginManager();
00039     $pluginManager->loadPlugins();
00040 
00041     // give control to the, ehem, controller :)
00042     $controller->process( HttpVars::getRequest(), "op");
00043 ?>