diff options
author | rub <rub@piwigo.org> | 2006-07-11 20:56:51 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-07-11 20:56:51 +0000 |
commit | c13dc6350ddd6a2ddb374fd4252e204b12d3b660 (patch) | |
tree | 03eac2be8b0f68799360c211bdf400a60240eb38 /include | |
parent | 8078daf5cd99627ada6d47c968f4be37062b4bf6 (diff) |
Resolved Issue ID 0000456, 0000457, 0000459, 0000465:
o Fix bugs adviser mode
Merge BSF r1457:1458 into branch-1_6
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1459 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r-- | include/functions_user.inc.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index a2ca7086e..a801fbc19 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -647,4 +647,23 @@ function is_adviser() return ($user['adviser'] == 'true'); } + +/* + * Return mail address as display text + * @return string +*/ +function get_email_address_as_display_text($email_address) +{ + global $conf; + + if (is_adviser()) + { + return 'adviser.mode@'.$_SERVER['SERVER_NAME']; + } + else + { + return $email_address; + } +} + ?> |