diff options
Diffstat (limited to 'include/page_tail.php')
-rw-r--r-- | include/page_tail.php | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/include/page_tail.php b/include/page_tail.php index f2a719e3d..20c66be0d 100644 --- a/include/page_tail.php +++ b/include/page_tail.php @@ -36,6 +36,19 @@ $template->assign_vars( 'L_TITLE_MAIL' => $lang['title_send_mail'], 'L_POWERED_BY'=>$lang['powered_by'] )); + +//--------------------------------------------------------------------- contact + +if (!$user['is_the_guest']) +{ + $template->assign_block_vars( + 'contact', + array( + 'MAIL' => get_webmaster_mail_address() + ) + ); +} + //------------------------------------------------------------- generation time if ($conf['show_gt']) { @@ -62,25 +75,6 @@ if ($conf['show_queries']) ); } -//--------------------------------------------------------------------- contact - -if (!$user['is_the_guest']) -{ - $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)); - - $template->assign_block_vars( - 'contact', - array( - 'MAIL' => $email - ) - ); -} - // // Generate the page // |