equal
deleted
inserted
replaced
1265 |
1265 |
1266 echo '<div class="info-box">' . $lang->get('acphome_msg_lockout_clear_success', array('ip' => htmlspecialchars($ip))) . '</div>'; |
1266 echo '<div class="info-box">' . $lang->get('acphome_msg_lockout_clear_success', array('ip' => htmlspecialchars($ip))) . '</div>'; |
1267 } |
1267 } |
1268 |
1268 |
1269 $q = $db->sql_query('SELECT COUNT(id) AS fail_count, ipaddr, username, timestamp FROM ' . table_prefix . "lockout AS l\n" |
1269 $q = $db->sql_query('SELECT COUNT(id) AS fail_count, ipaddr, username, timestamp FROM ' . table_prefix . "lockout AS l\n" |
1270 . " WHERE timestamp > ( " . time() . " - " . intval(getConfig('lockout_duration', 15)) . "*60 ) GROUP BY ipaddr, username, timestamp ORDER BY COUNT(id) DESC, timestamp DESC;"); |
1270 . " WHERE timestamp > ( " . time() . " - " . intval(getConfig('lockout_duration', 15)) . "*60 ) GROUP BY ipaddr ORDER BY COUNT(id) DESC, timestamp DESC;"); |
1271 if ( !$q ) |
1271 if ( !$q ) |
1272 $db->_die(); |
1272 $db->_die(); |
1273 |
1273 |
1274 if ( $db->numrows() > 0 ) |
1274 if ( $db->numrows() > 0 ) |
1275 { |
1275 { |