cvs: pearweb /include layout.php /public_html package-info.php /public_html/bugs index.php search.php /public_html/bugs/include functions.inc
| From: | Tomas V.V.Cox | Date: | Sun, 14 Sep 2003 14:44:08 +0000 |
| Subject: | cvs: pearweb /include layout.php /public_html package-info.php /public_html/bugs index.php search.php /public_html/bugs/include functions.inc | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12727@lists.php.net to get a copy of this message | ||
cox Sun Sep 14 10:44:08 2003 EDT
Modified files:
/pearweb/include layout.php
/pearweb/public_html package-info.php
/pearweb/public_html/bugs index.php search.php
/pearweb/public_html/bugs/include functions.inc
Log:
more bug system integration works
# There is a new function make_bug_link() in case
# someone need to link to the package bug page
Index: pearweb/include/layout.php
diff -u pearweb/include/layout.php:1.69 pearweb/include/layout.php:1.70
--- pearweb/include/layout.php:1.69 Sun Sep 14 04:19:26 2003
+++ pearweb/include/layout.php Sun Sep 14 10:44:05 2003
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: layout.php,v 1.69 2003/09/14 08:19:26 mj Exp $
+ $Id: layout.php,v 1.70 2003/09/14 14:44:05 cox Exp $
*/
if (empty($prevsearch)) $prevsearch = '';
@@ -142,7 +142,24 @@
echo make_link($url, $linktext, $target, $extras);
}
+// make_bug_link()
+// creates a link for the bug system
+function make_bug_link($package, $type = 'list', $linktext = false) {
+ switch ($type) {
+ case 'list':
+ if (!$linktext) {
+ $linktext = 'Package Bugs';
+ }
+ return
make_link('/bugs/search.php?cmd=display&status=Open&bug_type[]='.$package,
$linktext);
+ case 'report':
+ if (!$linktext) {
+ $linktext = 'Report a new bug';
+ }
+ return make_link("/bugs/report.php?package=$package", $linktext);
+ }
+
+}
// commonheader()
//
@@ -203,6 +220,8 @@
print_link('/packages.php', 'Packages', false,
'class="menuBlack"');
echo delim();
print_link('/support.php','Support',false,'class="menuBlack"');
+ echo delim();
+ print_link('/bugs/','Bugs',false,'class="menuBlack"');
?> <br />
<?php spacer(2,2); ?><br />
</td>
Index: pearweb/public_html/package-info.php
diff -u pearweb/public_html/package-info.php:1.48 pearweb/public_html/package-info.php:1.49
--- pearweb/public_html/package-info.php:1.48 Fri Sep 12 08:43:15 2003
+++ pearweb/public_html/package-info.php Sun Sep 14 10:44:06 2003
@@ -14,8 +14,9 @@
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Martin Jansen <mj@php.net> |
+ | Tomas V.V.Cox <cox@idecnet.com> |
+----------------------------------------------------------------------+
- $Id: package-info.php,v 1.48 2003/09/12 12:43:15 mj Exp $
+ $Id: package-info.php,v 1.49 2003/09/14 14:44:06 cox Exp $
*/
require_once "Damblan/URL.php";
@@ -196,7 +197,7 @@
print '[ ' . make_link($cvs_link, 'CVS Web', 'top') . '
]';
}
print ' </td>';
-print '<td align="center">[ ' .
make_link('/bugs/search.php?cmd=display&status=Open&bug_type[]='.$pkg['name'],
'Package Bugs') . ' ]</td>';
+print '<td align="center">[ ' . make_bug_link($pkg['name']) .
' ]</td>';
if (!empty($doc_link)) {
print '<td align="center">[ ' . make_link($doc_link, "View
documentation") . ' ]</td>';
} else {
Index: pearweb/public_html/bugs/index.php
diff -u pearweb/public_html/bugs/index.php:1.2 pearweb/public_html/bugs/index.php:1.3
--- pearweb/public_html/bugs/index.php:1.2 Sun Sep 14 09:44:03 2003
+++ pearweb/public_html/bugs/index.php Sun Sep 14 10:44:07 2003
@@ -14,19 +14,33 @@
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Martin Jansen <mj@php.net> |
+ | Tomas V.V.Cox <cox@idecnet.com> |
+----------------------------------------------------------------------+
- $Id: index.php,v 1.2 2003/09/14 13:44:03 cox Exp $
+ $Id: index.php,v 1.3 2003/09/14 14:44:07 cox Exp $
*/
response_header("Bugs");
?>
-<h1>Bugs</h1>
-
+<h1>PEAR Bug Tracking System</h1>
+<p>The following options are avaible:</p>
<ul>
- <li><?php print_link("search.php", "Search for existing bugs");
?></li>
- <li><?php print_link("report.php", "Report a new bug");
?></li>
+ <li><?php print_link('/bugs/search.php', 'Search for <b>existing
bugs</b>'); ?></li>
+ <li>Report a new bug for the:
+ <?php print make_bug_link('Web Site', 'report', '<b>Web
Site</b>');?>,
+ <?php print make_bug_link('Documentation', 'report',
'<b>Documentation</b>');?> or
+ <?php print make_bug_link('Bug System', 'report', '<b>Bug
System</b>');?>
+ </li>
+ <li>If you want to report a bug for a <b>specific package</b>, please go to the
+ package home using the <?php print_link('/packages.php', 'Browse
packages');?> tool
+ or the package <?php print_link('/pacakge-search.php', 'Search System');
?>.
+ </li>
</ul>
+<p>If you need support or you don't really know if it is a bug or not, please
+use our <? print_link('/support.php', 'support channels');?>.</p>
+<p>Before submitting a bug, please make sure nobody has already reported it.
+Read our tips on how to <?php print_link('http://bugs.php.net/how-to-report.php',
'report a bug that someone will want to help fix', 'top');?>.
+</p>
<?php
response_footer();
-?>
\ No newline at end of file
+?>
Index: pearweb/public_html/bugs/search.php
diff -u pearweb/public_html/bugs/search.php:1.5 pearweb/public_html/bugs/search.php:1.6
--- pearweb/public_html/bugs/search.php:1.5 Sun Sep 14 09:33:49 2003
+++ pearweb/public_html/bugs/search.php Sun Sep 14 10:44:07 2003
@@ -170,7 +170,9 @@
"&boolean=" . BOOLEAN_SEARCH .
"&author_email=". urlencode(stripslashes($author_email)) .
"&bug_age=$bug_age&by=$by&order_by=$order_by&direction=$direction&phpver=$phpver&limit=$limit&assign=$assign";
- show_bugs_menu($bug_type[0]);
+ if (isset($bug_type) && count($bug_type) == 1) {
+ show_bugs_menu($bug_type[0]);
+ }
?>
<table align="center" border="0" cellspacing="2"
width="95%">
<?php show_prev_next($begin,$rows,$total_rows,$link,$limit);?>
Index: pearweb/public_html/bugs/include/functions.inc
diff -u pearweb/public_html/bugs/include/functions.inc:1.3
pearweb/public_html/bugs/include/functions.inc:1.4
--- pearweb/public_html/bugs/include/functions.inc:1.3 Wed Sep 10 22:43:42 2003
+++ pearweb/public_html/bugs/include/functions.inc Sun Sep 14 10:44:08 2003
@@ -591,6 +591,9 @@
// PEAR Related only
function show_bugs_menu($pkgname)
{
+ if (in_array($pkgname, array('Web Site', 'Documentation', 'Bug
System'))) {
+ return;
+ }
echo '<table width="100%" align="center"
border="0"><tr><td>';
echo make_link("/package-info.php?package=$pkgname", "Package home");
echo " | ";