mirror of https://git.envs.net/envs/site.git
signup: add minimum age check
This commit is contained in:
parent
9d573db744
commit
2d140d7fc5
|
@ -115,6 +115,9 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
|
|||
}
|
||||
|
||||
|
||||
if ($_REQUEST["c_age"] == "")
|
||||
$message .= "<li>you must be at least 16 years old to use this service.</li>\n";
|
||||
|
||||
if ($_REQUEST["iagree"] == "")
|
||||
$message .= "<li>you need to agree to our terms.</li>\n";
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ include 'header.php';
|
|||
signing up implies that you agree to abide by our <a href="/coc/" target="blank">code of conduct</a>,
|
||||
no drama. be respectful. have fun. we're all trying, and we're all in this together :)
|
||||
|
||||
<label><input class="form-control" type="checkbox" name="c_age" value="check" /> i am at least 16 years old.</label>
|
||||
<label><input class="form-control" type="checkbox" name="iagree" value="check" /> i agree! i have read and understood the terms and conditions.</label>
|
||||
|
||||
<input class="form-control" type="submit" value="submit">
|
||||
|
|
Loading…
Reference in New Issue