diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-04-29 13:14:33 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-04-29 13:14:33 +0000 |
| commit | 859902ea243824b48d2b67d806cd622746bed00f (patch) | |
| tree | f2b3d40656d471499fdf61389166f0818f88a168 /phpBB/includes/functions_messenger.php | |
| parent | 7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c (diff) | |
| download | forums-859902ea243824b48d2b67d806cd622746bed00f.tar forums-859902ea243824b48d2b67d806cd622746bed00f.tar.gz forums-859902ea243824b48d2b67d806cd622746bed00f.tar.bz2 forums-859902ea243824b48d2b67d806cd622746bed00f.tar.xz forums-859902ea243824b48d2b67d806cd622746bed00f.zip | |
reverting changes to the installer
do not introduce a function we never call outside of common.php
git-svn-id: file:///svn/phpbb/trunk@5859 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
| -rw-r--r-- | phpBB/includes/functions_messenger.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 8e20a418e2..a314c5edef 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -912,7 +912,10 @@ class smtp_class // Log into server and get possible auth codes if neccessary function log_into_server($hostname, $username, $password, $default_auth_method) { + global $user; + $err_msg = ''; + $local_host = (empty($user->page)) ? 'localhost' : $user->host; // If we are authenticating through pop-before-smtp, we // have to login ones before we get authenticated @@ -923,7 +926,7 @@ class smtp_class } // Try EHLO first - $this->server_send("EHLO [$hostname]"); + $this->server_send("EHLO [{$local_host}]"); if ($err_msg = $this->server_parse('250', __LINE__)) { // a 503 response code means that we're already authenticated @@ -933,7 +936,7 @@ class smtp_class } // If EHLO fails, we try HELO - $this->server_send("HELO [$hostname]"); + $this->server_send("HELO [{$local_host}]"); if ($err_msg = $this->server_parse('250', __LINE__)) { return ($this->numeric_response_code == 503) ? false : $err_msg; @@ -1148,7 +1151,7 @@ class smtp_class $uname = posix_uname(); $tokens['realm'] = $uname['nodename']; } - + // Maxbuf if (empty($tokens['maxbuf'])) { |
