00001 <?php 00002 00003 if (!defined( "PLOG_CLASS_PATH" )) { 00004 define( "PLOG_CLASS_PATH", dirname(__FILE__)."/"); 00005 } 00006 00007 include_once( PLOG_CLASS_PATH."class/bootstrap.php" ); 00008 lt_include( PLOG_CLASS_PATH."class/controller/controller.class.php" ); 00009 lt_include( PLOG_CLASS_PATH."class/net/http/session/sessioninfo.class.php" ); 00010 lt_include( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" ); 00011 lt_include( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" ); 00012 lt_include( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" ); 00013 00014 // create our own action map 00015 $actionMap = Array( "Default" => "RssAction" ); 00016 $controller = new Controller( $actionMap, "op" ); 00017 00018 $request = HttpVars::getRequest(); 00019 if( isset($request["summary"])) { 00020 $request["op"] = "rss"; 00021 HttpVars::setRequest( $request ); 00022 lt_include( PLOG_CLASS_PATH."summary.php" ); 00023 die(); 00024 } 00025 00026 // 00027 // if there is no session object, we better create one 00028 // 00029 SessionManager::Init(); 00030 $session = HttpVars::getSession(); 00031 if( empty( $session["SessionInfo"] ) ) { 00032 $session["SessionInfo"] = new SessionInfo(); 00033 HttpVars::setSession( $session ); 00034 } 00035 00036 // load the plugins, this needs to be done *before* we call the 00037 // Controller::process() method, as some of the plugins _might_ 00038 // add new actions to the controller 00039 $pluginManager =& PluginManager::getPluginManager(); 00040 $pluginManager->loadPlugins(); 00041 00042 // and call the controller 00043 $controller->process( HttpVars::getRequest()); 00044 ?>
| © 2008 LifeType. All rights reserved. | International | Germany | Taiwan | Russia | Ukraine | Sitemap | Contact | Hosting by Lime Daley |