cvs: php-bugs-web / bug.php search.php /include layout.inc

From: Date: Thu, 28 Sep 2006 09:47:31 +0000
Subject: cvs: php-bugs-web / bug.php search.php /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32833@lists.php.net to get a copy of this message
bjori Thu Sep 28 09:47:31 2006 UTC Modified files: /php-bugs-web/include layout.inc /php-bugs-web bug.php search.php Log: implement feed autodiscovery http://cvs.php.net/viewvc.cgi/php-bugs-web/include/layout.inc?r1=1.27&r2=1.28&diff_format=u Index: php-bugs-web/include/layout.inc diff -u php-bugs-web/include/layout.inc:1.27 php-bugs-web/include/layout.inc:1.28 --- php-bugs-web/include/layout.inc:1.27 Sat Dec 31 22:46:28 2005 +++ php-bugs-web/include/layout.inc Thu Sep 28 09:47:31 2006 @@ -159,7 +159,7 @@ # # -function commonHeader($title = false, $showsearch = true) { +function commonHeader($title = false, $showsearch = true, $rss = false) { global $SIDEBAR_DATA; ?><html> @@ -168,6 +168,10 @@ <link rel="stylesheet" href="/style.css" /> <link rel="shortcut icon" href="/favicon.ico" /> <script type="text/javascript" src="util.js"></script> + <?php if($rss) { + printf('<link rel="alternate" type="application/rss+xml" title="PHP bugs%s" href="%s" />'."\n", $title ? ': '.$title : '', $rss); +} +?> </head> <body http://cvs.php.net/viewvc.cgi/php-bugs-web/bug.php?r1=1.79&r2=1.80&diff_format=u Index: php-bugs-web/bug.php diff -u php-bugs-web/bug.php:1.79 php-bugs-web/bug.php:1.80 --- php-bugs-web/bug.php:1.79 Mon Oct 10 06:51:49 2005 +++ php-bugs-web/bug.php Thu Sep 28 09:47:31 2006 @@ -206,7 +206,7 @@ exit; } -commonHeader("#$id: ".htmlspecialchars($bug['sdesc'])); +commonHeader("#$id: ".htmlspecialchars($bug['sdesc']), true, "http://bugs.php.net/rss/bug.php?id=$id&format=rss"); /* DISPLAY BUG */ if ($thanks == 1 || $thanks == 2) { http://cvs.php.net/viewvc.cgi/php-bugs-web/search.php?r1=1.62&r2=1.63&diff_format=u Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.62 php-bugs-web/search.php:1.63 --- php-bugs-web/search.php:1.62 Thu Sep 1 14:05:25 2005 +++ php-bugs-web/search.php Thu Sep 28 09:47:31 2006 @@ -11,8 +11,6 @@ exit; } -commonHeader("Search"); - $errors = array(); $warnings = array(); @@ -162,6 +160,8 @@ "&amp;boolean=" . BOOLEAN_SEARCH . "&amp;author_email=". urlencode(stripslashes($author_email)) . "&amp;bug_age=$bug_age&amp;by=$by&amp;order_by=$order_by&amp;direction=$direction&amp;phpver=$phpver&amp;limit=$limit&amp;assign=$assign"; + + commonHeader("Search", true, "http://bugs.php.net/rss/".$link); ?> <table align="center" border="0" cellspacing="2" width="95%"> <?php show_prev_next($begin,$rows,$total_rows,$link,$limit);?> @@ -208,7 +208,7 @@ } } } - +commonHeader("Search"); if ($errors) display_errors($errors); if ($warnings) display_warnings($warnings); ?>

« previous php.mirrors (#32833) next »