Oopse
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
cd74eadfcd
commit
50492183b2
|
@ -26,17 +26,18 @@
|
||||||
return $str;
|
return $str;
|
||||||
}
|
}
|
||||||
$err = $email = $code_err = '';
|
$err = $email = $code_err = '';
|
||||||
if (!empty($_GET['email']))
|
if (empty($_GET['action']))
|
||||||
if (filter_var(sanitize($_GET['email']), FILTER_VALIDATE_EMAIL))
|
if (!empty($_GET['email']))
|
||||||
if (preg_match("/^" . preg_quote($_GET['email']) . "$/", file_get_contents("/var/spool/list")) !== 1)
|
if (filter_var(sanitize($_GET['email']), FILTER_VALIDATE_EMAIL))
|
||||||
if ($_GET['action'] == "sub")
|
if (preg_match("/^" . preg_quote($_GET['email']) . "$/", file_get_contents("/var/spool/list")) !== 1)
|
||||||
|
if ($_GET['action'] == "sub")
|
||||||
|
$email = sanitize($_GET['email']);
|
||||||
|
else $err = "E-mail not in list";
|
||||||
|
else if ($_GET['action'] == "unsub")
|
||||||
$email = sanitize($_GET['email']);
|
$email = sanitize($_GET['email']);
|
||||||
else $err = "E-mail not in list";
|
else $err = "E-mail already in list";
|
||||||
else if ($_GET['action'] == "unsub")
|
else $err = "Invalid E-mail";
|
||||||
$email = sanitize($_GET['email']);
|
else $err = "E-mail is required";
|
||||||
else $err = "E-mail already in list";
|
|
||||||
else $err = "Invalid E-mail";
|
|
||||||
else $err = "E-mail is required";
|
|
||||||
|
|
||||||
$filename = "/tmp/list-code-" . $email;
|
$filename = "/tmp/list-code-" . $email;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue