rss hack for full content migration
[lifetype/.git] / rss2.php
1 <?php
2
3     define('TSUNG', 1);
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/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" );
15
16     // create our own action map
17     $actionMap = Array( "Default" => "RssAction" );
18     $controller = new Controller( $actionMap, "op" );
19         
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" );
25                 die();
26         }
27
28     //
29     // if there is no session object, we better create one
30     //
31     SessionManager::Init();
32     $session = HttpVars::getSession();
33     if( empty( $session["SessionInfo"] ) ) {
34         $session["SessionInfo"] = new SessionInfo();
35         HttpVars::setSession( $session );
36     }
37         
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();      
43
44     // and call the controller
45     $controller->process( HttpVars::getRequest());
46 ?>