[ Index ] |
|
Code source de LifeType 1.2.4 |
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/net/http/httpvars.class.php" ); 9 lt_include( PLOG_CLASS_PATH."class/config/config.class.php" ); 10 lt_include( PLOG_CLASS_PATH."class/net/request.class.php" ); 11 lt_include( PLOG_CLASS_PATH."class/net/baserequestgenerator.class.php" ); 12 13 /** 14 * Implements an error handler for 401, 403 and 404 errors so that 15 * if the user types a user name after the url, and Apache complains, 16 * thanks to the ErrorDocument directive this handler will receive the 17 * request and we will be able to perform a redirectiom 18 * 19 * To get this to work, we need a provider which allows to use 20 * .htaccess files in their accounts and at the same time, allows 21 * to have ErrorDocument directives in the .htaccess file. 22 * 23 * This should be the content of the file: 24 * 25 * ErrorDocument 401 /plog/error.php 26 * ErrorDocument 403 /plog/error.php 27 * ErrorDocument 404 /plog/error.php 28 * 29 * If LifeType is running somewhere else other than /plog/, then that 30 * should be changed since an absolute URL is required. 31 */ 32 $config =& Config::getConfig(); 33 34 if( $config->getValue( "request_format_mode" ) == SEARCH_ENGINE_FRIENDLY_MODE ) { 35 lt_include( PLOG_CLASS_PATH."class/net/prettyrequestparser.class.php" ); 36 $server = HttpVars::getServer(); 37 $parser = new PrettyRequestParser( "default", $server["REQUEST_URI"]); 38 $result = $parser->parse(); 39 HttpVars::setRequest( $result ); 40 lt_include( PLOG_CLASS_PATH."index.php" ); 41 } 42 else { 43 lt_include( PLOG_CLASS_PATH."blog.php" ); 44 } 45 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |