File manager - Edit - /home/jardides/www/Jardi-design/images/administrator/php.tar
Back
AkeebaFEFLoader.php 0000644 00000015304 15247132345 0010106 0 ustar 00 <?php /** * Akeeba Frontend Framework (FEF) * * @package fef * @copyright (c) 2017-2021 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ /** * Loads Akeeba FEF CSS and JavaScript files. Cross-platform. */ class AkeebaFEFLoader { /** * Script dependencies, as loaded from dependencies.json * * @var array * @since 2.0.0 */ private $dependenciesCache = []; /** * Is the Akeeba FEF CSS Framework already loaded? * * @var bool * @since 2.0.0 */ private $loadedCSSFramework = false; /** * Is the Akeeba FEF JavaScript Framework already loaded? * * 0: no; 1: minimal; 2: full * * @var int * @since 2.0.0 */ private $loadedJSFramework = 0; /** * The platform-specific callback for loading an FEF CSS file given its basename. * * @var callable * @since 2.0.0 */ private $cssLoaderCallback; /** * The platform-specific callback for loading an FEF JavaScript file given its basename. * * @var callable * @since 2.0.0 */ private $jsLoaderCallback; /** * The platform we are currently running under. Auto-detected if not set. * * @var null|string * @since 2.0.0 */ private $platform; /** * Records the FEF JS files which have already been loaded. * * @var array * @since 2.0.0 */ private $loadedScripts = []; public function __construct(callable $cssLoaderCallback, callable $jsLoaderCallback, ?string $platform) { $this->cssLoaderCallback = $cssLoaderCallback; $this->jsLoaderCallback = $jsLoaderCallback; $this->platform = $platform ?? $this->getPlatform(); if (!in_array($this->platform, ['joomla', 'wordpress', 'standalone'])) { $this->platform = $this->getPlatform(); } } /** * Loads the Akeeba Frontend Framework, both CSS and JS * * @param bool $withReset Should I also load the CSS reset for the FEF container? (Only applies to Joomla) * @param bool $dark Include Dark Mode CSS? * * @return void * @since 1.0.3 */ public function loadCSSFramework(bool $withReset = true, bool $dark = false) { if ($this->loadedCSSFramework) { return; } $this->loadedCSSFramework = true; if ($withReset && ($this->platform === 'joomla')) { call_user_func($this->cssLoaderCallback, 'fef-reset'); } call_user_func($this->cssLoaderCallback, 'fef-' . $this->platform); if ($dark) { call_user_func($this->cssLoaderCallback, 'dark'); } } /** * Loads the Akeeba FEF JavaScript Framework * * @param bool $minimal Should I load the minimal framework (without optional features linked to FEF CSS?) * * @return void * @since 2.0.0 */ public function loadJSFramework(bool $minimal = false): void { $requested = $minimal ? 1 : 2; if ($this->loadedJSFramework >= $requested) { return; } // Should I load Akeeba.Loader? Check performed before I change the loadedJSFramework value. $initLoader = $this->loadedJSFramework === 0; // Update $this->loadedJSFramework so that loadFEFScript actually loads the scripts we tell it! $this->loadedJSFramework = $requested; // Always load the Akeeba.Loader script first. if ($initLoader) { $this->loadFEFScript('Loader', false); } if ($requested === 1) { // Minimal framework: only load System $this->loadFEFScript('System'); } else { // Full framework. Load the core FEF scripts. This pulls in System and its dependencies. if ($this->platform !== 'joomla') { $this->loadFEFScript('Menu'); } $this->loadFEFScript('Tabs'); $this->loadFEFScript('Dropdown'); } } /** * Has Akeeba FEF been already loaded? * * @return bool * @since 2.0.0 */ public function isLoadedCSSFramework(): bool { return $this->isLoadedCSSFramework(); } /** * Load an Akeeba FEF JavaScript file and its dependencies. * * @param string $name The basename of the file, e.g. "Tabs" * @param bool $defer Should I defer loading of the file? * * @since 2.0.0 */ public function loadFEFScript(string $name, bool $defer = true): void { // Make sure FEF is loaded at all if (!$this->loadedJSFramework) { return; } // If the script is already loaded return early. if (in_array($name, $this->loadedScripts)) { return; } $this->loadedScripts[] = $name; // Never defer loading for the Akeeba.Loader $defer = $defer && ($name !== 'Loader'); // Try to find the requested file $testFile = sprintf("%s/../js/%s.min.js", __DIR__, $name); if (!@is_file($testFile)) { // Did someone use the legacy name of a JS file? $name = ucfirst($name); $testFile = sprintf("%s/../js/%s.min.js", __DIR__, $name); } if (!@is_file($testFile)) { return; } // Load any dependencies before the script itself $dependencies = $this->getDependencies($name); foreach ($dependencies as $dependency) { $this->loadFEFScript($dependency); } // Use the platform-specific callback to actually load the script call_user_func($this->jsLoaderCallback, $name, $defer); } /** * Returns the auto-detected platform FEF is running under: joomla, wordpress or standalone. * * @return string * @since 2.0.0 * @see self::setPlatform */ private function getPlatform(): string { if (defined('_JEXEC')) { return 'joomla'; } if (defined('WPINC')) { return 'wordpress'; } return 'standalone'; } /** * Get the dependencies of an FEF script * * @param string $script * * @return array * @since 2.0.0 */ private function getDependencies(string $script): array { if (empty($this->dependenciesCache)) { self::loadDependencies(); } $dependencies = $this->dependenciesCache[$script] ?? []; return is_array($dependencies) ? $dependencies : [$dependencies]; } /** * Load the FEF script dependencies * * @return void * @since 2.0.0 */ private function loadDependencies(): void { // Reset the dependencies cache $this->dependenciesCache = []; // Make sure dependencies.json exists $sourceFile = __DIR__ . '/../js/dependencies.json'; if (!@file_exists($sourceFile) || !@is_file($sourceFile) || !@is_readable($sourceFile)) { return; } // Try to load the JSON file contents $dependenciesJSON = @file_get_contents($sourceFile); if (($dependenciesJSON === false) || empty(trim($dependenciesJSON))) { return; } // Try to decode the JSON file try { $this->dependenciesCache = @json_decode($dependenciesJSON, true, 512); } catch (Exception $e) { $this->dependenciesCache = null; } // Make sure the dependencies cache is an array $this->dependenciesCache = $this->dependenciesCache ?? []; if (!is_array($this->dependenciesCache)) { $this->dependenciesCache = []; } } } index.html 0000644 00000000000 15247143531 0006534 0 ustar 00 forms/fields.xml 0000644 00000003001 15247143531 0007661 0 ustar 00 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <form> <fields addfieldpath="/administrator/components/com_fabrik/models/fields" name="params"> <fieldset name="plg-validationrule-php"> <field name="php-message" type="text" description="PLG_VALIDATIONRULE_PHP_ERROR_DESC" label="PLG_VALIDATIONRULE_PHP_ERROR_LABEL" repeat="true" size="30" /> <field name="php-validation_condition" type="fabrikeditor" mode="php" description="PLG_VALIDATIONRULE_PHP_CONDITION_DESC" label="PLG_VALIDATIONRULE_PHP_CONDITION_LABEL" repeat="true"/> <field name="php-code" type="fabrikeditor" mode="php" description="PLG_VALIDATIONRULE_PHP_CODE_DESC" label="PLG_VALIDATIONRULE_PHP_CODE_LABEL" repeat="true"/> <field name="php-match" type="list" default="1" description="PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC" label="PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL" repeat="true"> <option value="0">PLG_VALIDATIONRULE_PHP_REPLACE</option> <option value="1">PLG_VALIDATIONRULE_PHP_MATCH</option> </field> <field name="tip_text" type="textarea" repeat="true" cols="30" rows="3" description="COM_FABRIK_VALIDATION_TIP_TEXT_DESC" label="COM_FABRIK_VALIDATION_TIP_TEXT_LABEL"/> <field name="icon" type="field" repeat="true" description="PLG_FABRIK_VALIDATION_ICON_DESC" label="PLG_FABRIK_VALIDATION_ICON_LABEL" /> </fieldset> </fields> </form> forms/index.html 0000644 00000000000 15247143531 0007662 0 ustar 00 language/eo-XX/eo-XX.plg_fabrik_validationrule_php.ini 0000644 00000003101 15247143531 0017000 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Erarmesaĝo" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Teksto montrata apud elemento se validigo fiaskas" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Postulo" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP-kodo kiu redonas prave se validigo bezonatas" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/pt-BR/pt-BR.plg_fabrik_validationrule_php.ini 0000644 00000003243 15247143531 0016757 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Mensagem de erro" PLG_VALIDATIONRULE_PHP_ERROR_DESC="O texto que é mostrado ao lado do elemento se a validação falhar" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Condição" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="Código PHP que retorna verdadeiro se a validação é para ser executado" PLG_VALIDATIONRULE_PHP_CODE_LABEL="Código PHP" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Corresponder ou Substituir" PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="Se 'Corresponder' for selecionado, seu script PHP deverpa retornar 'verdadeiro' (validado) ou 'falso' (falhou). Se 'Substituir' for selecionado, seu script PHP deverá retornar a string de substituição." PLG_VALIDATIONRULE_PHP_REPLACE="Substituir" PLG_VALIDATIONRULE_PHP_MATCH="Corresponder" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="Este é um campo requerido" language/pt-PT/pt-PT.plg_fabrik_validationrule_php.ini 0000644 00000003157 15247143531 0017023 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM ; PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Condição" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" PLG_VALIDATIONRULE_PHP_MATCH="Correspondência" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/da-DK/da-DK.plg_fabrik_validationrule_php.ini 0000644 00000003141 15247143531 0016644 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Fejlbesked" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Betingelse" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/fi-FI/fi-FI.plg_fabrik_validationrule_php.sys.ini 0000644 00000000741 15247143531 0017510 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_FABRIK_VALIDATIONRULE_PHP="Fabrik tarkistus - PHP" PLG_VALIDATIONRULE_PHP_HELP_SERVER="http://fabrikar.com/wiki/index.php/Validation_php" PLG_VALIDATIONRULE_PHP_DESCRIPTION="Suorita käyttäjän määrittelemä PHP-scripti tarkististamaan että lisätty tieto on pätevä" language/fi-FI/fi-FI.plg_fabrik_validationrule_php.ini 0000644 00000003125 15247143531 0016672 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Virheilmoitus" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Ehto" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP-koodi" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." PLG_VALIDATIONRULE_PHP_REPLACE="Korvaa" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" PLG_FABRIK_OPTIONS="Asetukset" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" PLG_FABRIK_VALIDATION_ICON_LABEL="Kuvake" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="Kenttä on pakollinen" language/de-DE/de-DE.plg_fabrik_validationrule_php.ini 0000644 00000003610 15247143531 0016641 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Fehlermeldung" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Dieser Text erscheint neben dem Feld, wenn die Validierung fehlschlägt; der Text wird durch JText geparsed, daher können Sprach-Overrides mit dem Joomla-Sprachen-Manager (Erweiterungen/Sprachen) zur Verfügung gestellt werden" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Bedingung" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="Leer lassen, wenn immer validiert werden soll. Andernfalls PHP-Code eingeben, der FALSE zurück gibt, wenn die Validierung nicht ausgeführt werden soll" PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP Code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Übereinstimmen oder Ersetzen" PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="Falls Übereinstimmen gewählt wurde, muss das PHP-Skript 'true' (validiert) oder 'false' (fehlgeschlagen) zurückgeben. Falls Ersetzen gewählt wurde, muss das PHP-Skript den einzusetzenden String zurückgeben." PLG_VALIDATIONRULE_PHP_REPLACE="Ersetzen" PLG_VALIDATIONRULE_PHP_MATCH="Übereinstimmen" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="Pflichtfeld" language/de-DE/de-DE.plg_fabrik_validationrule_php.sys.ini 0000644 00000000715 15247143531 0017461 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_FABRIK_VALIDATIONRULE_PHP="Fabrik Validierung - PHP" PLG_VALIDATIONRULE_PHP_HELP_SERVER="http://fabrikar.com/wiki/index.php/Validation_php" PLG_VALIDATIONRULE_PHP_DESCRIPTION="Führt ein eigenes PHP Script zur Überprüfung der eingegebenen Daten aus." language/pl-PL/pl-PL.plg_fabrik_validationrule_php.ini 0000644 00000003154 15247143531 0016760 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Wiadomość o błędzie" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Tekst który pojawia się obok elementy po błędzie walidacji" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Warunek" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="Kod PHP który zostanie zwrócony jeżeli walidacja ma być uruchomiona" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="To jest pole wymagane" language/el-GR/el-GR.plg_fabrik_validationrule_php.ini 0000644 00000003217 15247143531 0016724 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Μήνυμα λάθους" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Condition" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="Το πεδίο έχει κανόνες επικύρωσης" language/sk-SK/sk-SK.plg_fabrik_validationrule_php.ini 0000644 00000003140 15247143531 0016763 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM ; PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Stav" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/ro-RO/ro-RO.plg_fabrik_validationrule_php.ini 0000644 00000003144 15247143531 0017003 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM ; PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Conditie" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/fr-FR/fr-FR.plg_fabrik_validationrule_php.ini 0000644 00000003251 15247143531 0016736 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Message d'erreur" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Le texte qui est affiché près de l'élément si la validation échoue" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Condition" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="Code PHP qui retourne 'true' si la validation doit être exécutée" PLG_VALIDATIONRULE_PHP_CODE_LABEL="Code PHP" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Correspondance ou Remplacement" PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="Si Correspondance est sélectionné, votre script PHP devrait retourner 'true' (validé) ou 'false' (échoué). Si Remplacement est sélectionné, votre code PHP devrait retourner votre format de remplacement." PLG_VALIDATIONRULE_PHP_REPLACE="Remplacement" PLG_VALIDATIONRULE_PHP_MATCH="Correspondance" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="Ce champ est obligatoire" language/fr-FR/fr-FR.plg_fabrik_validationrule_php.sys.ini 0000644 00000000747 15247143531 0017562 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_FABRIK_VALIDATIONRULE_PHP="Validation Fabrik - PHP" PLG_VALIDATIONRULE_PHP_HELP_SERVER="http://fabrikar.com/wiki/index.php/Validation_php" PLG_VALIDATIONRULE_PHP_DESCRIPTION="Fait tourner un script PHP défini par l'utilisateur pour déterminer si la donnée soumise est valide" language/ar-AA/ar-AA.plg_fabrik_validationrule_php.ini 0000644 00000003146 15247143531 0016653 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM ; PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="الشرط" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/uk-UA/uk-UA.plg_fabrik_validationrule_php.ini 0000644 00000003205 15247143531 0016751 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Повідомлення про помилку" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Умова" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/et-EE/et-EE.plg_fabrik_validationrule_php.ini 0000644 00000003213 15247143531 0016702 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Veateade" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Tekst, mis ilmub elemendi kõrvale juhul, kui kehtivuskontroll andmeid läbi ei lase" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Tingimus" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP kood, mille tõesuse korral käivitub kehtivuskontroll" PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP kood" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Võrdle või asenda" PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="Kui valitud on 'Võrdle', siis peab PHP avaldis olema tõene (true) või väär (false). Esimesel juhul lastakse andmed läbi, teisel juhul mitte. Kui valida 'Asenda', siis peab PHP tagastama asendusstringi. " PLG_VALIDATIONRULE_PHP_REPLACE="Asenda" PLG_VALIDATIONRULE_PHP_MATCH="Võrdle" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="See on kohustuslik väli!" language/et-EE/et-EE.plg_fabrik_validationrule_php.sys.ini 0000644 00000000757 15247143531 0017531 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_FABRIK_VALIDATIONRULE_PHP="Fabriku kehtivuskontroll - PHP" PLG_VALIDATIONRULE_PHP_HELP_SERVER="http://fabrikar.com/wiki/index.php/Validation_php" PLG_VALIDATIONRULE_PHP_DESCRIPTION="Käivitab kasutaja määratud PHP skripti, et teha kindlaks, kas sisestatavad andmed vastavad nõuetele" language/en-GB/en-GB.plg_fabrik_validationrule_php.sys.ini 0000644 00000000712 15247143531 0017502 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_FABRIK_VALIDATIONRULE_PHP="Fabrik Validation - PHP" PLG_VALIDATIONRULE_PHP_HELP_SERVER="http://fabrikar.com/wiki/index.php/Validation_php" PLG_VALIDATIONRULE_PHP_DESCRIPTION="Run a user defined PHP script to determine if the submitted data is valid" language/en-GB/en-GB.plg_fabrik_validationrule_php.ini 0000644 00000003113 15247143531 0016663 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Condition" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." PLG_VALIDATIONRULE_PHP_REPLACE="Replace" PLG_VALIDATIONRULE_PHP_MATCH="Match" PLG_FABRIK_OPTIONS="Options" PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/ja-JP/ja-JP.plg_fabrik_validationrule_php.ini 0000644 00000003142 15247143531 0016707 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM ; PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="条件" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/ru-RU/ru-RU.plg_fabrik_validationrule_php.ini 0000644 00000003367 15247143531 0017042 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Сообщение об ошибке" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Текст, который отображается возле элемента, если проверка не пройдена" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Condition" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="Если PHP выражение возвращает правду, то валидация будет выполняться" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/zh-TW/zh-TW.plg_fabrik_validationrule_php.ini 0000644 00000003142 15247143531 0017027 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM ; PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="條件" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" PLG_FABRIK_VALIDATION_ICON_LABEL="圖示" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/nl-NL/nl-NL.plg_fabrik_validationrule_php.ini 0000644 00000003334 15247143531 0016750 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Foutmelding" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Melding indien niet aan de validatievoorwaarde is voldaan" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="conditie" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code die de validatie laat lopen als aan de voorwaarde voldaan is <br />Gebruik {placeholders}<br />vb.<br />return '{listname___elementname}' == 1;<br /><br />Leeg laten om altijd te valideren" PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="Dit is een verplicht veld" language/es-ES/es-ES.plg_fabrik_validationrule_php.sys.ini 0000644 00000000744 15247143531 0017557 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_FABRIK_VALIDATIONRULE_PHP="Validación Fabrik - PHP" PLG_VALIDATIONRULE_PHP_HELP_SERVER="http://fabrikar.com/wiki/index.php/Validation_php" PLG_VALIDATIONRULE_PHP_DESCRIPTION="Ejecuta un código PHP definido por el usuario para determinar si los datos enviados son válidos." language/es-ES/es-ES.plg_fabrik_validationrule_php.ini 0000644 00000003155 15247143531 0016741 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Mensaje de error" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Texto mostrado al lado del campo si la validación falla" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Condición" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="Código PHP que devuelve true si la validación es correcta" PLG_VALIDATIONRULE_PHP_CODE_LABEL="Código PHP" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Comparar o Sustituir" PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="Si se selecciona Comparar, el guion PHP debería devolver 'verdadero' (comprobado) o 'falso' (fallado). Si se selecciona Sustituir, el guion PHP debería devolver la cadena de sustitución." PLG_VALIDATIONRULE_PHP_REPLACE="Sustituir" PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="Este es un campo requerido" language/it-IT/it-IT.plg_fabrik_validationrule_php.ini 0000644 00000003400 15247143531 0016756 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" PLG_VALIDATIONRULE_PHP_ERROR_DESC="Il testo che è mostrato vicino all'elemento se la validazione fallisce" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Condizione" PLG_VALIDATIONRULE_PHP_CONDITION_DESC="Codice PHP che ritorna True se la validazione è in esecuzione" PLG_VALIDATIONRULE_PHP_CODE_LABEL="Codice PHP" PLG_VALIDATIONRULE_PHP_CODE_DESC="Il codice PHP da eseguire. Il valore di questo elemento si trova nella variabile $data. Altri valori dell'elemento si trovano in $_REQUEST (Usare JFactory::getApplication()->input->get() per accedervi). Restituisce Vero/Falso (se di seguito si sceglie 'corrispondenza') o sostituisce invece la stringa (se di seguito si sceglie 'sostituisci')." PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Corrispondenza o Sostituzione" PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="Nel caso di Corrispondenza lo script PHP deve restituire true (validato) o false (non a buon fine). Nel caso di Sostituzione, lo script PHP deve restituire la stringa da sostituire." PLG_VALIDATIONRULE_PHP_REPLACE="Sostituzione" PLG_VALIDATIONRULE_PHP_MATCH="Corrispondenza" PLG_FABRIK_OPTIONS="Opzioni" PLG_FABRIK_VALIDATION_ICON_DESC="Nome dell'icona Bootstrap (o il nome immagine per J2.5), lasciare fuori il prefisso 'icon-'. Mostrato nel modulo, dopo la convalida del testo spiegazione <br />Lasciare vuoto per impostazione predefinita il set di icone nelle impostazioni di convalida del plugin" PLG_FABRIK_VALIDATION_ICON_LABEL="Icona" ;FRONT END PLG_VALIDATIONRULE_PHP_LABEL="Questo campo richiesto" language/it-IT/it-IT.plg_fabrik_validationrule_php.sys.ini 0000644 00000000733 15247143531 0017601 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_FABRIK_VALIDATIONRULE_PHP="Validazione Fabrik - PHP" PLG_VALIDATIONRULE_PHP_HELP_SERVER="http://fabrikar.com/wiki/index.php/Validation_php" PLG_VALIDATIONRULE_PHP_DESCRIPTION="Esegue un controllo di validità sul dato, basato su uno script PHP definito dall'utente." language/lt-LT/lt-LT.plg_fabrik_validationrule_php.ini 0000644 00000003143 15247143531 0016776 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM ; PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Error message" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Sąlyga" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" language/tr-TR/tr-TR.plg_fabrik_validationrule_php.ini 0000644 00000003136 15247143531 0017030 0 ustar 00 ; Fabrik 3.0 ; Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. ; License GNU/GPL http://www.gnu.org/copyleft/gpl.html ; Note : All ini files need to be saved as UTF-8 - No BOM PLG_VALIDATIONRULE_PHP_ERROR_LABEL="Hata mesajı" ; PLG_VALIDATIONRULE_PHP_ERROR_DESC="The text that is shown next to the element if the validation fails" PLG_VALIDATIONRULE_PHP_CONDITION_LABEL="Durum" ; PLG_VALIDATIONRULE_PHP_CONDITION_DESC="PHP code that returns true if the validation is to be run" ; PLG_VALIDATIONRULE_PHP_CODE_LABEL="PHP code" ; PLG_VALIDATIONRULE_PHP_CODE_DESC="The PHP code to run. This element's value is in $data. Other element values can be found in $_REQUEST (use JFactory::getApplication()->input->get() to access). Return either true/false (if 'match' selected below) or the replacement string (if 'replace' selected below)." ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_LABEL="Match or Replace" ; PLG_VALIDATIONRULE_PHP_MATCH_OR_REPLACE_DESC="If Match is selected, your PHP script should return 'true' (validated) or 'false' (failed). If Replace is selected, your PHP script should return the replacement string." ; PLG_VALIDATIONRULE_PHP_REPLACE="Replace" ; PLG_VALIDATIONRULE_PHP_MATCH="Match" ; PLG_FABRIK_OPTIONS="Options" ; PLG_FABRIK_VALIDATION_ICON_DESC="Bootstrap icon name (or image name for J2.5), leave off 'icon-' prefix. Shown in the form, next to validation explaination text <br />Leave blank to default to the icon set in the validation plugin's settings" ; PLG_FABRIK_VALIDATION_ICON_LABEL="Icon" ;FRONT END ; PLG_VALIDATIONRULE_PHP_LABEL="This is a required field" php.php 0000644 00000006715 15247143531 0006062 0 ustar 00 <?php /** * PHP Validation Rule * * @package Joomla.Plugin * @subpackage Fabrik.validationrule.php * @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html */ // No direct access defined('_JEXEC') or die('Restricted access'); use \Joomla\Registry\Registry; // Require the abstract plugin class require_once COM_FABRIK_FRONTEND . '/models/validation_rule.php'; /** * PHP Validation Rule * * @package Joomla.Plugin * @subpackage Fabrik.validationrule.php * @since 3.0 */ class PlgFabrik_ValidationrulePhp extends PlgFabrik_Validationrule { /** * Plugin name * * @var string */ protected $pluginName = 'php'; /** * Validate the elements data against the rule * * @param string $data To check * @param int $repeatCounter Repeat group counter * * @return bool true if validation passes, false if fails */ public function validate($data, $repeatCounter = 0) { // For multi-select elements if (is_array($data)) { $data = implode('', $data); } $params = $this->getParams(); $doMatch = $params->get('php-match'); if ($doMatch) { return $this->_eval($data, $repeatCounter); } return true; } /** * Checks if the validation should replace the submitted element data * if so then the replaced data is returned otherwise original data returned * * @param string $data Original data * @param int $repeatCounter Repeat group counter * * @return string original or replaced data */ public function replace($data, $repeatCounter = 0) { $params = $this->getParams(); $doMatch = $params->get('php-match'); if (!$doMatch) { return $this->_eval($data, $repeatCounter); } return $data; } /** * Run eval * * @param string $data Original data * @param int $repeatCounter Repeat group counter * * @return string Evaluated PHP function */ private function _eval($data, $repeatCounter = 0) { $params = $this->getParams(); $elementModel = $this->elementModel; $formModel = $elementModel->getFormModel(); $formData = $formModel->formData; $w = new FabrikWorker; $phpCode = $params->get('php-code'); $phpCode = $w->parseMessageForPlaceHolder($phpCode, $formData, true, true); /** * $$$ hugh - added trigger_error(""), which will "clear" any existing errors, * otherwise logEval will pick up and report notices and warnings generated * by the rest of our code, which can be VERY confusing. Note that this required a tweak * to logEval, as error_get_last won't be null after doing this, but $error['message'] will * be empty. * $$$ hugh - moved the $trigger_error() into a helper func */ FabrikWorker::clearEval(); $return = @eval($phpCode); FabrikWorker::logEval($return, 'Caught exception on php validation of ' . $elementModel->getFullName(true, false) . ': %s'); return $return; } /** * Get the base icon image as defined by the J Plugin options * * @since 3.1b2 * * @return string */ public function iconImage() { $plugin = JPluginHelper::getPlugin('fabrik_validationrule', $this->pluginName); $globalParams = new Registry($plugin->params); $default = $globalParams->get('icon', 'star'); $params = $this->getParams(); return $params->get('icon', $default); } } php.xml 0000644 00000002124 15247143531 0006061 0 ustar 00 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <extension group="fabrik_validationrule" method="upgrade" type="plugin" version="3"> <name>plg_fabrik_validationrule_php</name> <author>Media A-Team, Inc.</author> <creationDate>April 2017</creationDate> <copyright>Copyright (C) 2005-2017 Media A-Team, Inc. - All rights reserved.</copyright> <license>GNU/GPL http://www.gnu.org/copyleft/gpl.html</license> <authorEmail>hugh.messenger@gmail.com</authorEmail> <authorUrl>www.fabrikar.com</authorUrl> <version>3.6</version> <help url="PLG_VALIDATIONRULE_PHP_HELP_SERVER"/> <description>PLG_VALIDATIONRULE_PHP_DESCRIPTION</description> <files> <filename plugin="php">php.php</filename> <filename>index.html</filename> <folder>forms</folder> <folder>language</folder> <folder>scripts</folder> </files> <config> <fields name="params"> <fieldset label="PLG_FABRIK_OPTIONS" name="params"> <field name="icon" type="text" default="star" description="PLG_FABRIK_VALIDATION_ICON_DESC" label="PLG_FABRIK_VALIDATION_ICON_LABEL"/> </fieldset> </fields> </config> </extension> scripts/index.html 0000644 00000000000 15247143531 0010223 0 ustar 00
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings