bump Smarty to 2.6.31
[lifetype/.git] / archives
1 <?php
2     if (!defined( "PLOG_CLASS_PATH" )) {
3         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
4     }
5
6         include_once( PLOG_CLASS_PATH."class/bootstrap.php" );  
7     lt_include( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
8     lt_include( PLOG_CLASS_PATH."class/net/prettyrequestparser.class.php" );
9         lt_include( PLOG_CLASS_PATH."class/net/requestgenerator.class.php" );
10         lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
11
12
13     // get the configuration data
14     $config =& Config::getConfig();
15     
16     // in order to maintain compatilibity with previous version, and the alternative
17     // format of search-engine friendly urls
18     if( $config->getValue( "request_format_mode" ) == SEARCH_ENGINE_FRIENDLY_MODE ) {
19                 $server = HttpVars::getServer();
20                 $parser = new PrettyRequestParser( "archives", $server["PATH_INFO"]);
21                 $result = $parser->parse();
22                 HttpVars::setRequest( $result );
23                 lt_include( PLOG_CLASS_PATH."index.php" );
24         }
25         else {
26                 lt_include( PLOG_CLASS_PATH."blog.php" );       
27         }
28 ?>