diff options
author | Ermal <eri@pfsense.org> | 2010-12-10 22:51:44 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-10 22:51:44 +0000 |
commit | ca092d2673990d0d28a20085823d3b2f930d4ce6 (patch) | |
tree | 6507a6103de6d6835cc983874f82993728e4d228 | |
parent | 37d202a3bd354e553b63ab9b265bd68dafef7fc5 (diff) | |
download | pfsense-ca092d2673990d0d28a20085823d3b2f930d4ce6.zip pfsense-ca092d2673990d0d28a20085823d3b2f930d4ce6.tar.gz |
Correct error messages.
-rw-r--r-- | etc/inc/xmlrpc.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc index c1e29a8..ef4fc19 100644 --- a/etc/inc/xmlrpc.inc +++ b/etc/inc/xmlrpc.inc @@ -107,18 +107,18 @@ function php_value_to_xmlrpc($value, $force_array = false) { * the array before returning it. */ function xmlrpc_auth(&$params) { - global $config; + global $config, $_SERVER; if (!is_array($config['system']['user'])) { array_shift($params); unset($params['xmlrpcauth']); - log_error("webConfigurator authentication error for 'admin' during sync settings."); + log_error("webConfigurator authentication error for 'admin' from {$_SERVER['REMOTE_ADDR']} during sync settings."); return false; } if (!isset($config['system']['user'][0]['password'])) { array_shift($params); unset($params['xmlrpcauth']); - log_error("webConfigurator authentication error for 'admin' during sync settings."); + log_error("webConfigurator authentication error for 'admin' from {$_SERVER['REMOTE_ADDR']} during sync settings."); return false; } @@ -135,7 +135,7 @@ function xmlrpc_auth(&$params) { array_shift($params); unset($params['xmlrpcauth']); - log_error("webConfigurator authentication error for 'admin' during sync settings."); + log_error("webConfigurator authentication error for 'admin' from {$_SERVER['REMOTE_ADDR']} during sync settings."); return false; } |