From 28fe12956dc9dc2baa048bc40143e2dbacd7663e Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 30 Apr 2006 12:19:11 +0000 Subject: - use php_uname('n') instead of posix_uname and HTTP_HOST - updated the authors file a bit git-svn-id: file:///svn/phpbb/trunk@5866 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_messenger.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'phpBB/includes/functions_messenger.php') diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index a314c5edef..db647aba60 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -915,7 +915,7 @@ class smtp_class global $user; $err_msg = ''; - $local_host = (empty($user->page)) ? 'localhost' : $user->host; + $local_host = (empty(php_uname('n'))) ? 'localhost' : php_uname('n'); // If we are authenticating through pop-before-smtp, we // have to login ones before we get authenticated @@ -966,12 +966,7 @@ class smtp_class $available_methods = explode(' ', $this->commands['AUTH']); // Define the auth ordering if the default auth method was not found - $auth_methods = array('PLAIN', 'LOGIN', 'CRAM-MD5'); - if (function_exists('posix_uname')) - { - $auth_methods[] = 'DIGEST-MD5'; - } - + $auth_methods = array('PLAIN', 'LOGIN', 'CRAM-MD5', 'DIGEST-MD5'); $method = ''; if (in_array($default_auth_method, $available_methods)) @@ -1148,8 +1143,7 @@ class smtp_class // Realm if (empty($tokens['realm'])) { - $uname = posix_uname(); - $tokens['realm'] = $uname['nodename']; + $tokens['realm'] = php_uname('n'); } // Maxbuf -- cgit v1.2.1