getValue( "request_format_mode" ) == SEARCH_ENGINE_FRIENDLY_MODE ) { lt_include( PLOG_CLASS_PATH."error.php" ); die(); } $server = HttpVars::getServer(); $requestParser = new CustomUrlHandler(); // TODO: should check the return value of process() and // then display an error page instead of the home page $requestParser->process($server["REQUEST_URI"]); $vars = $requestParser->getVars(); $params = $requestParser->getParams(); $includeFile = $requestParser->getIncludeFile(); // // fill in the request with the parameters we need // $vars["op"] = "op"; foreach( $vars as $key => $value ) { if( is_array( $params ) && array_key_exists( $key, $params ) && $params["$key"] != "" ) HttpVars::setRequestValue( $vars["$key"], $params["$key"] ); } // and transfer execution to the main script lt_include( PLOG_CLASS_PATH.$includeFile ); ?>