* Fix a small bug in user_admin.php3.
* Pass the whole password as salt in da_encrypt() in password_check.php3
* Refresh the online users page every 50 secs. Patch by Alexandre Strube <surak@barroco.com.br>
+* Check if the last logged in server and client ip are valid before calling gethostbyaddr
Ver 1.29:
* Add general_ld_library_path directive and set LD_LIBRARY_PATH accordingly (used in snmpfinger and
radaclient).
$lastlog_server_port = $row['NASPortId'];
$lastlog_session_time = time2str($row['AcctSessionTime']);
$lastlog_client_ip = $row['FramedIPAddress'];
- $lastlog_server_name = gethostbyaddr($lastlog_server_ip);
- $lastlog_client_name = 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_input = $row['AcctInputOctets'];
$lastlog_input = bytes2str($lastlog_input);
$lastlog_output = $row['AcctOutputOctets'];