add emailvalidation module + adapt js/css
This commit is contained in:
parent
b52d94e306
commit
331e946f23
36
modules/emailvalidation/controllers/admin/index.php
Normal file
36
modules/emailvalidation/controllers/admin/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
36
modules/emailvalidation/controllers/front/index.php
Normal file
36
modules/emailvalidation/controllers/front/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
36
modules/emailvalidation/controllers/index.php
Normal file
36
modules/emailvalidation/controllers/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
36
modules/emailvalidation/css/index.php
Normal file
36
modules/emailvalidation/css/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
62
modules/emailvalidation/emailvalidation.php
Normal file
62
modules/emailvalidation/emailvalidation.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Antadis
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_'))
|
||||
exit;
|
||||
|
||||
class EmailValidation extends Module {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param type $name
|
||||
* @param Context $context
|
||||
*/
|
||||
public function __construct() {
|
||||
|
||||
$this->name = 'emailvalidation';
|
||||
$this->tab = 'front_office_feature';
|
||||
$this->version = '1.0.0';
|
||||
$this->author = 'Antadis';
|
||||
$this->bootstrap = true;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->displayName = $this->l('Email Validation');
|
||||
$this->description = $this->l('Display email suggestions four your email fields');
|
||||
$this->confirmUninstall = $this->l('Are you sure you want to uninstall this module?');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function install() {
|
||||
return (
|
||||
parent::install() &&
|
||||
$this->registerHooks()
|
||||
);
|
||||
}
|
||||
|
||||
public function registerHooks(){
|
||||
return (
|
||||
$this->registerHook('displayFooter')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function uninstall() {
|
||||
return parent::uninstall();
|
||||
}
|
||||
|
||||
/**
|
||||
* HOOKS
|
||||
*/
|
||||
public function hookDisplayFooter($params){
|
||||
$this->context->controller->addJS(_PS_MODULE_DIR_.'emailvalidation/js/emailvalidation.js');
|
||||
}
|
||||
}
|
36
modules/emailvalidation/index.php
Normal file
36
modules/emailvalidation/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
19
modules/emailvalidation/js/MIT-LICENSE.txt
Normal file
19
modules/emailvalidation/js/MIT-LICENSE.txt
Normal file
@ -0,0 +1,19 @@
|
||||
Copyright (c) 2013 http://xdsoft.net
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
195
modules/emailvalidation/js/emailvalidation.js
Normal file
195
modules/emailvalidation/js/emailvalidation.js
Normal file
@ -0,0 +1,195 @@
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).on('focus', 'input[name="email"]', function(){
|
||||
emailValidator.emailInit($(this));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/** ==============
|
||||
* Email validation
|
||||
=============== */
|
||||
|
||||
var i18n = {
|
||||
form_email_suggestion: 'Vouliez-vous dire {0} ?'
|
||||
};
|
||||
|
||||
var emailValidator = {
|
||||
domains : ['gmail.com', 'hotmail.fr', 'hotmail.com', 'yahoo.fr', 'orange.fr', 'free.fr', 'wanadoo.fr', 'live.fr', 'laposte.net', 'yahoo.com', 'sfr.fr', 'msn.com', 'neuf.fr', 'aol.com', 'voila.fr', 'facebook.com', 'me.com', 'orange.com', 'club-internet.fr', 'bbox.fr', 'noos.fr', 'outlook.fr', 'microsoft.com', 'bnpparibas.com', 'numericable.fr', 'aliceadsl.fr', 'outlook.com', 'ymail.com', 'googlemail.com', 'gmx.de', 'icloud.com', 'capgemini.com', 'web.de', 'cegetel.net', 'edhec.com', 'loreal.com', 'mac.com', 'essec.edu', 'gmail.fr', 'deloitte.fr', 'sfr.com', 'hec.edu', 'renault.com', 'google.com', 'gmx.fr', 'gadz.org', 'sncf.fr', 'leetchi.com', 'dbmail.com', 'live.com', 'libertysurf.fr', 'sgcib.com', 'skynet.be', 'aol.net', '9online.fr', 'bouyguestelecom.fr', 'gmx.net', 'mail.com'],
|
||||
secondLevelDomains : ['gmail', 'hotmail', 'hotmail', 'yahoo', 'orange', 'free', 'wanadoo', 'live', 'laposte', 'yahoo', 'sfr', 'msn', 'neuf', 'aol', 'voila', 'facebook', 'orange', 'club-internet', 'bbox', 'noos', 'outlook', 'microsoft', 'bnpparibas', 'numericable', 'aliceadsl', 'outlook', 'ymail', 'googlemail', 'gmx', 'icloud', 'capgemini', 'cegetel', 'edhec', 'loreal', 'mac', 'essec', 'gmail', 'deloitte', 'sfr', 'hec', 'renault', 'google', 'gmx', 'gadz', 'sncf', 'leetchi', 'dbmail', 'libertysurf', 'skynet', 'aol', '9online', 'bouyguestelecom'],
|
||||
topLevelDomains : ['fr', 'be', 'de', 'es', 'it', 'eu', 'co.uk', 'uk', 'nl', 'at', 'ca', 'com', 'info', 'net', 'org', 'bzh', 'name', 'cat', 'fi', 'se', 'gf', 'gy', 'pl', 'ie', 'il', 'lu', 'ma', 're', 'ro'],
|
||||
emailInit : function(element) {
|
||||
if (element.parent().children('.form-email-helper').length)
|
||||
return;
|
||||
element.after($('<span></span>').addClass('form-email-helper hidden'));
|
||||
// Add empty label to align input and suggestion
|
||||
if (element.prev().prop('tagName') === 'LABEL')
|
||||
element.after($('<label> </label>').addClass('label-email-helper hidden'));
|
||||
|
||||
return element.on('blur', function() {
|
||||
return element.mailcheck({
|
||||
domains: emailValidator.domains,
|
||||
secondLevelDomains: emailValidator.secondLevelDomains,
|
||||
topLevelDomains: emailValidator.topLevelDomains,
|
||||
suggested: function(element, suggestion) {
|
||||
return emailValidator.emailSuggest(element, suggestion);
|
||||
},
|
||||
empty: function(element) {
|
||||
return emailValidator.emailEmpty(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
emailSuggest : function(element, suggestion) {
|
||||
var helper, helper_label;
|
||||
helper = element.closest('.form-group').find('.form-email-helper');
|
||||
helper.removeClass('hidden');
|
||||
helper_label = element.closest('.form-group').find('.label-email-helper');
|
||||
if (!helper.hasClass('active')) {
|
||||
helper_label.removeClass('hidden');
|
||||
helper.addClass('active');
|
||||
}
|
||||
helper.html(i18n.form_email_suggestion.replace('{0}', '<button class="btn-link form-email-helper-link" type="button">' + suggestion.full + '</button>'));
|
||||
return helper.find('.form-email-helper-link').one('click', function() {
|
||||
element.val($(this).text());
|
||||
element.closest('.form-group').removeClass('form-error').addClass('form-ok');
|
||||
helper_label.addClass('hidden');
|
||||
helper.addClass('hidden');
|
||||
return helper.removeClass('active').html('');
|
||||
});
|
||||
},
|
||||
emailEmpty : function(element) {
|
||||
var helper, helper_label;
|
||||
helper = element.closest('.form-email-container').find('.form-email-helper');
|
||||
helper_label = element.closest('.form-group').find('.label-email-helper');
|
||||
if (helper.hasClass('active')) {
|
||||
helper_label.addClass('hidden');
|
||||
return helper.removeClass('active').html('');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/*! mailcheck v1.1.0 @licence MIT */
|
||||
var Mailcheck = {
|
||||
domainThreshold: 4,
|
||||
topLevelThreshold: 3,
|
||||
defaultDomains: ["yahoo.com", "google.com", "hotmail.com", "gmail.com", "me.com", "aol.com", "mac.com", "live.com", "comcast.net", "googlemail.com", "msn.com", "hotmail.co.uk", "yahoo.co.uk", "facebook.com", "verizon.net", "sbcglobal.net", "att.net", "gmx.com", "mail.com", "outlook.com", "icloud.com"],
|
||||
defaultTopLevelDomains: ["co.jp", "co.uk", "com", "net", "org", "info", "edu", "gov", "mil", "ca"],
|
||||
run: function(a) {
|
||||
a.domains = a.domains || Mailcheck.defaultDomains, a.topLevelDomains = a.topLevelDomains || Mailcheck.defaultTopLevelDomains, a.distanceFunction = a.distanceFunction || Mailcheck.sift3Distance;
|
||||
var b = function(a) {
|
||||
return a
|
||||
},
|
||||
c = a.suggested || b,
|
||||
d = a.empty || b,
|
||||
e = Mailcheck.suggest(Mailcheck.encodeEmail(a.email), a.domains, a.topLevelDomains, a.distanceFunction);
|
||||
return e ? c(e) : d()
|
||||
},
|
||||
suggest: function(a, b, c, d) {
|
||||
a = a.toLowerCase();
|
||||
var e = this.splitEmail(a),
|
||||
f = this.findClosestDomain(e.domain, b, d, this.domainThreshold);
|
||||
if (f) {
|
||||
if (f != e.domain) return {
|
||||
address: e.address,
|
||||
domain: f,
|
||||
full: e.address + "@" + f
|
||||
}
|
||||
} else {
|
||||
var g = this.findClosestDomain(e.topLevelDomain, c, d, this.topLevelThreshold);
|
||||
if (e.domain && g && g != e.topLevelDomain) {
|
||||
var h = e.domain;
|
||||
return f = h.substring(0, h.lastIndexOf(e.topLevelDomain)) + g, {
|
||||
address: e.address,
|
||||
domain: f,
|
||||
full: e.address + "@" + f
|
||||
}
|
||||
}
|
||||
}
|
||||
return !1
|
||||
},
|
||||
findClosestDomain: function(a, b, c, d) {
|
||||
d = d || this.topLevelThreshold;
|
||||
var e, f = 99,
|
||||
g = null;
|
||||
if (!a || !b) return !1;
|
||||
c || (c = this.sift3Distance);
|
||||
for (var h = 0; h < b.length; h++) {
|
||||
if (a === b[h]) return a;
|
||||
e = c(a, b[h]), f > e && (f = e, g = b[h])
|
||||
}
|
||||
return d >= f && null !== g ? g : !1
|
||||
},
|
||||
sift3Distance: function(a, b) {
|
||||
if (null == a || 0 === a.length) return null == b || 0 === b.length ? 0 : b.length;
|
||||
if (null == b || 0 === b.length) return a.length;
|
||||
for (var c = 0, d = 0, e = 0, f = 0, g = 5; c + d < a.length && c + e < b.length;) {
|
||||
if (a.charAt(c + d) == b.charAt(c + e)) f++;
|
||||
else {
|
||||
d = 0, e = 0;
|
||||
for (var h = 0; g > h; h++) {
|
||||
if (c + h < a.length && a.charAt(c + h) == b.charAt(c)) {
|
||||
d = h;
|
||||
break
|
||||
}
|
||||
if (c + h < b.length && a.charAt(c) == b.charAt(c + h)) {
|
||||
e = h;
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
c++
|
||||
}
|
||||
return (a.length + b.length) / 2 - f
|
||||
},
|
||||
splitEmail: function(a) {
|
||||
var b = a.trim().split("@");
|
||||
if (b.length < 2) return !1;
|
||||
for (var c = 0; c < b.length; c++)
|
||||
if ("" === b[c]) return !1;
|
||||
var d = b.pop(),
|
||||
e = d.split("."),
|
||||
f = "";
|
||||
if (0 == e.length) return !1;
|
||||
if (1 == e.length) f = e[0];
|
||||
else {
|
||||
for (var c = 1; c < e.length; c++) f += e[c] + ".";
|
||||
e.length >= 2 && (f = f.substring(0, f.length - 1))
|
||||
}
|
||||
return {
|
||||
topLevelDomain: f,
|
||||
domain: d,
|
||||
address: b.join("@")
|
||||
}
|
||||
},
|
||||
encodeEmail: function(a) {
|
||||
var b = encodeURI(a);
|
||||
return b = b.replace("%20", " ").replace("%25", "%").replace("%5E", "^").replace("%60", "`").replace("%7B", "{").replace("%7C", "|").replace("%7D", "}")
|
||||
}
|
||||
};
|
||||
"undefined" != typeof module && module.exports && (module.exports = Mailcheck), "function" == typeof define && define.amd && define("mailcheck", [], function() {
|
||||
return Mailcheck
|
||||
}), "undefined" != typeof window && window.jQuery && ! function(a) {
|
||||
a.fn.mailcheck = function(a) {
|
||||
var b = this;
|
||||
if (a.suggested) {
|
||||
var c = a.suggested;
|
||||
a.suggested = function(a) {
|
||||
c(b, a)
|
||||
}
|
||||
}
|
||||
if (a.empty) {
|
||||
var d = a.empty;
|
||||
a.empty = function() {
|
||||
d.call(null, b)
|
||||
}
|
||||
}
|
||||
a.email = this.val(), Mailcheck.run(a)
|
||||
}
|
||||
}(jQuery);
|
||||
|
||||
|
||||
/** ==================
|
||||
* END Email validation
|
||||
==================== */
|
BIN
modules/emailvalidation/logo.gif
Normal file
BIN
modules/emailvalidation/logo.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 263 B |
BIN
modules/emailvalidation/logo.png
Normal file
BIN
modules/emailvalidation/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
36
modules/emailvalidation/models/index.php
Normal file
36
modules/emailvalidation/models/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
4
modules/emailvalidation/translations/fr.php
Normal file
4
modules/emailvalidation/translations/fr.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
36
modules/emailvalidation/translations/index.php
Normal file
36
modules/emailvalidation/translations/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
36
modules/emailvalidation/views/index.php
Normal file
36
modules/emailvalidation/views/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
36
modules/emailvalidation/views/templates/admin/index.php
Normal file
36
modules/emailvalidation/views/templates/admin/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
36
modules/emailvalidation/views/templates/hook/index.php
Normal file
36
modules/emailvalidation/views/templates/hook/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
36
modules/emailvalidation/views/templates/index.php
Normal file
36
modules/emailvalidation/views/templates/index.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @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;
|
@ -3406,3 +3406,14 @@ div.concours{
|
||||
|
||||
#address1, #address2 { width: 50% }
|
||||
|
||||
.form-email-helper.hidden {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.form-email-helper {
|
||||
display:inline-block;
|
||||
width:100%;
|
||||
}
|
||||
.form-email-helper-link {
|
||||
display:inline;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user