diff options
Diffstat (limited to '')
-rw-r--r-- | include/functions.inc.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 28be6dd2a..cf865d6c8 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -953,4 +953,23 @@ function get_sql_search_clause($search_id) return $search_clause; } + +/** + * Returns webmaster mail address depending on $conf['webmaster_id'] + * + * @return string + */ +function get_webmaster_mail_address() +{ + global $conf; + + $query = ' +SELECT '.$conf['user_fields']['email'].' + FROM '.USERS_TABLE.' + WHERE '.$conf['user_fields']['id'].' = '.$conf['webmaster_id'].' +;'; + list($email) = mysql_fetch_array(pwg_query($query)); + + return $email; +} ?> |