[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> rss.php (source)

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


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics