ReCaptcha - Episode 2

This commit is contained in:
2020-05-13 22:05:16 +02:00
parent b09c531cad
commit ca62fc8c00
14 changed files with 192292 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<script src="https://www.google.com/recaptcha/api.js?hl={lang attr="code"}" async defer></script>
<script>
window.onload = function() {
var captchaDiv = document.getElementById("recaptcha-invisible");
if (captchaDiv !== null) {
var form = captchaDiv.parentElement;
form.addEventListener("submit", function(event) {
if (!grecaptcha.getResponse()) {
event.preventDefault(); //prevent form submit
grecaptcha.execute();
}
});
onCompleted = function() {
if (form.reportValidity() !== false) {
form.submit();
}
}
}
}
</script>

2
log/.htaccess Normal file
View File

@@ -0,0 +1,2 @@
order deny,allow
deny from all

2767
log/PayPal.log Normal file

File diff suppressed because it is too large Load Diff

146295
log/import-log.txt Normal file

File diff suppressed because it is too large Load Diff

2526
log/log-thelia.txt Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

4682
log/paybox.log Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -32,6 +32,7 @@
{intl l="Send us a message"}
</div>
<div class="panel-body">
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
<div class="row">
{form_field field="name"}
<div class="form-group group-name col-sm-6{if $error} has-error{/if}">
@@ -87,6 +88,11 @@
</div>
</fieldset>
<div>
{hook name="recaptcha.check"}
<br>
</div>
{hook name="contact.form-bottom"}
<div class="form-group group-btn">

View File

@@ -309,7 +309,12 @@
{hook name="register.form-bottom"}
<div class="form-group group-btn">
<div class="col-sm-5 col-sm-offset-3">
{hook name="recaptcha.check"}
<br>
</div>
<div class="control-btn col-sm-5 col-sm-offset-3">
<button type="submit" class="btn btn-primary"><i class="fa fa-chevron-right"></i> {intl l="Register"}</button>
</div>