ReCaptcha - Episode 2
This commit is contained in:
@@ -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
2
log/.htaccess
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
order deny,allow
|
||||||
|
deny from all
|
||||||
2767
log/PayPal.log
Normal file
2767
log/PayPal.log
Normal file
File diff suppressed because it is too large
Load Diff
146295
log/import-log.txt
Normal file
146295
log/import-log.txt
Normal file
File diff suppressed because it is too large
Load Diff
2526
log/log-thelia.txt
Normal file
2526
log/log-thelia.txt
Normal file
File diff suppressed because it is too large
Load Diff
6440
log/log-thelia.txt.2019-10-02_21-03-13
Normal file
6440
log/log-thelia.txt.2019-10-02_21-03-13
Normal file
File diff suppressed because it is too large
Load Diff
6328
log/log-thelia.txt.2019-11-03_12-17-49
Normal file
6328
log/log-thelia.txt.2019-11-03_12-17-49
Normal file
File diff suppressed because it is too large
Load Diff
6502
log/log-thelia.txt.2019-11-07_04-32-11
Normal file
6502
log/log-thelia.txt.2019-11-07_04-32-11
Normal file
File diff suppressed because it is too large
Load Diff
6203
log/log-thelia.txt.2019-12-10_14-56-12
Normal file
6203
log/log-thelia.txt.2019-12-10_14-56-12
Normal file
File diff suppressed because it is too large
Load Diff
4542
log/log-thelia.txt.2019-12-28_09-34-56
Normal file
4542
log/log-thelia.txt.2019-12-28_09-34-56
Normal file
File diff suppressed because it is too large
Load Diff
5971
log/log-thelia.txt.2020-01-17_17-45-44
Normal file
5971
log/log-thelia.txt.2020-01-17_17-45-44
Normal file
File diff suppressed because it is too large
Load Diff
4682
log/paybox.log
Normal file
4682
log/paybox.log
Normal file
File diff suppressed because it is too large
Load Diff
@@ -32,6 +32,7 @@
|
|||||||
{intl l="Send us a message"}
|
{intl l="Send us a message"}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{form_field field="name"}
|
{form_field field="name"}
|
||||||
<div class="form-group group-name col-sm-6{if $error} has-error{/if}">
|
<div class="form-group group-name col-sm-6{if $error} has-error{/if}">
|
||||||
@@ -87,6 +88,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{hook name="recaptcha.check"}
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
|
||||||
{hook name="contact.form-bottom"}
|
{hook name="contact.form-bottom"}
|
||||||
|
|
||||||
<div class="form-group group-btn">
|
<div class="form-group group-btn">
|
||||||
|
|||||||
@@ -309,7 +309,12 @@
|
|||||||
|
|
||||||
{hook name="register.form-bottom"}
|
{hook name="register.form-bottom"}
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group group-btn">
|
<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">
|
<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>
|
<button type="submit" class="btn btn-primary"><i class="fa fa-chevron-right"></i> {intl l="Register"}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user