mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-05-18 23:07:36 +08:00
fix massmail
This commit is contained in:
+3
-3
@@ -7,13 +7,13 @@ stderr("Error", "Permission denied.");
|
||||
$class = intval($_POST["class"] ?? 0);
|
||||
if ($class)
|
||||
int_check($class,true);
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
{
|
||||
$or = $_POST["or"] ?? '';
|
||||
if (!in_array($or, ["<", ">", "=", "<=", ">="], true)) {
|
||||
stderr("Error", "Invalid symbol!");
|
||||
}
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
{
|
||||
$res = sql_query("SELECT id, username, email FROM users WHERE class $or ".mysql_real_escape_string($class)) or sqlerr(__FILE__, __LINE__);
|
||||
|
||||
$subject = substr(htmlspecialchars(trim($_POST["subject"])), 0, 80);
|
||||
|
||||
Reference in New Issue
Block a user