From af4dcc229dd8ac5f0963adbfa434afc45d1a3ce2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 28 Jul 2003 23:43:47 +0000 Subject: [PATCH] Added the option of not displaying email addresses. svn path=/trunk/boinc/; revision=1842 --- html/user/view_profile.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/html/user/view_profile.php b/html/user/view_profile.php index 9a2d8f73c1..b920dad5c7 100644 --- a/html/user/view_profile.php +++ b/html/user/view_profile.php @@ -66,7 +66,8 @@ function show_profile_summary() { global $user; global $profile_info; global $can_edit; - + + echo " \n \n

$user->name

"; @@ -85,9 +86,11 @@ echo "
\n"; echo " -Country: ", $user->country, "  Language: ", $profile_info['language'], "
-Email: email_addr, "\">", $user->email_addr, "
-Total Credit: ", $user->total_credit, "
"; +Country: ", $user->country, "  Language: ", $profile_info['language'], "
"; + if (!$profile_info['hide_email']) { + echo "Email: email_addr, "\">", $user->email_addr, "
"; + } + echo "Total Credit: ", $user->total_credit, "
"; if ($user->teamid) { $result = mysql_query("select * from team where id = $user->teamid");