NewsNewsFeaturesDownloadsDevelopmentSupportForumDocumentsAbout Us

admin.php

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