cvs: pearweb /public_html/bugs bug.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Tue, 29 Jun 2004 18:12:11 +0000 |
| Subject: | cvs: pearweb /public_html/bugs bug.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21266@lists.php.net to get a copy of this message | ||
dufuz Tue Jun 29 14:12:11 2004 EDT
Modified files:
/pearweb/public_html/bugs bug.php
Log:
Added &maintain to the links.
http://cvs.php.net/diff.php/pearweb/public_html/bugs/bug.php?r1=1.49&r2=1.50&ty=u
Index: pearweb/public_html/bugs/bug.php
diff -u pearweb/public_html/bugs/bug.php:1.49 pearweb/public_html/bugs/bug.php:1.50
--- pearweb/public_html/bugs/bug.php:1.49 Thu Jun 24 19:56:03 2004
+++ pearweb/public_html/bugs/bug.php Tue Jun 29 14:12:11 2004
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2004 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: bug.php,v 1.49 2004/06/24 23:56:03 danielc Exp $
+ * @version $Id: bug.php,v 1.50 2004/06/29 18:12:11 dufuz Exp $
*/
/*
@@ -359,7 +359,15 @@
</tr>
<tr id="submitter">
<th class="details">From:</th>
- <td colspan="3"><?php echo
spam_protect(htmlspecialchars($bug['email'])) ?></td>
+ <td colspan="3">
+ <?php
+ $handle =& $dbh->getOne('SELECT handle FROM users WHERE email =
'.$dbh->quoteSmart($bug['email']).' AND showemail = 0');
+ if (!is_null($handle)) {
+ echo $handle;
+ } else {
+ echo spam_protect(htmlspecialchars($bug['email']));
+ }
+ ?></td>
</tr>
<tr id="categorization">
<th class="details">Status:</th>
@@ -805,10 +813,16 @@
function output_note($com_id, $ts, $email, $comment)
{
- global $edit, $id, $trusted_developers, $user;
+ global $edit, $id, $trusted_developers, $user, $dbh;
echo '<div class="comment">';
- echo "<b>[",format_date($ts),"] ",
spam_protect(htmlspecialchars($email)), "</b>\n";
+ echo "<b>[",format_date($ts),"] ";
+ $handle =& $dbh->getOne('SELECT handle FROM users WHERE email =
'.$dbh->quoteSmart($email).' AND showemail = 0');
+ if (!is_null($handle)) {
+ echo $handle."</b>\n";
+ } else {
+ echo spam_protect(htmlspecialchars($email))."</b>\n";
+ }
echo ($edit == 1 && $com_id !== 0 && in_array($user, $trusted_developers)) ?
"<a
href=\"{$_SERVER['PHP_SELF']}?id=$id&edit=1&delete_comment=$com_id\">[delete]</a>\n"
: '';
echo '<pre class="note">';
$note =
addlinks(preg_replace("/(\r?\n){3,}/","\n\n",wordwrap($comment,72,"\n",1)));