plugins/admin/UserManager.php
changeset 1275 e15d38ae8623
parent 1267 31ff2e5351b0
child 1382 78fbedb876f3
equal deleted inserted replaced
1274:673a1b6712fa 1275:e15d38ae8623
  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 	{