aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php19
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;
+ }
+}
+
?>