Registration adjustments.
This commit is contained in:
parent
50dee8eeb4
commit
b7a14de9df
2 changed files with 15 additions and 2 deletions
|
@ -43,10 +43,16 @@ while(!$restricted && !empty($register)) {
|
|||
|
||||
$checkSpamBot = mb_strtolower($register['question']);
|
||||
$spamBotValid = [
|
||||
'19', '21', 'nineteen', 'nine-teen', 'nine teen', 'twentyone', 'twenty-one', 'twenty one',
|
||||
'21', 'twentyone', 'twenty-one', 'twenty one',
|
||||
];
|
||||
$spamBotHint = [
|
||||
'19', 'nineteen', 'nine-teen', 'nine teen',
|
||||
];
|
||||
|
||||
if(!in_array($checkSpamBot, $spamBotValid)) {
|
||||
if(in_array($checkSpamBot, $spamBotHint))
|
||||
$notices[] = '_play_hint';
|
||||
|
||||
$notices[] = 'Human only cool club, robots begone.';
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,14 @@
|
|||
<div class="warning auth__warning">
|
||||
<div class="warning__content">
|
||||
{% for notice in register_notices %}
|
||||
<p class="auth__warning__paragraph">{{ notice }}</p>
|
||||
{% if notice == '_play_hint' %}
|
||||
<audio autoplay controls style="max-width: 100%;">
|
||||
<source type="audio/ogg" src="//static.flash.moe/sounds/twentyone.opus"/>
|
||||
<source type="audio/x-caf" src="//static.flash.moe/sounds/twentyone.caf"/>
|
||||
</audio>
|
||||
{% else %}
|
||||
<p class="auth__warning__paragraph">{{ notice }}</p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue