-
Notifications
You must be signed in to change notification settings - Fork 2
/
get
28 lines (24 loc) · 1021 Bytes
/
get
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
<?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/net/http/httpvars.class.php" );
lt_include( PLOG_CLASS_PATH."class/net/prettyrequestparser.class.php" );
lt_include( PLOG_CLASS_PATH."class/net/requestgenerator.class.php" );
lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
// get the configuration data
$config =& Config::getConfig();
// in order to maintain compatilibity with previous version, and the alternative
// format of search-engine friendly urls
if( $config->getValue( "request_format_mode" ) == SEARCH_ENGINE_FRIENDLY_MODE ) {
$server = HttpVars::getServer();
$parser = new PrettyRequestParser( "get", $server["PATH_INFO"]);
$result = $parser->parse();
HttpVars::setRequest( $result );
lt_include( "resserver.php" );
}
else {
lt_include( PLOG_CLASS_PATH."blog.php" );
}
?>