00001 <?php 00002 00003 if (!defined( "PLOG_CLASS_PATH" )) { 00004 define( "PLOG_CLASS_PATH", dirname(__FILE__)."/"); 00005 } 00006 00007 include_once( PLOG_CLASS_PATH."class/bootstrap.php" ); 00008 lt_include( PLOG_CLASS_PATH."class/config/config.class.php" ); 00009 lt_include( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" ); 00010 lt_include( PLOG_CLASS_PATH."class/net/customurlhandler.class.php" ); 00011 lt_include( PLOG_CLASS_PATH."class/net/request.class.php" ); 00012 lt_include( PLOG_CLASS_PATH."class/net/requestgenerator.class.php" ); 00013 00014 // get the configuration data 00015 $config =& Config::getConfig(); 00016 00017 // in order to maintain compatilibity with previous version, and the alternative 00018 // format of search-engine friendly urls 00019 if( $config->getValue( "request_format_mode" ) == SEARCH_ENGINE_FRIENDLY_MODE ) { 00020 lt_include( PLOG_CLASS_PATH."error.php" ); 00021 die(); 00022 } 00023 00024 $server = HttpVars::getServer(); 00025 $requestParser = new CustomUrlHandler(); 00026 $requestParser->process( $server["REQUEST_URI"] ); 00027 $vars = $requestParser->getVars(); 00028 $params = $requestParser->getParams(); 00029 $includeFile = $requestParser->getIncludeFile(); 00030 00031 // 00032 // fill in the request with the parameters we need 00033 // 00034 $vars["op"] = "op"; 00035 foreach( $vars as $key => $value ) { 00036 if( is_array( $params ) && array_key_exists( $key, $params ) && $params["$key"] != "" ) 00037 HttpVars::setRequestValue( $vars["$key"], $params["$key"] ); 00038 } 00039 00040 // and transfer execution to the main script 00041 lt_include( PLOG_CLASS_PATH.$includeFile ); 00042 ?>
| © 2008 LifeType. All rights reserved. | International | Germany | Taiwan | Russia | Ukraine | Sitemap | Contact | Hosting by Lime Daley |