first commit
This commit is contained in:
5
modules/eicaptcha/views/js/admin.js
Normal file
5
modules/eicaptcha/views/js/admin.js
Normal file
@@ -0,0 +1,5 @@
|
||||
$(document).ready(function(){
|
||||
//Force click to display debug tab when parameter is defined in url
|
||||
//This file is only loaded in this case
|
||||
$('a[href="#advanced"]').click();
|
||||
});
|
||||
12
modules/eicaptcha/views/js/eicaptcha-contact-form-v2.js
Normal file
12
modules/eicaptcha/views/js/eicaptcha-contact-form-v2.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
*
|
||||
* Recaptcha V2 Only
|
||||
*
|
||||
* This script add dynamically a new div at the end of the contact form
|
||||
* The captcha is render inside this div by Recaptcha V2
|
||||
* If needed you can change the selector by overriding this file in your theme
|
||||
*/
|
||||
$(document).ready(function () {
|
||||
$('.form-fields').append('<div id="captcha-box"></div>');
|
||||
});
|
||||
|
||||
11
modules/eicaptcha/views/js/eicaptcha-contact-form-v3.js
Normal file
11
modules/eicaptcha/views/js/eicaptcha-contact-form-v3.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
*
|
||||
* Recaptcha V3 Only
|
||||
*
|
||||
* This script add dynamically a new input hidden at the end of the contact form
|
||||
* The captcha is render inside this div by Recaptcha V3
|
||||
* If needed you can change the selector by overriding this file in your theme
|
||||
*/
|
||||
$(document).ready(function () {
|
||||
$('.form-fields').append('<input type="hidden" id="captcha-box" value="" name="g-recaptcha-response">');
|
||||
});
|
||||
35
modules/eicaptcha/views/js/index.php
Normal file
35
modules/eicaptcha/views/js/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* 2007-2016 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 2 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../');
|
||||
exit;
|
||||
Reference in New Issue
Block a user