From: kkalev Date: Tue, 10 Sep 2002 07:46:01 +0000 (+0000) Subject: Change use of AcctStartTime with AcctStopTime in failed_logins.php3 to match that... X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=91bab50de46f37c312d800ef81f734124e25bd57;p=freeradius-dialup-admin.git Change use of AcctStartTime with AcctStopTime in failed_logins.php3 to match that in user_admin --- diff --git a/Changelog b/Changelog index b715c52..e2888e4 100644 --- a/Changelog +++ b/Changelog @@ -53,6 +53,7 @@ Ver 1.59: * Fix a few more bugs * Add a failed logins page, to show the most recent failed logins. * Fix a bug in the failed logins page +* Change use of AcctStartTime with AcctStopTime in failed_logins.php3 to match that in user_admin Ver 1.55: * Update the FAQ about missing attributes from the user/group edit pages and add a few comments in the configuration files diff --git a/htdocs/failed_logins.php3 b/htdocs/failed_logins.php3 index 4823451..548cc65 100644 --- a/htdocs/failed_logins.php3 +++ b/htdocs/failed_logins.php3 @@ -81,13 +81,13 @@ EOM; $link = @da_sql_pconnect($config); if ($link){ $search = @da_sql_query($link,$config, - "SELECT AcctStartTime,UserName,NASIPAddress,NASPortId,AcctTerminateCause,CallingStationId + "SELECT AcctStopTime,UserName,NASIPAddress,NASPortId,AcctTerminateCause,CallingStationId FROM $config[sql_accounting_table] - WHERE AcctStartTime <= '$now_str' AND AcctStartTime >= '$prev_str' + WHERE AcctStopTime <= '$now_str' AND AcctStopTime >= '$prev_str' AND (AcctTerminateCause LIKE 'Login-Incorrect%' OR AcctTerminateCause LIKE 'Invalid-User%' OR AcctTerminateCause LIKE 'Multiple-Logins%') $callerid_str - ORDER BY AcctStartTime $order $limit;"); + ORDER BY AcctStopTime $order $limit;"); if ($search){ while( $row = @da_sql_fetch_array($search,$config) ){ $num++; @@ -96,7 +96,7 @@ if ($link){ $acct_login = '-'; else $acct_login = "$acct_login"; - $acct_time = $row[AcctStartTime]; + $acct_time = $row[AcctStopTime]; $acct_server = $da_name_cache[$row[NASIPAddress]]; if (!isset($acct_server)){ $acct_server = gethostbyaddr($row[NASIPAddress]);