For Programmers: Free Programming Magazines  


Home > Archive > PHP Mirrors > September 2006 > cvs: php-bugs-web / bug.php search.php /include layout.inc









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2006-09-28, 7:58 am

bjori Thu Sep 28 11:10:10 2006 UTC

Modified files:
/php-bugs-web/include layout.inc
/php-bugs-web bug.php search.php
Log:
Add rss link at the bottom
fix double / in feed url


http://cvs.php.net/viewvc.cgi/php-b...9&diff_format=u
Index: php-bugs-web/include/layout.inc
diff -u php-bugs-web/include/layout.inc:1.28 php-bugs-web/include/layout.inc:1.29
--- php-bugs-web/include/layout.inc:1.28 Thu Sep 28 09:47:31 2006
+++ php-bugs-web/include/layout.inc Thu Sep 28 11:10:10 2006
@@ -238,7 +238,7 @@
#
#

-function commonFooter() {
+function commonFooter($rss = false) {
global $HTTP_SERVER_VARS;
?>
</div>
@@ -246,6 +246,7 @@
<tr class="headersep"><td><?php spacer(1,1);?><br></td></tr>
<tr class="headerbottom">
<td align="right" valign="bottom"><?
+ if($rss) { print_link($rss, "RSS feed", false, 'class="menuWhite"'); echo delim(); }
print_link('/source.php?url='.$HTTP_SERVER_VARS['SCRIPT_NAME'], 'show source', false, 'class="menuWhite"');
?> <br>
</td>
http://cvs.php.net/viewvc.cgi/php-b...1&diff_format=u
Index: php-bugs-web/bug.php
diff -u php-bugs-web/bug.php:1.80 php-bugs-web/bug.php:1.81
--- php-bugs-web/bug.php:1.80 Thu Sep 28 09:47:31 2006
+++ php-bugs-web/bug.php Thu Sep 28 11:10:10 2006
@@ -206,7 +206,7 @@
exit;
}

-commonHeader("#$id: ".htmlspecialchars($bug['sdesc']), true, "http://bugs.php.net/rss/bug.php?id=$id&format=rss");
+commonHeader("#$id: ".htmlspecialchars($bug['sdesc']), true, "http://bugs.php.net/rss/bug.php?id=$id&format=rss");

/* DISPLAY BUG */
if ($thanks == 1 || $thanks == 2) {
@@ -522,7 +522,7 @@
}
}

-commonFooter();
+commonFooter("http://bugs.php.net/rss/bug.php?id=$id&format=rss");

function output_note($com_id, $ts, $email, $comment)
{
http://cvs.php.net/viewvc.cgi/php-b...4&diff_format=u
Index: php-bugs-web/search.php
diff -u php-bugs-web/search.php:1.63 php-bugs-web/search.php:1.64
--- php-bugs-web/search.php:1.63 Thu Sep 28 09:47:31 2006
+++ php-bugs-web/search.php Thu Sep 28 11:10:10 2006
@@ -161,7 +161,7 @@
"&author_email=". urlencode(stripslashes($author_email)) .
"&bug_age=$bug_age&by=$by&order_by=$order_by&direction=$direction&phpver=$phpver&limit=$limit&assign=$assign";

- commonHeader("Search", true, "http://bugs.php.net/rss/".$link);
+ 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);?>
@@ -203,7 +203,7 @@
?>
</table>
<?php
- commonFooter();
+ commonFooter("http://bugs.php.net/rss".$link);
exit;
}
}
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com