5 if (!defined( "PLOG_CLASS_PATH" )) {
6 define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
9 include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
10 lt_include( PLOG_CLASS_PATH."class/controller/controller.class.php" );
11 lt_include( PLOG_CLASS_PATH."class/net/http/session/sessioninfo.class.php" );
12 lt_include( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
13 lt_include( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
14 lt_include( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
16 // create our own action map
17 $actionMap = Array( "Default" => "RssAction" );
18 $controller = new Controller( $actionMap, "op" );
20 $request = HttpVars::getRequest();
21 if( isset($request["summary"])) {
22 $request["op"] = "rss";
23 HttpVars::setRequest( $request );
24 lt_include( PLOG_CLASS_PATH."summary.php" );
29 // if there is no session object, we better create one
31 SessionManager::Init();
32 $session = HttpVars::getSession();
33 if( empty( $session["SessionInfo"] ) ) {
34 $session["SessionInfo"] = new SessionInfo();
35 HttpVars::setSession( $session );
38 // load the plugins, this needs to be done *before* we call the
39 // Controller::process() method, as some of the plugins _might_
40 // add new actions to the controller
41 $pluginManager =& PluginManager::getPluginManager();
42 $pluginManager->loadPlugins();
44 // and call the controller
45 $controller->process( HttpVars::getRequest());