cvs: pearweb /include pear-format-html.php /public_html accounts.php

From: Date: Tue, 08 Jun 2004 16:13:52 +0000
Subject: cvs: pearweb /include pear-format-html.php /public_html accounts.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-20360@lists.php.net to get a copy of this message
danielc Tue Jun 8 12:13:52 2004 EDT Modified files: /pearweb/include pear-format-html.php /pearweb/public_html accounts.php Log: Provide the public a link to accounts and make email addresses only available if logged in. http://cvs.php.net/diff.php/pearweb/include/pear-format-html.php?r1=1.104&r2=1.105&ty=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.104 pearweb/include/pear-format-html.php:1.105 --- pearweb/include/pear-format-html.php:1.104 Mon Jun 7 15:04:41 2004 +++ pearweb/include/pear-format-html.php Tue Jun 8 12:13:52 2004 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.104 2004/06/07 19:04:41 mj Exp $ + $Id: pear-format-html.php,v 1.105 2004/06/08 16:13:52 danielc Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -97,8 +97,8 @@ init_auth_user(); if (!empty($auth_user)) { if (!empty($auth_user->registered)) { - global $developer_menu; if (auth_check('pear.dev')) { + global $developer_menu; $SIDEBAR_DATA .= draw_navigation($developer_menu, 'Developers:'); } } @@ -106,6 +106,10 @@ global $admin_menu; $SIDEBAR_DATA .= draw_navigation($admin_menu, 'Administrators:'); } + } else { + global $developer_menu; + $tmp = array_slice($developer_menu, 0, 1); + $SIDEBAR_DATA .= draw_navigation($tmp, 'Developers:'); } } http://cvs.php.net/diff.php/pearweb/public_html/accounts.php?r1=1.11&r2=1.12&ty=u Index: pearweb/public_html/accounts.php diff -u pearweb/public_html/accounts.php:1.11 pearweb/public_html/accounts.php:1.12 --- pearweb/public_html/accounts.php:1.11 Wed Aug 20 05:20:31 2003 +++ pearweb/public_html/accounts.php Tue Jun 8 12:13:52 2004 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: accounts.php,v 1.11 2003/08/20 09:20:31 mj Exp $ + $Id: accounts.php,v 1.12 2004/06/08 16:13:52 danielc Exp $ */ response_header("Accounts"); @@ -128,7 +128,10 @@ print " <td>" . make_link("/user/" . $handle, $handle) . "</td>\n"; print " <td>$name</td>\n"; - if ($showemail) { + if ($showemail && + !empty($auth_user) && + !empty($auth_user->registered)) + { print " <td><a href=\"mailto:$email\">$email</a></td>\n"; } else { print " <td>(not shown)</td>\n";

« previous php.pear.cvs (#20360) next »