OSDN Git Service

PDO対応
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / plugins / securityenforcer / index.php
index 50a748e..40d5c96 100644 (file)
@@ -64,8 +64,8 @@ Admin area for NP_SecurityEnforcer
        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