cvs: php-news-web / common.inc
| From: | jim winstead | Date: | Wed, 23 Jan 2002 22:44:48 +0000 |
| Subject: | cvs: php-news-web / common.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8290@lists.php.net to get a copy of this message | ||
jimw Wed Jan 23 17:44:48 2002 EDT
Modified files:
/php-news-web common.inc
Log:
link to cvs repository for source, handle encoded subject
Index: php-news-web/common.inc
diff -u php-news-web/common.inc:1.9 php-news-web/common.inc:1.10
--- php-news-web/common.inc:1.9 Wed Aug 22 21:20:31 2001
+++ php-news-web/common.inc Wed Jan 23 17:44:48 2002
@@ -1,4 +1,4 @@
-<?php
+<?php /* vim: set ft=php : */
function head($title="php news") {?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
@@ -55,7 +55,7 @@
<hr noshade="noshade" size="1" width="60%" align="right"
/>
<div align="right">
<small>
-written by <a href="http://trainedmonkey.com/">jim
winstead</a>. no rights reserved. (<a href="snapshot.tar.gz">source code
snapshot</a>)
+written by <a href="http://trainedmonkey.com/">jim
winstead</a>. no rights reserved. (<a href="http://cvs.php.net/cvs.php/php-news-web">source
code</a>)
</small>
</div>
</body>
@@ -89,6 +89,7 @@
}
function format_subject($s) {
+ $s = preg_replace("/=\\?(.+?)\\?([qb])\\?(.+?)\\?=/ie",
"decode_header('\\1','\\2','\\3')", $s);
$s = preg_replace("/^(Re: *)?\[(PHP|PEAR)(-.*)?\] /i", "\\1", $s);
return htmlspecialchars($s);
}