this is the code:
Code:
<?php
require("global.php");
if($action=="") {
print("<form action=\"delete.php\" method=\"post\"><input type=\"hidden\" name=\"action\" value=\"deleteusers\"><p>Delete users with less than <input type=\"text\" size=\"5\" name=\"numberposts\"> posts.</p><p><input type=\"submit\" value=\"DELETE USERS\"></form>");
}
if($action==deleteusers) {
$DB_site->query("DELETE FROM user WHERE posts < '$numberposts'");
print("You have successfully deleted all users with less than $numberposts posts.")
}
?>