Change use of AcctStartTime with AcctStopTime in failed_logins.php3 to match that...
authorkkalev <kkalev>
Tue, 10 Sep 2002 07:46:01 +0000 (07:46 +0000)
committerkkalev <kkalev>
Tue, 10 Sep 2002 07:46:01 +0000 (07:46 +0000)
dialup_admin/Changelog
dialup_admin/htdocs/failed_logins.php3

index b715c52..e2888e4 100644 (file)
@@ -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
index 4823451..548cc65 100644 (file)
@@ -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 = "<a href=\"user_admin.php3?login=$acct_login\" title=\"Edit user $acct_login\">$acct_login</a>";
-                       $acct_time = $row[AcctStartTime];
+                       $acct_time = $row[AcctStopTime];
                        $acct_server = $da_name_cache[$row[NASIPAddress]];
                        if (!isset($acct_server)){
                                $acct_server = gethostbyaddr($row[NASIPAddress]);