Différents fichiers (ça marche pas sur MacBook)
This commit is contained in:
@@ -1 +0,0 @@
|
||||
# Google Invisible reCAPTCHA
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>invisiblerecaptcha</name>
|
||||
<displayName><![CDATA[Google Invisible reCAPTCHA]]></displayName>
|
||||
<version><![CDATA[1.0.3]]></version>
|
||||
<description><![CDATA[Protects your shop from SPAM using invisible Google reCAPTCHA algorithm]]></description>
|
||||
<author><![CDATA[Wiktor Koźmiński]]></author>
|
||||
<tab><![CDATA[front_office_features]]></tab>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>0</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
</module>
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,197 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once 'src/loader.php';
|
||||
|
||||
class Invisiblerecaptcha extends Module
|
||||
{
|
||||
protected $config_form = false;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'invisiblerecaptcha';
|
||||
$this->tab = 'front_office_features';
|
||||
$this->version = '1.0.3';
|
||||
$this->author = 'Wiktor Koźmiński';
|
||||
$this->need_instance = 0;
|
||||
$this->module_key = 'd61d218797b110c7691f596ee1f19533';
|
||||
|
||||
/**
|
||||
* Set $this->bootstrap to true if your module is compliant with bootstrap (PrestaShop 1.6)
|
||||
*/
|
||||
$this->bootstrap = true;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->displayName = $this->l('Google Invisible reCAPTCHA');
|
||||
$this->description = $this->l('Protects your shop from SPAM using invisible Google reCAPTCHA algorithm');
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't forget to create update methods if needed:
|
||||
* http://doc.prestashop.com/display/PS16/Enabling+the+Auto-Update
|
||||
*/
|
||||
public function install()
|
||||
{
|
||||
return parent::install() &&
|
||||
$this->registerHook('header') &&
|
||||
$this->registerHook('actionFrontControllerSetMedia') &&
|
||||
$this->registerHook('validateCustomerFormFields');
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
{
|
||||
return parent::uninstall();
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the configuration form
|
||||
*/
|
||||
public function getContent()
|
||||
{
|
||||
/**
|
||||
* If values have been submitted in the form, process.
|
||||
*/
|
||||
if (((bool)Tools::isSubmit('submitInvisiblerecaptchaModule')) == true) {
|
||||
$this->postProcess();
|
||||
}
|
||||
|
||||
$this->context->smarty->assign('module_dir', $this->_path);
|
||||
$output = $this->context->smarty->fetch($this->local_path.'views/templates/admin/configure.tpl');
|
||||
|
||||
return $output.$this->renderForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the form that will be displayed in the configuration of your module.
|
||||
*/
|
||||
protected function renderForm()
|
||||
{
|
||||
$helper = new HelperForm();
|
||||
$config = new Invisiblerecaptcha\Common\Config();
|
||||
|
||||
$helper->show_toolbar = false;
|
||||
$helper->table = $this->table;
|
||||
$helper->module = $this;
|
||||
$helper->default_form_language = $this->context->language->id;
|
||||
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG', 0);
|
||||
|
||||
$helper->identifier = $this->identifier;
|
||||
$helper->submit_action = 'submitInvisiblerecaptchaModule';
|
||||
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false)
|
||||
.'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name;
|
||||
$helper->token = Tools::getAdminTokenLite('AdminModules');
|
||||
|
||||
$helper->tpl_vars = array(
|
||||
'fields_value' => $config->getConfigFormValues(),
|
||||
'languages' => $this->context->controller->getLanguages(),
|
||||
'id_language' => $this->context->language->id,
|
||||
);
|
||||
|
||||
return $helper->generateForm(array(Invisiblerecaptcha\Common\Config::getConfigForm($this)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Save form data.
|
||||
*/
|
||||
protected function postProcess()
|
||||
{
|
||||
$valid = true;
|
||||
if (!Validate::isString(Tools::getValue('config_sitekey')) || !Tools::strlen(Tools::getValue('config_sitekey'))) {
|
||||
$this->context->controller->errors[] = $this->l('Please provide valid sitekey');
|
||||
$valid = false;
|
||||
}
|
||||
|
||||
if (!Validate::isString(Tools::getValue('config_secretkey')) || !Tools::strlen(Tools::getValue('config_secretkey'))) {
|
||||
$this->context->controller->errors[] = $this->l('Please provide valid secretkey');
|
||||
$valid = false;
|
||||
}
|
||||
|
||||
if ($valid) {
|
||||
$config = new Invisiblerecaptcha\Common\Config();
|
||||
$config->update();
|
||||
$this->context->controller->confirmations[] = $this->l('Configuration form was saved');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the CSS & JavaScript files you want to be added on the FO.
|
||||
*/
|
||||
public function hookHeader()
|
||||
{
|
||||
if (trim($this->context->controller->php_self) != 'contact') {
|
||||
return;
|
||||
}
|
||||
|
||||
$config = new Invisiblerecaptcha\Common\Config();
|
||||
$this->context->controller->addJS($this->_path.'/views/js/front.min.js');
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'recaptchaSiteKey' => $config->sitekey
|
||||
));
|
||||
|
||||
return $this->display(__FILE__, 'header_hook.tpl');
|
||||
}
|
||||
|
||||
/**
|
||||
* We are checking "recaptcha" code in "setMedia", because this is the only hook
|
||||
* which is executeed BEFORE "postProcess" (where the mails are sent).
|
||||
* If recaptcha code is wrong we removing 'from' key from POST and GET array to
|
||||
* prevent message from being sent and from being added to conversation table.
|
||||
*
|
||||
* @see Controller::run
|
||||
* @see FrontController::setMedia
|
||||
* @return void
|
||||
*/
|
||||
public function hookActionFrontControllerSetMedia()
|
||||
{
|
||||
if (trim($this->context->controller->php_self) != 'contact') {
|
||||
return;
|
||||
}
|
||||
|
||||
$config = new Invisiblerecaptcha\Common\Config();
|
||||
|
||||
if (Tools::isSubmit('submitMessage')) {
|
||||
$code = Tools::getValue('g-recaptcha-response');
|
||||
$recaptcha = new Invisiblerecaptcha\Recaptcha\Recaptcha($config->secretkey);
|
||||
if (!$code || !$recaptcha->verifyResponse($code)) {
|
||||
$this->context->controller->errors[] = $this->l("Sorry, but it looks like you are not a human");
|
||||
unset($_POST['from']);
|
||||
unset($_GET['from']);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function hookValidateCustomerFormFields()
|
||||
{
|
||||
/* Place your code here. */
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB |
@@ -1,143 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Invisiblerecaptcha Prestashop module
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This file is licenced under the Software License Agreement.
|
||||
* With the purchase or the installation of the software in your application
|
||||
* you accept the licence agreement.
|
||||
*
|
||||
* You must not modify, adapt or create derivative works of this source code
|
||||
*
|
||||
* @author Wiktor Koźmiński
|
||||
* @copyright 2017-2017 Silver Rose Wiktor Koźmiński
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Invisiblerecaptcha\Common;
|
||||
|
||||
/**
|
||||
* Configuration class, store all config in one DB record in JSON
|
||||
*/
|
||||
class Config
|
||||
{
|
||||
|
||||
const CONFIG_COLUMN_NAME = 'wk_invisiblerecaptcha_config';
|
||||
|
||||
/** Config data */
|
||||
public $sitekey;
|
||||
public $secretkey;
|
||||
/** --- */
|
||||
|
||||
public function __construct($initialLoad = true)
|
||||
{
|
||||
if ($initialLoad) {
|
||||
$this->load();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Purges (removes) current configuration from presta db
|
||||
* @return void
|
||||
*/
|
||||
public static function purge()
|
||||
{
|
||||
\Configuration::deleteByName(self::CONFIG_COLUMN_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves current config into DB.
|
||||
* @param boolean $getPostValues if set to true, get post values with 'config_' prefix
|
||||
* @return void
|
||||
*/
|
||||
public function update($getPostValues = true)
|
||||
{
|
||||
if ($getPostValues) {
|
||||
$this->assignPostValues();
|
||||
}
|
||||
$json = \Tools::jsonEncode($this);
|
||||
\Configuration::updateValue(self::CONFIG_COLUMN_NAME, $json);
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads config from DB.
|
||||
* @return boolean false if values couldn't been loaded
|
||||
*/
|
||||
public function load()
|
||||
{
|
||||
$json = \Configuration::get(self::CONFIG_COLUMN_NAME);
|
||||
if ($json === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$values = \Tools::jsonDecode($json, true);
|
||||
|
||||
if (is_array($values)) {
|
||||
foreach ($values as $key => $v) {
|
||||
if (property_exists($this, $key)) {
|
||||
$this->$key = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Assign post values with prefix 'config_' to class vars.
|
||||
* @return void
|
||||
*/
|
||||
private function assignPostValues()
|
||||
{
|
||||
foreach (get_object_vars($this) as $key => $value) {
|
||||
$v = \Tools::getValue('config_'.$key);
|
||||
if ($v !== false) {
|
||||
$this->$key = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getConfigFormValues()
|
||||
{
|
||||
$r = array(
|
||||
'config_sitekey' => $this->sitekey,
|
||||
'config_secretkey' => $this->secretkey,
|
||||
);
|
||||
return $r;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the structure of your form.
|
||||
*/
|
||||
public static function getConfigForm(\Module $module)
|
||||
{
|
||||
return array(
|
||||
'form' => array(
|
||||
'legend' => array(
|
||||
'title' => $module->l('Settings'),
|
||||
'icon' => 'icon-cogs',
|
||||
),
|
||||
'input' => array(
|
||||
array(
|
||||
'col' => 3,
|
||||
'type' => 'text',
|
||||
'desc' => $module->l('Enter a valid site key'),
|
||||
'name' => 'config_sitekey',
|
||||
'label' => $module->l('Site key'),
|
||||
),
|
||||
array(
|
||||
'col' => 3,
|
||||
'type' => 'text',
|
||||
'desc' => $module->l('Enter a valid secret key'),
|
||||
'name' => 'config_secretkey',
|
||||
'label' => $module->l('Secret key'),
|
||||
),
|
||||
),
|
||||
'submit' => array(
|
||||
'title' => $module->l('Save'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,59 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Invisiblerecaptcha Prestashop module
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This file is licenced under the Software License Agreement.
|
||||
* With the purchase or the installation of the software in your application
|
||||
* you accept the licence agreement.
|
||||
*
|
||||
* You must not modify, adapt or create derivative works of this source code
|
||||
*
|
||||
* @author Wiktor Koźmiński
|
||||
* @copyright 2017-2017 Silver Rose Wiktor Koźmiński
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Invisiblerecaptcha\Recaptcha;
|
||||
|
||||
class Recaptcha
|
||||
{
|
||||
const VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify';
|
||||
|
||||
private $secret;
|
||||
|
||||
public function __construct($secret)
|
||||
{
|
||||
if (!$secret) {
|
||||
throw new \RuntimeException('No secret provided');
|
||||
}
|
||||
|
||||
$this->secret = $secret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks token on google server
|
||||
*
|
||||
* @todo create alternative for @file_get_contents
|
||||
*
|
||||
* @param string $responseToken
|
||||
* @return bool
|
||||
*/
|
||||
public function verifyResponse($responseToken)
|
||||
{
|
||||
$data = array(
|
||||
'secret' => $this->secret,
|
||||
'response' => $responseToken
|
||||
);
|
||||
|
||||
$res = file_get_contents(self::VERIFY_URL . '?' . http_build_query($data));
|
||||
$res = json_decode($res, true);
|
||||
|
||||
if (isset($res['success']) and $res['success'] == true) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,19 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Invisiblerecaptcha Prestashop module
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This file is licenced under the Software License Agreement.
|
||||
* With the purchase or the installation of the software in your application
|
||||
* you accept the licence agreement.
|
||||
*
|
||||
* You must not modify, adapt or create derivative works of this source code
|
||||
*
|
||||
* @author Wiktor Koźmiński
|
||||
* @copyright 2017-2017 Silver Rose Wiktor Koźmiński
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
require_once 'Common/Config.php';
|
||||
require_once 'Recaptcha/Recaptcha.php';
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>invisiblerecaptcha_14c130a9ef140f2961f5adf400ee39e4'] = 'Google niewidoczne reCAPTCHA';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>invisiblerecaptcha_0d86a896b54e36c9a3e2fd39eed5dcf6'] = 'Zabezpiecz swój sklep przed spamem używając niewidocznego mechanizmu Google reCAPTCHA';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>invisiblerecaptcha_ce7ffa747a7d2343314a4e275f8dbbd7'] = 'Proszę podać poprawny klucz strony';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>invisiblerecaptcha_98461094c99df2ceeeccc74a5c17b646'] = 'Proszę podać poprawny klucz prywanty';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>invisiblerecaptcha_b84509e6ae74c4fddc93d6754cd22602'] = 'Dane konfiguracyjne zostały zapisane';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>config_f4f70727dc34561dfde1a3c529b6205c'] = 'Ustawienia';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>config_6d93884012c8a586d2cb38c459fbe01a'] = 'Wprowadź poprawny klucz strony';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>config_f75d8fa5c89351544d372cf90528ccf2'] = 'Klucz strony';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>config_10489ad40fddc4f226709b5ded101145'] = 'Wprowadź poprawny klucz prywatny';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>config_952bf87c967660b7bbd4e1eb08cefc92'] = 'Klucz prywatny';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>config_c9cc8cce247e49bae79f15173ce97354'] = 'Zapisz';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>configure_5b6cf869265c13af8566f192b4ab3d2a'] = 'Instrukcja';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>configure_f616483fcffe0f1c0e15cc3119c95873'] = 'Cześć, dziękujemy za zakup naszego modułu';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>configure_c3a8c75b4abbecdf79a40c2020de360c'] = 'Aby móc używać reCAPTCHA musisz najpierw uzyskać dwa klucze na stronie Google';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>configure_fdb619ae350aebf4a4ad9aa236ec2078'] = 'Wymagane klucze to klucz strony i klucz prywatny. Klucz strony jest potrzebny aby móc wyświetlić odpowiedni widżet na Twojej stronie. Z kolei klucz prywatny wymagany jest w celu potwierdzenia odpowiedzi użytkownika z serwerem Google';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>configure_5bff1d0d6eb7911d8cf3717abfde9a02'] = 'W celu uzyskania klucza przejdź na tą stronę:';
|
||||
$_MODULE['<{invisiblerecaptcha}prestashop>configure_85e619b11974fce95300aa9b3021bf56'] = 'Google Developers';
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_0_1($module)
|
||||
{
|
||||
$module->registerHook('actionFrontControllerSetMedia');
|
||||
return true;
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Invisiblerecaptcha Prestashop module
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This file is licenced under the Software License Agreement
|
||||
* With the purchase or the installation of the software in your application
|
||||
* you accept the licence agreement.
|
||||
* You must not modify, adapt or create derivative works of this source code
|
||||
*
|
||||
* @author Wiktor Koźmiński
|
||||
* @copyright 2017-2017 Silver Rose Wiktor Koźmiński
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
function onReCaptchaSubmit(t){var e=$("[name=submitMessage]").parents("form");if(e){var a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name","submitMessage"),a.setAttribute("value","1"),e.get(0).appendChild(a),e.submit()}}$(function(){var t=document.querySelector("[name=submitMessage]");t||(t=$("input[name=submitMessage]").get(0)),t&&GRSITEKEY&&(t.classList.add("g-recaptcha"),t.setAttribute("data-sitekey",GRSITEKEY),t.setAttribute("data-callback","onReCaptchaSubmit"))});
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,34 +0,0 @@
|
||||
{*
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="panel">
|
||||
<h3><i class="icon icon-tags"></i> {l s='Documentation' mod='invisiblerecaptcha'}</h3>
|
||||
<p>
|
||||
<strong>{l s='Hello, Thank you for buying our module!' mod='invisiblerecaptcha'}</strong><br/>
|
||||
{l s='To use reCAPTCHA, you need to sign up for an API key pair for your site.' mod='invisiblerecaptcha'}
|
||||
{l s=' The key pair consists of a site key and secret. The site key is used to display the widget on your site. The secret authorizes communication between your application backend and the reCAPTCHA server to verify the users response.' mod='invisiblerecaptcha'}<br/><br/>
|
||||
{l s='For more information please visit this page:' mod='invisiblerecaptcha'} <a target="_blank" href="https://developers.google.com/recaptcha/intro">{l s='Google Developers' mod='invisiblerecaptcha'}</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,8 +0,0 @@
|
||||
{*
|
||||
* Invisiblerecaptcha Prestashop module
|
||||
*
|
||||
* @author Wiktor Koźmiński
|
||||
* @copyright 2017-2017 Silver Rose Wiktor Koźmiński
|
||||
*}
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
<script type="text/javascript">var GRSITEKEY = "{$recaptchaSiteKey|escape:'javascript':'UTF-8'}";</script>
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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;
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 https://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 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