on the data in the totacct table.
* Add a few comments in the tot_stats and monthly_tot_stats scripts
* Add support for ! in usernames in log_badlogins
+* Call gethostbyaddr with an @ in front to suppress error messages
Ver 1.61:
* Add a string encoder for greek
* If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
$acct_server = $da_name_cache[$acct_server];
if (!isset($acct_server)){
$acct_server = $row[NASIPAddress];
- $acct_server = gethostbyaddr($acct_server);
+ $acct_server = @gethostbyaddr($acct_server);
if (!isset($da_name_cache) && $config[general_use_session] == 'yes'){
$da_name_cache[$row[NASIPAddress]] = $acct_server;
session_register('da_name_cache');
if ($acct_server != ''){
$acct_server = $da_name_cache[$row[NASIPAddress]];
if (!isset($acct_server)){
- $acct_server = gethostbyaddr($row[NASIPAddress]);
+ $acct_server = @gethostbyaddr($row[NASIPAddress]);
if (!isset($da_name_cache) && $config[general_use_session] == 'yes'){
$da_name_cache[$row[NASIPAddress]] = $acct_server;
session_register('da_name_cache');
$lastlog_session_time_jvs = 1000 * $lastlog_session_time;
$lastlog_session_time = time2strclock($lastlog_session_time);
$lastlog_client_ip = $row['FramedIPAddress'];
- $lastlog_server_name = gethostbyaddr($lastlog_server_ip);
- $lastlog_client_name = gethostbyaddr($lastlog_client_ip);
+ $lastlog_server_name = @gethostbyaddr($lastlog_server_ip);
+ $lastlog_client_name = @gethostbyaddr($lastlog_client_ip);
$lastlog_callerid = $row['CallingStationId'];
if ($lastlog_callerid == '')
$lastlog_callerid = 'not available';
$lastlog_server_port = $row['NASPortId'];
$lastlog_session_time = time2str($row['AcctSessionTime']);
$lastlog_client_ip = $row['FramedIPAddress'];
- $lastlog_server_name = ($lastlog_server_ip != '') ? gethostbyaddr($lastlog_server_ip) : '-';
- $lastlog_client_name = ($lastlog_client_ip != '') ? gethostbyaddr($lastlog_client_ip) : '-';
+ $lastlog_server_name = ($lastlog_server_ip != '') ? @gethostbyaddr($lastlog_server_ip) : '-';
+ $lastlog_client_name = ($lastlog_client_ip != '') ? @gethostbyaddr($lastlog_client_ip) : '-';
$lastlog_callerid = $row['CallingStationId'];
if ($lastlog_callerid == '')
$lastlog_callerid = 'not available';
$acct_download = bytes2str($acct_download);
$acct_server = $da_name_cache[$row[NASIPAddress]];
if (!isset($acct_server)){
- $acct_server = gethostbyaddr($row[NASIPAddress]);
+ $acct_server = @gethostbyaddr($row[NASIPAddress]);
if (!isset($da_name_cache) && $config[general_use_session] == 'yes'){
$da_name_cache[$row[NASIPAddress]] = $acct_server;
session_register('da_name_cache');