1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

Added admin enabling of email form

git-svn-id: file:///svn/phpbb/trunk@1320 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-11-15 18:38:23 +00:00
parent e4c8d6e886
commit f27bec1dab
10 changed files with 53 additions and 13 deletions

View File

@@ -258,12 +258,12 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
$percentage = 0;
}
if( $profiledata['user_viewemail'] && $profiledata['user_email'] != "" )
if( !empty($profiledata['user_viewemail']) )
{
$email_profile = append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL . "=" . $profiledata['user_id']);
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL ."=" . $profiledata['user_id']) : "mailto:" . $profiledata['user_email'];
$email = "<a href=\"$email_profile\">" . $lang['Send_email'] . "</a>";
$email_img = "<a href=\"$email_profile\"><img src=\"" . $images['icon_email'] . "\" alt=\"" . $lang['Send_email'] . " " . $profiledata['username'] . "\" border=\"0\" /></a>";
$email = "<a href=\"$email_uri\">" . $lang['Send_email'] . "</a>";
$email_img = "<a href=\"$email_uri\"><img src=\"" . $images['icon_email'] . "\" alt=\"" . $lang['Send_email'] . " " . $profiledata['username'] . "\" border=\"0\" /></a>";
}
else
{