aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-11-15 18:38:23 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-11-15 18:38:23 +0000
commitf27bec1dab07a86da2cdf8cdbbf5b61c3def7404 (patch)
tree0d11282805b9f0ec69297e5055717d1bb9e96836 /phpBB/profile.php
parente4c8d6e886a5d65736841ea29325cfac80883bbd (diff)
downloadforums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.tar
forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.tar.gz
forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.tar.bz2
forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.tar.xz
forums-f27bec1dab07a86da2cdf8cdbbf5b61c3def7404.zip
Added admin enabling of email form
git-svn-id: file:///svn/phpbb/trunk@1320 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index 471b0caf76..8b6c5649ef 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -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&amp;" . POST_USERS_URL . "=" . $profiledata['user_id']);
+ $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&amp;" . 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
{