NewsFeaturesDownloadsDevelopmentSupportAbout Us

lifetype/branches/lifetype-1.0.6/rss.php

Go to the documentation of this file.
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/controller/controller.class.php" );
00008     include_once( PLOG_CLASS_PATH."class/net/http/session/sessioninfo.class.php" );
00009     include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
00010     include_once( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
00011         include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
00012 
00013     // create our own action map
00014     $actionMap = Array( "Default" => "RssAction" );
00015     $controller = new Controller( $actionMap, "op" );
00016         
00017         $request =& HttpVars::getRequest();
00018         if( isset($request["summary"])) {
00019                 $request["op"] = "rss";
00020                 HttpVars::setRequest( $request );
00021                 include_once( PLOG_CLASS_PATH."summary.php" );
00022                 die();
00023         }
00024 
00025     //
00026     // if there is no session object, we better create one
00027     //
00028     SessionManager::Init();
00029     $session = HttpVars::getSession();
00030     if( $session["SessionInfo"] == "" ) {
00031         $session["SessionInfo"] = new SessionInfo();
00032         HttpVars::setSession( $session );
00033     }
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     // and call the controller
00042     $controller->process( HttpVars::getRequest());
00043 ?>