cvs: pearweb /include pear-format-html.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 13 Jan 2008 00:55:16 +0000 |
| Subject: | cvs: pearweb /include pear-format-html.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-50260@lists.php.net to get a copy of this message | ||
dufuz Sun Jan 13 00:55:16 2008 UTC
Modified files:
/pearweb/include pear-format-html.php
Log:
removing display_user_notes since we aren't even using it
http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.245&r2=1.246&diff_format=u
Index: pearweb/include/pear-format-html.php
diff -u pearweb/include/pear-format-html.php:1.245 pearweb/include/pear-format-html.php:1.246
--- pearweb/include/pear-format-html.php:1.245 Sun Jan 13 00:09:32 2008
+++ pearweb/include/pear-format-html.php Sun Jan 13 00:55:16 2008
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-format-html.php,v 1.245 2008/01/13 00:09:32 dufuz Exp $
+ $Id: pear-format-html.php,v 1.246 2008/01/13 00:55:16 dufuz Exp $
*/
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler');
@@ -715,7 +715,7 @@
$html .= ' :: <strong>' . $row['name'] .
'</strong>';
}
}
- print $html;
+ echo $html;
}
/**
@@ -801,32 +801,6 @@
return ($link != '' ? '<a href="' . $link . '">'
. $license . "</a>\n" : $license);
}
-function display_user_notes($user, $width = '50%')
-{
- global $dbh;
- $bb = new BorderBox("Notes for user $user", $width);
- $notes = $dbh->getAssoc("SELECT id,nby,ntime,note FROM notes
- WHERE uid = ? ORDER BY ntime", true, array($user));
- if (!empty($notes)) {
- echo '<table cellpadding="2" cellspacing="0"
style="border: 0px;">' . "\n";
- foreach ($notes as $nid => $data) {
- echo " <tr>\n";
- echo " <td>\n";
- echo " <strong>{$data['nby']}
{$data['ntime']}:</strong>";
- echo "<br />\n";
- echo " ".htmlspecialchars($data['note'])."\n";
- echo " </td>\n";
- echo " </tr>\n";
- echo " <tr><td> </td></tr>\n";
- }
- echo "</table>\n";
- } else {
- echo 'No notes.';
- }
- $bb->end();
- return sizeof($notes);
-}
-
/**
* Create link to the account information page and to the user's wishlist
*