-
Notifications
You must be signed in to change notification settings - Fork 2
/
rss.php
44 lines (37 loc) · 1.5 KB
/
rss.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
if (!defined( "PLOG_CLASS_PATH" )) {
define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
}
include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
lt_include( PLOG_CLASS_PATH."class/controller/controller.class.php" );
lt_include( PLOG_CLASS_PATH."class/net/http/session/sessioninfo.class.php" );
lt_include( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
lt_include( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
lt_include( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
// create our own action map
$actionMap = Array( "Default" => "RssAction" );
$controller = new Controller( $actionMap, "op" );
$request = HttpVars::getRequest();
if( isset($request["summary"])) {
$request["op"] = "rss";
HttpVars::setRequest( $request );
lt_include( PLOG_CLASS_PATH."summary.php" );
die();
}
//
// if there is no session object, we better create one
//
SessionManager::Init();
$session = HttpVars::getSession();
if( empty( $session["SessionInfo"] ) ) {
$session["SessionInfo"] = new SessionInfo();
HttpVars::setSession( $session );
}
// load the plugins, this needs to be done *before* we call the
// Controller::process() method, as some of the plugins _might_
// add new actions to the controller
$pluginManager =& PluginManager::getPluginManager();
$pluginManager->loadPlugins();
// and call the controller
$controller->process( HttpVars::getRequest());
?>