first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
/**
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awared by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*/
(function(){
'use strict';
// Initialize all user events when DOM ready
document.addEventListener('DOMContentLoaded', initConfigForm, false);
function initConfigForm() {
var hidingTimeNode;
var eventValueNodes;
hidingTimeNode = document.querySelector('#RC_PGANALYTICS_SSSR');
hidingTimeNode.addEventListener('input', validateSiteSpeedSampleRate);
eventValueNodes = document.querySelectorAll('.js-event-value');
eventValueNodes.forEach(function(eventValueNode) {
eventValueNode.addEventListener('input', validateEventValue);
});
}
function validateSiteSpeedSampleRate(event) {
var min = 1;
var max = 100;
var isNumber = /^\d+$/;
var inputValue = event.target.value;
if (isNumber.test(inputValue)) {
if (Number(inputValue) > max) {
event.target.value = max;
} else if (Number(inputValue) < min) {
event.target.value = min;
}
} else {
event.target.value = min;
}
}
function validateEventValue(event) {
var min = 0;
var isNumber = /^\d+$/;
var inputValue = event.target.value;
if (isNumber.test(inputValue)) {
if (Number(inputValue) < min) {
event.target.value = min;
}
} else {
event.target.value = min;
}
}
})();

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 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-2011 PrestaShop SA
* @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;