[pLog-svn] r3172 - plog/trunk
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Sun Apr 2 21:15:56 GMT 2006
Author: pwestbro
Date: 2006-04-02 21:15:55 +0000 (Sun, 02 Apr 2006)
New Revision: 3172
Added:
plog/trunk/page
Modified:
plog/trunk/.htaccess
Log:
Added missing file that was causing paging not to work.
Modified: plog/trunk/.htaccess
===================================================================
--- plog/trunk/.htaccess 2006-04-01 08:36:52 UTC (rev 3171)
+++ plog/trunk/.htaccess 2006-04-02 21:15:55 UTC (rev 3172)
@@ -110,6 +110,10 @@
ForceType application/x-httpd-php
</Files>
+<Files page>
+ ForceType application/x-httpd-php
+</Files>
+
ErrorDocument 401 /plog/error.php
ErrorDocument 403 /plog/error.php
ErrorDocument 404 /plog/error.php
Added: plog/trunk/page
===================================================================
--- plog/trunk/page 2006-04-01 08:36:52 UTC (rev 3171)
+++ plog/trunk/page 2006-04-02 21:15:55 UTC (rev 3172)
@@ -0,0 +1,26 @@
+<?php
+ if (!defined( "PLOG_CLASS_PATH" )) {
+ define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
+ }
+
+ include_once( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
+ include_once( PLOG_CLASS_PATH."class/net/prettyrequestparser.class.php" );
+ include_once( PLOG_CLASS_PATH."class/net/requestgenerator.class.php" );
+ include_once( 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( "page", $server["PATH_INFO"]);
+ $result = $parser->parse();
+ HttpVars::setRequest( $result );
+ include_once( "index.php" );
+ }
+ else {
+ include_once( PLOG_CLASS_PATH."blog.php" );
+ }
+?>
More information about the pLog-svn
mailing list