* Make log_badlogins work with usernames containing spaces
* Only delete sessions which are not open in truncate_radacct. Bug noted by Evren Yurtesen <yurtesen@ispro.net.tr>
* Add a user input tag in user_stats.php3
+* Change AcctStopTime = '0' with AcctStopTime IS NULL
Ver 1.62:
* Remove one sql query from user_admin which was not needed.
* Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
$search = @da_sql_query($link,$config,
"SELECT * FROM $config[sql_accounting_table]
- WHERE UserName = '$login' AND AcctStopTime = '0'
+ WHERE UserName = '$login' AND AcctStopTime IS NULL
ORDER BY AcctStartTime DESC LIMIT 1;");
if ($search){
if (@da_sql_num_rows($search,$config)){
$search = @da_sql_query($link,$config,
"SELECT DISTINCT UserName,AcctStartTime,FramedIPAddress,CallingStationId
FROM $config[sql_accounting_table] WHERE
- AcctStopTime = '0' AND NASIPAddress = '$name_data' $extra
+ AcctStopTime IS NULL AND NASIPAddress = '$name_data' $extra
GROUP BY UserName ORDER BY AcctStartTime;");
if ($search){
$now = time();