echo '<tr><td colspan="2" class="submit"><input type="submit" value="'._SECURITYENFORCER_UNLOCK.'" /></td></tr>';\r
// do query to get all entries, loop\r
$result = sql_query("SELECT * FROM ".sql_table("plug_securityenforcer")." WHERE fails >= ".$plug->max_failed_login);\r
- if(mysql_num_rows($result)) {\r
- while($row = mysql_fetch_assoc($result)) {\r
+ if(sql_num_rows($result)) {\r
+ while($row = sql_fetch_assoc($result)) {\r
echo '<tr>';\r
echo '<td>'.htmlspecialchars($row['login']).'</td>';\r
echo '<td><input type="checkbox" name="unlock[]" value="'.htmlspecialchars($row['login']).'" />'._SECURITYENFORCER_UNLOCK.'</td>';\r