Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23817
Modified Files:
NEWS htaccess.rewrite.tpl index.php serendipity_config.inc.php
serendipity_functions.inc.php
Log Message:
New Blog->PDF convert plugin. Experimental, proof-of-concept. Uses
fpdf-library.
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- NEWS 5 Jul 2004 19:41:53 -0000 1.167
+++ NEWS 9 Jul 2004 09:34:52 -0000 1.168
@@ -3,7 +3,12 @@
Version 0.7 ()
------------------------------------------------------------------------
- * Fixed bug causing the .htaccess file to never get updated when
+ * New plugin 'serendipity_event_blogpdf'. Will export your blog
+ as PDF file. Proof-of-concept, no nice formatting, no images yet.
+ If you're using 'mod_rewrite' you need to update your .htaccess
+ file. (garvinhicking)
+
+ * Fixed bug causing the .htaccess file to never get updated when
changing rewrite method (tomsommer)
* Track Exits plugin: Now only uses the link id for link referal.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.322
retrieving revision 1.323
diff -u -d -r1.322 -r1.323
--- serendipity_functions.inc.php 7 Jul 2004 21:36:54 -0000 1.322
+++ serendipity_functions.inc.php 9 Jul 2004 09:34:52 -0000 1.323
@@ -1089,6 +1089,8 @@
<a href="<?php echo $serendipity['baseURL'] . $serendipity['indexFile'] . '?serendipity[page]=' . ($serendipity['GET']['page'] + 1) . $add_query; ?>"><?php echo NEXT_PAGE; ?> »</a>
<?php
}
+
+ serendipity_plugin_api::hook_event('entries_footer', $serendipity);
?>
</div>
<?php
Index: index.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/index.php,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- index.php 18 Jun 2004 16:53:26 -0000 1.40
+++ index.php 9 Jul 2004 09:34:52 -0000 1.41
@@ -147,6 +147,9 @@
} else if (preg_match(PAT_ARCHIVE, $uri)) {
$serendipity['GET']['action'] = 'archives';
include_once(S9Y_INCLUDE_PATH . 'serendipity_genpage.inc.php');
+} else if (preg_match(PAT_PLUGIN, $uri, $matches)) {
+ serendipity_plugin_api::hook_event('external_plugin', $matches[1]);
+ exit;
} else if (preg_match(PAT_CATEGORIES, $uri, $matches) ||
preg_match('@/(index\.(php|html))?@', $uri) ||
preg_match('@/(' . preg_quote($serendipity['indexFile']) . ')?@', $uri)) {
Index: htaccess.rewrite.tpl
===================================================================
RCS file: /cvsroot/php-blog/serendipity/htaccess.rewrite.tpl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- htaccess.rewrite.tpl 21 Jun 2004 14:55:31 -0000 1.10
+++ htaccess.rewrite.tpl 9 Jul 2004 09:34:52 -0000 1.11
@@ -17,6 +17,7 @@
RewriteRule ^{PAT_FEED} rss.php?file=$1&ext=$2
RewriteRule ^index\.(html?|php.?) {indexFile}?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
+RewriteRule ^plugin/(.*) {indexFile}?url=plugin/$1 [L,QSA]
RewriteRule (.*\.html?) {indexFile}?url=/$1 [L,QSA]
<Files *.tpl>
Index: serendipity_config.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_config.inc.php,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- serendipity_config.inc.php 21 Jun 2004 14:55:31 -0000 1.82
+++ serendipity_config.inc.php 9 Jul 2004 09:34:52 -0000 1.83
@@ -48,7 +48,7 @@
@define('PATH_ADMIN', 'admin');
@define('PATH_ENTRIES', 'entries');
@define('PATH_CATEGORIES', 'categories');
-
+@define('PATH_PLUGIN', 'plugin');
/* URI patterns
* Note that it's important to use @ as the pattern delimiter.
*/
@@ -63,6 +63,7 @@
@define('PAT_ENTRIES', '@/'.PATH_ENTRIES.'$@');
@define('PAT_ARCHIVE', '@/'.PATH_ARCHIVE.'$@');
@define('PAT_CATEGORIES', '@/'.PATH_CATEGORIES.'/(.*)@');
+@define('PAT_PLUGIN', '@/' . PATH_PLUGIN . '/(.*)@');
@define('USERLEVEL_ADMIN', 255);
@define('USERLEVEL_CHIEF', 1);
|