Typos and clarifications to the comments
This commit is contained in:
@@ -18,7 +18,7 @@ if ( empty($_POST["anti_spam_question"]) ) {
|
||||
}
|
||||
|
||||
if ( strlen($_POST["anti_spam_question"]) !== 6 ) {
|
||||
naughty("6f51e6e7e6820b3fdda5d4ca0df14db1 You're making up spam questions");
|
||||
naughty("6f51e6e7e6820b3fdda5d4ca0df14db1 You have the wrong spam answer");
|
||||
}
|
||||
|
||||
if (strcasecmp('public', $_POST["anti_spam_question"]) !== 0) {
|
||||
@@ -81,9 +81,13 @@ else {
|
||||
$comment_title_ascii = "EXTENDED";
|
||||
}
|
||||
|
||||
if ( empty($_POST["comment_text"]) or strlen($_POST["comment_text"]) > 2000 or strpos(strtolower($_POST["comment_text"]), "outlook.con") !== false ) {
|
||||
if ( empty($_POST["comment_text"]) ) {
|
||||
naughty("cd57ab4d7b77a131ed3deb441bd93dcd The comment text is missing.");
|
||||
}
|
||||
if ( strlen($_POST["comment_text"]) > 2000 or strpos(strtolower($_POST["comment_text"]), "outlook.con") !== false ) {
|
||||
naughty("cd57ab4d7b77a131ed3deb441bd93dcd The comment text is too verbose. Record a show instead.");
|
||||
}
|
||||
|
||||
$comment_text = $_POST["comment_text"];
|
||||
$comment_text_json = json_encode( $_POST["comment_text"] );
|
||||
|
||||
@@ -160,11 +164,11 @@ else {
|
||||
mysqli_free_result($result);
|
||||
|
||||
if ( empty($_POST["hostid"]) or intval($_POST["hostid"]) != $host_id ) {
|
||||
naughty("b4d71481b7055272728094292fd2a562 Cant find that host id");
|
||||
naughty("b4d71481b7055272728094292fd2a562 Cant find that host id. You picked the wrong host from the list");
|
||||
}
|
||||
|
||||
if ( empty($_POST["justification"]) or strlen($_POST["justification"]) > 200 or strlen($_POST["justification"]) < 20) {
|
||||
naughty("156d2d2d5780bd7f4a750f7c162b3394 You need to have a sufficently long justification.");
|
||||
naughty("156d2d2d5780bd7f4a750f7c162b3394 You need to have a sufficiently long answer to 'What does HPR mean to you?'.");
|
||||
}
|
||||
|
||||
# Checks to see how old the show is
|
||||
|
||||
Reference in New Issue
Block a user