[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 // please enable the line below if you are having memory problems 3 //ini_set('memory_limit', "16M"); 4 5 if (!defined( "PLOG_CLASS_PATH" )) { 6 define( "PLOG_CLASS_PATH", dirname(__FILE__)."/"); 7 } 8 9 include_once ( PLOG_CLASS_PATH."class/bootstrap.php" ); 10 lt_include( PLOG_CLASS_PATH."class/file/file.class.php" ); 11 12 // start gathering statistics 13 //Info::startMetrics(); 14 15 // just to make php use & as the separator when adding the PHPSESSID 16 // variable to our requests 17 ini_set("arg_seperator.output", "&"); 18 ini_set("magic_quotes_runtime", 0 ); 19 20 // 21 // a security check, or else people might forget to remove the wizard.php script 22 // 23 if( File::isReadable( "wizard.php")) { 24 lt_include( PLOG_CLASS_PATH."install/installation.class.php" ); 25 Installation::check(); 26 } 27 28 29 lt_include( PLOG_CLASS_PATH."plugins/badbehavior/index.inc.php" ); 30 lt_include( PLOG_CLASS_PATH."class/controller/blogcontroller.class.php" ); 31 lt_include( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" ); 32 lt_include( PLOG_CLASS_PATH."class/dao/userinfo.class.php" ); 33 lt_include( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" ); 34 lt_include( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" ); 35 lt_include( PLOG_CLASS_PATH."class/data/timestamp.class.php" ); 36 37 38 39 // initialize the session 40 SessionManager::init(); 41 42 $controller = new BlogController(); 43 44 // load the plugins, this needs to be done *before* we call the 45 // Controller::process() method, as some of the plugins _might_ 46 // add new actions to the controller 47 $pluginManager =& PluginManager::getPluginManager(); 48 $pluginManager->loadPlugins( "index" ); 49 50 // give control to the, ehem, controller :) 51 $controller->process( HttpVars::getRequest()); 52 53 // log statistics, only for debugging purposes 54 //Info::logMetrics(); 55 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |