From 8b9d97e80a50bf05c1cf3c61b7a27645e6e5ff2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=81Z=C3=81R=20Imre=20AI=20Agent?=
Date: Thu, 16 Jul 2026 11:30:02 +0200
Subject: [PATCH] feat(pkg): add Easy File Uploader (pristine upstream)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Pristine Easy File Uploader manifest-mapped from github.com/ollily/easyfileuploader via lib/jmap.py (upstream master; installed 2.7.8).
Signed-off-by: LÁZÁR Imre
Assisted-by: claude-code@claude-opus-4-8
---
.../de-DE/de-DE.mod_easyfileuploader.ini | 104 ++++
.../de-DE/de-DE.mod_easyfileuploader.sys.ini | 15 +
.../en-GB/en-GB.mod_easyfileuploader.ini | 104 ++++
.../en-GB/en-GB.mod_easyfileuploader.sys.ini | 15 +
.../en-US/en-US.mod_easyfileuploader.ini | 104 ++++
.../en-US/en-US.mod_easyfileuploader.sys.ini | 15 +
.../es-ES/es-ES.mod_easyfileuploader.ini | 104 ++++
.../es-ES/es-ES.mod_easyfileuploader.sys.ini | 15 +
.../fr-FR/fr-FR.mod_easyfileuploader.ini | 105 ++++
.../fr-FR/fr-FR.mod_easyfileuploader.sys.ini | 17 +
.../media/mod_easyfileuploader/css/index.html | 1 +
.../media/mod_easyfileuploader/css/styles.css | 70 +++
.../mod_easyfileuploader/CHANGELOG.php | 159 ++++++
.../Helper/EasyFileUploaderHelper.php | 486 ++++++++++++++++++
.../mod_easyfileuploader/Helper/index.html | 1 +
.../elements/easydiagnostic.php | 180 +++++++
.../elements/fixedfolderlist.php | 105 ++++
.../mod_easyfileuploader/elements/index.html | 1 +
.../modules/mod_easyfileuploader/index.html | 1 +
.../modules/mod_easyfileuploader/license.txt | 339 ++++++++++++
.../mod_easyfileuploader.php | 51 ++
.../modules/mod_easyfileuploader/readme.txt | 75 +++
.../mod_easyfileuploader/tmpl/default.php | 116 +++++
.../mod_easyfileuploader/tmpl/index.html | 1 +
24 files changed, 2184 insertions(+)
create mode 100644 packages/easyfileuploader/language/de-DE/de-DE.mod_easyfileuploader.ini
create mode 100644 packages/easyfileuploader/language/de-DE/de-DE.mod_easyfileuploader.sys.ini
create mode 100644 packages/easyfileuploader/language/en-GB/en-GB.mod_easyfileuploader.ini
create mode 100644 packages/easyfileuploader/language/en-GB/en-GB.mod_easyfileuploader.sys.ini
create mode 100644 packages/easyfileuploader/language/en-US/en-US.mod_easyfileuploader.ini
create mode 100644 packages/easyfileuploader/language/en-US/en-US.mod_easyfileuploader.sys.ini
create mode 100644 packages/easyfileuploader/language/es-ES/es-ES.mod_easyfileuploader.ini
create mode 100644 packages/easyfileuploader/language/es-ES/es-ES.mod_easyfileuploader.sys.ini
create mode 100644 packages/easyfileuploader/language/fr-FR/fr-FR.mod_easyfileuploader.ini
create mode 100644 packages/easyfileuploader/language/fr-FR/fr-FR.mod_easyfileuploader.sys.ini
create mode 100644 packages/easyfileuploader/media/mod_easyfileuploader/css/index.html
create mode 100644 packages/easyfileuploader/media/mod_easyfileuploader/css/styles.css
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/CHANGELOG.php
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/Helper/EasyFileUploaderHelper.php
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/Helper/index.html
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/elements/easydiagnostic.php
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/elements/fixedfolderlist.php
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/elements/index.html
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/index.html
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/license.txt
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/mod_easyfileuploader.php
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/readme.txt
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/tmpl/default.php
create mode 100644 packages/easyfileuploader/modules/mod_easyfileuploader/tmpl/index.html
diff --git a/packages/easyfileuploader/language/de-DE/de-DE.mod_easyfileuploader.ini b/packages/easyfileuploader/language/de-DE/de-DE.mod_easyfileuploader.ini
new file mode 100644
index 00000000..4c830e11
--- /dev/null
+++ b/packages/easyfileuploader/language/de-DE/de-DE.mod_easyfileuploader.ini
@@ -0,0 +1,104 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. front-end text
+; b. back-end text
+;
+
+; Keys in XML details file
+MOD_EASYFILEUPLOADER = "Easy File Uploader"
+MOD_EFU_DESCRIPTION = "Easy File Uploader
Developed by Michael Gilkes
Valor Apps
Description
This is a flexible file upload module. It allows the administrator to specify a destination folder, and allows the user to upload files to it. The administrator can also specify how many files that can be uploaded simultaneously, as well as the text in the front end. You can even have more then one module of its kind on the same page.
"
+
+; Basic Required Fields
+MOD_EFU_PARENT_LABEL = "Choose the Parent Folder"
+MOD_EFU_PARENT_DESC = "This is the parent folder where the files are stored."
+MOD_EFU_FOLDER_LABEL = "Choose the Upload Folder"
+MOD_EFU_FOLDER_DESC = "This is the folder where the uploaded files are stored."
+MOD_EFU_MAXSIZE_LABEL = "Maximum File Size (bytes)"
+MOD_EFU_MAXSIZE_DESC = "This is the maximum allowable file size, in bytes, that can be uploaded."
+
+; Custom Text Fields
+MOD_EFU_CUSTOM_SPACER = "Custom Text"
+MOD_EFU_CUSTOM_LABEL = "Use Custom Text"
+MOD_EFU_CUSTOM_DESC = "This determines whether you use the custom text entered here, or whether you use the text from language keys."
+MOD_EFU_LABELTEXT_LABEL = "Label Text"
+MOD_EFU_LABELTEXT_DESC = "This is the text that labels the upload file form."
+MOD_EFU_BUTTON_LABEL = "Submit Button Text"
+MOD_EFU_BUTTON_DESC = "This is the text that is on the button to upload the file."
+MOD_EFU_QUESTION_LABEL = "Replace Files Question"
+MOD_EFU_QUESTION_DESC = "This is the text that labels the option of whether the user wants to replace existing files."
+MOD_EFU_YESTEXT_LABEL = "Yes answer text"
+MOD_EFU_YESTEXT_DESC = "You are free to customize the YES answer text to the replace question."
+MOD_EFU_NOTEXT_LABEL = "No answer text"
+MOD_EFU_NOTEXT_DESC = "You are free to customize the NO answer text to the replace question."
+
+; Security
+MOD_EFU_DETAILS_SPACER = "Security Details"
+MOD_EFU_FILETYPES_LABEL = "Permitted file types (separate by semi-colon)"
+MOD_EFU_FILETYPES_DESC = "This is a list of the file types that are permitted to be uploaded (separated by semi-colon). Type asterisk (*) to allow any type."
+MOD_EFU_DEFAULT_REPLACE_LABEL = "Replace by Default"
+MOD_EFU_DEFAULT_REPLACE_DESC = "This makes the administrator specify that all uploads will replace any existing files with the same name. Choosing 'Yes' overrides the option below."
+MOD_EFU_REPLACE_LABEL = "Include option to replace existing file?"
+MOD_EFU_REPLACE_DESC = "This allows the administrator to decide whether to include an option in the front-end to replace en existing file with the same file name as the file to be uploaded."
+MOD_EFU_SCRIPTS_IN_ARCHIVE_LABEL = "Allow scripts in archive"
+MOD_EFU_SCRIPTS_IN_ARCHIVE_DESC = "Choose whether to upload archives that contain script files"
+
+; Formatting
+MOD_EFU_FORMAT_SPACER = "Uploader Format"
+MOD_EFU_VARIABLE_LABEL = "Input File Variable Name"
+MOD_EFU_VARIABLE_DESC = "This allows you to specify the variable name of the input file. Only change this if you intend to have more than one Easy File Uploader module on a single article page. In that case, each module should have its own unique name."
+MOD_EFU_MULTIPLE_LABEL = "Number of Files to Upload"
+MOD_EFU_MULTIPLE_DESC = "Select the number of upload file fields to include. The default is to upload 1 file, but you may select up to 10 files to upload simultaneously."
+MOD_EFU_BGCOLOR_LABEL = "Results Box Background Colour"
+MOD_EFU_BGCOLOR_DESC = "The background colour of the Results information box."
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_LABEL = "Show 'No File Uploaded' Notice"
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_DESC = "Choose whether to show a notice when no file was uploaded for the upload fields. The default is 'Yes'."
+
+; Module Class
+MOD_EFU_FILTER_SPACER = "Class Filtering"
+MOD_EFU_SUFFIX_LABEL = "Module Class Suffix"
+MOD_EFU_SUFFIX_DESC = "Module Class Suffix"
+
+; Advanced Features
+MOD_EFU_ADVANCED_SPACER = "Advanced"
+MOD_EFU_USER_LABEL = "Upload to Username subfolders"
+MOD_EFU_USER_DESC = "Setting this to YES will upload files to a subfolder in the Upload folder with the user's username."
+MOD_EFU_DIAGNOSTIC_LABEL = "Diagnostic Information"
+MOD_EFU_DIAGNOSTIC_DESC = "This lists the MIME detection ability of your server, and links to get support for the module."
+
+; Front-end Text and Errors
+MOD_EFU_UPLOAD_SUCCESSFUL = "Upload war erfolgreich"
+MOD_EFU_UPLOAD_UNSUCCESSFUL = "Upload nicht erfolgreich."
+MOD_EFU_NAME = "Name"
+MOD_EFU_TYPE = "Typ"
+MOD_EFU_SIZE = "Größe"
+MOD_EFU_BYTES = "bytes"
+MOD_EFU_LABEL_TEXT = "Wähle eine Datei zum Hochladen aus:"
+MOD_EFU_BUTTON_TEXT = "Datei hochladen"
+MOD_EFU_QUESTION_TEXT = "Ersetzen Sie vorhandene Dateien durch hochgeladene Dateien?"
+MOD_EFU_RETURN_CODE = "Return Code"
+MOD_EFU_REPLACEMENT_APPROVED = "Ersatz zugelassen. Vorherige Datei ersetzt."
+MOD_EFU_ALREADY_EXISTS = "existiert bereits."
+MOD_EFU_TOO_LARGE_ERROR = "ERROR: Die hochgeladene Datei ist zu groß. Sie muss kleiner sein als "
+MOD_EFU_INVALID_ERROR = "ERROR: Der hochgeladene Dateityp ist nicht erlaubt."
+MOD_EFU_BROWSER_MIME_ERROR = "MIME durch Browser erkannt: "
+MOD_EFU_PHP_MIME_ERROR = "MIME durch PHP erkannt: "
+MOD_EFU_INI_SIZE_ERROR = "Die hochgeladene Datei überschreitet die upload_max_filesize Directive in php.ini"
+MOD_EFU_FORM_SIZE_ERROR = "Die hochgeladene Datei überschreitet die MAX_FILE_SIZE Directive aus der Vorgabe"
+MOD_EFU_PARTIAL_ERROR = "Die hochgeladene Datei wurde nur teilweise hochgeladen"
+MOD_EFU_NO_FILE_ERROR = "Es wurde keine Datei hochgeladen"
+MOD_EFU_NO_TMP_DIR_ERROR = "Temporäres Verzechnis fehlt"
+MOD_EFU_CANT_WRITE_ERROR = "Fehler beim Schreiben"
+MOD_EFU_EXTENSION_ERROR = "Datei Upload wurde von Extension gestoppt"
+MOD_EFU_UNKNOWN_ERROR = "Unbekannter Upload Fehler"
+MOD_EFU_NULL_BYTE_FOUND = "Security Fehler - Null byte im Dateiname"
+MOD_EFU_FORBIDDEN_SCRIPT_FOUND = "Security Fehler - Verbotene Scriptdatei erkannt"
+MOD_EFU_PHP_TAG_FOUND = "Security Fehler - PHP tag in Datei erkannt"
+MOD_EFU_SHORT_TAG_FOUND = "Security Fehler - PHP Short tag in Datei erkannt"
+MOD_EFU_FORBIDDEN_IN_ARCHIVE_FOUND = "Security Error - Verbotene Scriptdatei in Archiv erkannt"
+
+; Documentation
+MOD_EFU_DOCUMENTATION = "https://www.valorapps.com/documentation/13-easy-file-uploader-documentation.html?tmpl=component"
diff --git a/packages/easyfileuploader/language/de-DE/de-DE.mod_easyfileuploader.sys.ini b/packages/easyfileuploader/language/de-DE/de-DE.mod_easyfileuploader.sys.ini
new file mode 100644
index 00000000..2afdf77f
--- /dev/null
+++ b/packages/easyfileuploader/language/de-DE/de-DE.mod_easyfileuploader.sys.ini
@@ -0,0 +1,15 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. during the extension's installation, to allow localising the post-installation messages,
+; b. to build the administrator Components menu,
+; c. to localise component parameters and menu parameters and
+; d. in the Extension Manager->Manage
+;
+
+
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File Uploader
Developed by Michael Gilkes
Valor Apps
Description
This is a flexible file upload module. It allows the administrator to specify a destination folder, and allows the user to upload files to it. The administrator can also specify how many files that can be uploaded simultaneously, as well as the text in the front end. You can even have more then one module of its kind on the same page.
"
diff --git a/packages/easyfileuploader/language/en-GB/en-GB.mod_easyfileuploader.ini b/packages/easyfileuploader/language/en-GB/en-GB.mod_easyfileuploader.ini
new file mode 100644
index 00000000..c10b386c
--- /dev/null
+++ b/packages/easyfileuploader/language/en-GB/en-GB.mod_easyfileuploader.ini
@@ -0,0 +1,104 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. front-end text
+; b. back-end text
+;
+
+; Keys in XML details file
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File Uploader
Developed by Michael Gilkes
Valor Apps
Description
This is a flexible file upload module. It allows the administrator to specify a destination folder, and allows the user to upload files to it. The administrator can also specify how many files that can be uploaded simultaneously, as well as the text in the front end. You can even have more then one module of its kind on the same page.
"
+
+; Basic Required Fields
+MOD_EFU_PARENT_LABEL="Choose the Parent Folder"
+MOD_EFU_PARENT_DESC="This is the parent folder where the files are stored."
+MOD_EFU_FOLDER_LABEL="Choose the Upload Folder"
+MOD_EFU_FOLDER_DESC="This is the folder where the uploaded files are stored."
+MOD_EFU_MAXSIZE_LABEL="Maximum File Size (bytes)"
+MOD_EFU_MAXSIZE_DESC="This is the maximum allowable file size, in bytes, that can be uploaded."
+
+; Custom Text Fields
+MOD_EFU_CUSTOM_SPACER="Custom Text"
+MOD_EFU_CUSTOM_LABEL="Use Custom Text"
+MOD_EFU_CUSTOM_DESC="This determines whether you use the custom text entered here, or whether you use the text from language keys."
+MOD_EFU_LABELTEXT_LABEL="Label Text"
+MOD_EFU_LABELTEXT_DESC="This is the text that labels the upload file form."
+MOD_EFU_BUTTON_LABEL="Submit Button Text"
+MOD_EFU_BUTTON_DESC="This is the text that is on the button to upload the file."
+MOD_EFU_QUESTION_LABEL="Replace Files Question"
+MOD_EFU_QUESTION_DESC="This is the text that labels the option of whether the user wants to replace existing files."
+MOD_EFU_YESTEXT_LABEL="Yes answer text"
+MOD_EFU_YESTEXT_DESC="You are free to customize the YES answer text to the replace question."
+MOD_EFU_NOTEXT_LABEL="No answer text"
+MOD_EFU_NOTEXT_DESC="You are free to customize the NO answer text to the replace question."
+
+; Security
+MOD_EFU_DETAILS_SPACER="Security Details"
+MOD_EFU_FILETYPES_LABEL="Permitted file types (separate by semi-colon)"
+MOD_EFU_FILETYPES_DESC="This is a list of the file types that are permitted to be uploaded (separated by semi-colon). Type asterisk (*) to allow any type."
+MOD_EFU_DEFAULT_REPLACE_LABEL="Replace by Default"
+MOD_EFU_DEFAULT_REPLACE_DESC="This makes the administrator specify that all uploads will replace any existing files with the same name. Choosing 'Yes' overrides the option below."
+MOD_EFU_REPLACE_LABEL="Include option to replace existing file?"
+MOD_EFU_REPLACE_DESC="This allows the administrator to decide whether to include an option in the front-end to replace en existing file with the same file name as the file to be uploaded."
+MOD_EFU_SCRIPTS_IN_ARCHIVE_LABEL="Allow scripts in archive"
+MOD_EFU_SCRIPTS_IN_ARCHIVE_DESC="Choose whether to upload archives that contain script files"
+
+; Formatting
+MOD_EFU_FORMAT_SPACER="Uploader Format"
+MOD_EFU_VARIABLE_LABEL="Input File Variable Name"
+MOD_EFU_VARIABLE_DESC="This allows you to specify the variable name of the input file. Only change this if you intend to have more than one Easy File Uploader module on a single article page. In that case, each module should have its own unique name."
+MOD_EFU_MULTIPLE_LABEL="Number of Files to Upload"
+MOD_EFU_MULTIPLE_DESC="Select the number of upload file fields to include. The default is to upload 1 file, but you may select up to 10 files to upload simultaneously."
+MOD_EFU_BGCOLOR_LABEL="Results Box Background Colour"
+MOD_EFU_BGCOLOR_DESC="The background colour of the Results information box."
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_LABEL="Show 'No File Uploaded' Notice"
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_DESC="Choose whether to show a notice when no file was uploaded for the upload fields. The default is 'Yes'."
+
+; Module Class
+MOD_EFU_FILTER_SPACER="Class Filtering"
+MOD_EFU_SUFFIX_LABEL="Module Class Suffix"
+MOD_EFU_SUFFIX_DESC="Module Class Suffix"
+
+; Advanced Features
+MOD_EFU_ADVANCED_SPACER="Advanced"
+MOD_EFU_USER_LABEL="Upload to Username subfolders"
+MOD_EFU_USER_DESC="Setting this to YES will upload files to a subfolder in the Upload folder with the user's username."
+MOD_EFU_DIAGNOSTIC_LABEL="Diagnostic Information"
+MOD_EFU_DIAGNOSTIC_DESC="This lists the MIME detection ability of your server, and links to get support for the module."
+
+; Front-end Text and Errors
+MOD_EFU_UPLOAD_SUCCESSFUL="Upload was successful"
+MOD_EFU_UPLOAD_UNSUCCESSFUL="Upload failed."
+MOD_EFU_NAME="Name"
+MOD_EFU_TYPE="Type"
+MOD_EFU_SIZE="Size"
+MOD_EFU_BYTES="bytes"
+MOD_EFU_LABEL_TEXT="Choose a file to upload:"
+MOD_EFU_BUTTON_TEXT="Upload File"
+MOD_EFU_QUESTION_TEXT="Replace existing files with uploaded files?"
+MOD_EFU_RETURN_CODE="Return Code"
+MOD_EFU_REPLACEMENT_APPROVED="Replacement approved. Previous file replaced."
+MOD_EFU_ALREADY_EXISTS="already exists."
+MOD_EFU_TOO_LARGE_ERROR="ERROR: The uploaded file is too large. It must be smaller than "
+MOD_EFU_INVALID_ERROR="ERROR: The uploaded file type is not permitted."
+MOD_EFU_BROWSER_MIME_ERROR="MIME detected by Browser: "
+MOD_EFU_PHP_MIME_ERROR="MIME detected by PHP: "
+MOD_EFU_INI_SIZE_ERROR="The uploaded file exceeds the upload_max_filesize directive in php.ini"
+MOD_EFU_FORM_SIZE_ERROR="The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"
+MOD_EFU_PARTIAL_ERROR="The uploaded file was only partially uploaded"
+MOD_EFU_NO_FILE_ERROR="No file was uploaded"
+MOD_EFU_NO_TMP_DIR_ERROR="Missing a temporary folder"
+MOD_EFU_CANT_WRITE_ERROR="Failed to write file to disk"
+MOD_EFU_EXTENSION_ERROR="File upload stopped by extension"
+MOD_EFU_UNKNOWN_ERROR="Unknown upload error"
+MOD_EFU_NULL_BYTE_FOUND="Security Error - Null byte found in filename"
+MOD_EFU_FORBIDDEN_SCRIPT_FOUND="Security Error - Forbidden script file detected"
+MOD_EFU_PHP_TAG_FOUND="Security Error - PHP tag found in file"
+MOD_EFU_SHORT_TAG_FOUND="Security Error - Short tag found in file"
+MOD_EFU_FORBIDDEN_IN_ARCHIVE_FOUND="Security Error - Forbidden script file detected in archive"
+
+; Documentation
+MOD_EFU_DOCUMENTATION="https://www.valorapps.com/documentation/13-easy-file-uploader-documentation.html?tmpl=component"
diff --git a/packages/easyfileuploader/language/en-GB/en-GB.mod_easyfileuploader.sys.ini b/packages/easyfileuploader/language/en-GB/en-GB.mod_easyfileuploader.sys.ini
new file mode 100644
index 00000000..2afdf77f
--- /dev/null
+++ b/packages/easyfileuploader/language/en-GB/en-GB.mod_easyfileuploader.sys.ini
@@ -0,0 +1,15 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. during the extension's installation, to allow localising the post-installation messages,
+; b. to build the administrator Components menu,
+; c. to localise component parameters and menu parameters and
+; d. in the Extension Manager->Manage
+;
+
+
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File Uploader
Developed by Michael Gilkes
Valor Apps
Description
This is a flexible file upload module. It allows the administrator to specify a destination folder, and allows the user to upload files to it. The administrator can also specify how many files that can be uploaded simultaneously, as well as the text in the front end. You can even have more then one module of its kind on the same page.
"
diff --git a/packages/easyfileuploader/language/en-US/en-US.mod_easyfileuploader.ini b/packages/easyfileuploader/language/en-US/en-US.mod_easyfileuploader.ini
new file mode 100644
index 00000000..126572a5
--- /dev/null
+++ b/packages/easyfileuploader/language/en-US/en-US.mod_easyfileuploader.ini
@@ -0,0 +1,104 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. front-end text
+; b. back-end text
+;
+
+; Keys in XML details file
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File Uploader
Developed by Michael Gilkes
Valor Apps
Description
This is a flexible file upload module. It allows the administrator to specify a destination folder, and allows the user to upload files to it. The administrator can also specify how many files that can be uploaded simultaneously, as well as the text in the front end. You can even have more then one module of its kind on the same page.
"
+
+; Basic Required Fields
+MOD_EFU_PARENT_LABEL="Choose the Parent Folder"
+MOD_EFU_PARENT_DESC="This is the parent folder where the files are stored."
+MOD_EFU_FOLDER_LABEL="Choose the Upload Folder"
+MOD_EFU_FOLDER_DESC="This is the folder where the uploaded files are stored."
+MOD_EFU_MAXSIZE_LABEL="Maximum File Size (bytes)"
+MOD_EFU_MAXSIZE_DESC="This is the maximum allowable file size, in bytes, that can be uploaded."
+
+; Custom Text Fields
+MOD_EFU_CUSTOM_SPACER="Custom Text"
+MOD_EFU_CUSTOM_LABEL="Use Custom Text"
+MOD_EFU_CUSTOM_DESC="This determines whether you use the custom text entered here, or whether you use the text from language keys."
+MOD_EFU_LABELTEXT_LABEL="Label Text"
+MOD_EFU_LABELTEXT_DESC="This is the text that labels the upload file form."
+MOD_EFU_BUTTON_LABEL="Submit Button Text"
+MOD_EFU_BUTTON_DESC="This is the text that is on the button to upload the file."
+MOD_EFU_QUESTION_LABEL="Replace Files Question"
+MOD_EFU_QUESTION_DESC="This is the text that labels the option of whether the user wants to replace existing files."
+MOD_EFU_YESTEXT_LABEL="Yes answer text"
+MOD_EFU_YESTEXT_DESC="You are free to customize the YES answer text to the replace question."
+MOD_EFU_NOTEXT_LABEL="No answer text"
+MOD_EFU_NOTEXT_DESC="You are free to customize the NO answer text to the replace question."
+
+; Security
+MOD_EFU_DETAILS_SPACER="Security Details"
+MOD_EFU_FILETYPES_LABEL="Permitted file types (separate by semi-colon)"
+MOD_EFU_FILETYPES_DESC="This is a list of the file types that are permitted to be uploaded (separated by semi-colon). Type asterisk (*) to allow any type."
+MOD_EFU_DEFAULT_REPLACE_LABEL="Replace by Default"
+MOD_EFU_DEFAULT_REPLACE_DESC="This makes the administrator specify that all uploads will replace any existing files with the same name. Choosing 'Yes' overrides the option below."
+MOD_EFU_REPLACE_LABEL="Include option to replace existing file?"
+MOD_EFU_REPLACE_DESC="This allows the administrator to decide whether to include an option in the front-end to replace en existing file with the same file name as the file to be uploaded."
+MOD_EFU_SCRIPTS_IN_ARCHIVE_LABEL="Allow scripts in archive"
+MOD_EFU_SCRIPTS_IN_ARCHIVE_DESC="Choose whether to upload archives that contain script files"
+
+; Formatting
+MOD_EFU_FORMAT_SPACER="Uploader Format"
+MOD_EFU_VARIABLE_LABEL="Input File Variable Name"
+MOD_EFU_VARIABLE_DESC="This allows you to specify the variable name of the input file. Only change this if you intend to have more than one Easy File Uploader module on a single article page. In that case, each module should have its own unique name."
+MOD_EFU_MULTIPLE_LABEL="Number of Files to Upload"
+MOD_EFU_MULTIPLE_DESC="Select the number of upload file fields to include. The default is to upload 1 file, but you may select up to 10 files to upload simultaneously."
+MOD_EFU_BGCOLOR_LABEL="Results Box Background Color"
+MOD_EFU_BGCOLOR_DESC="The background color of the Results information box."
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_LABEL="Show 'No File Uploaded' Notice"
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_DESC="Choose whether to show a notice when no file was uploaded for the upload fields. The default is 'Yes'."
+
+; Module Class
+MOD_EFU_FILTER_SPACER="Class Filtering"
+MOD_EFU_SUFFIX_LABEL="Module Class Suffix"
+MOD_EFU_SUFFIX_DESC="Module Class Suffix"
+
+; Advanced Features
+MOD_EFU_ADVANCED_SPACER="Advanced"
+MOD_EFU_USER_LABEL="Upload to Username subfolders"
+MOD_EFU_USER_DESC="Setting this to YES will upload files to a subfolder in the Upload folder with the user's username."
+MOD_EFU_DIAGNOSTIC_LABEL="Diagnostic Information"
+MOD_EFU_DIAGNOSTIC_DESC="This lists the MIME detection ability of your server, and links to get support for the module."
+
+; Front-end Text and Errors
+MOD_EFU_UPLOAD_SUCCESSFUL="Upload was successful"
+MOD_EFU_UPLOAD_UNSUCCESSFUL="Upload failed."
+MOD_EFU_NAME="Name"
+MOD_EFU_TYPE="Type"
+MOD_EFU_SIZE="Size"
+MOD_EFU_BYTES="bytes"
+MOD_EFU_LABEL_TEXT="Choose a file to upload:"
+MOD_EFU_BUTTON_TEXT="Upload File"
+MOD_EFU_QUESTION_TEXT="Replace existing files with uploaded files?"
+MOD_EFU_RETURN_CODE="Return Code"
+MOD_EFU_REPLACEMENT_APPROVED="Replacement approved. Previous file replaced."
+MOD_EFU_ALREADY_EXISTS="already exists."
+MOD_EFU_TOO_LARGE_ERROR="ERROR: The uploaded file is too large. It must be smaller than "
+MOD_EFU_INVALID_ERROR="ERROR: The uploaded file type is not permitted."
+MOD_EFU_BROWSER_MIME_ERROR="MIME detected by Browser: "
+MOD_EFU_PHP_MIME_ERROR="MIME detected by PHP: "
+MOD_EFU_INI_SIZE_ERROR="The uploaded file exceeds the upload_max_filesize directive in php.ini"
+MOD_EFU_FORM_SIZE_ERROR="The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"
+MOD_EFU_PARTIAL_ERROR="The uploaded file was only partially uploaded"
+MOD_EFU_NO_FILE_ERROR="No file was uploaded"
+MOD_EFU_NO_TMP_DIR_ERROR="Missing a temporary folder"
+MOD_EFU_CANT_WRITE_ERROR="Failed to write file to disk"
+MOD_EFU_EXTENSION_ERROR="File upload stopped by extension"
+MOD_EFU_UNKNOWN_ERROR="Unknown upload error"
+MOD_EFU_NULL_BYTE_FOUND="Security Error - Null byte found in filename"
+MOD_EFU_FORBIDDEN_SCRIPT_FOUND="Security Error - Forbidden script file detected"
+MOD_EFU_PHP_TAG_FOUND="Security Error - PHP tag found in file"
+MOD_EFU_SHORT_TAG_FOUND="Security Error - Short tag found in file"
+MOD_EFU_FORBIDDEN_IN_ARCHIVE_FOUND="Security Error - Forbidden script file detected in archive"
+
+; Documentation
+MOD_EFU_DOCUMENTATION="https://www.valorapps.com/documentation/13-easy-file-uploader-documentation.html?tmpl=component"
diff --git a/packages/easyfileuploader/language/en-US/en-US.mod_easyfileuploader.sys.ini b/packages/easyfileuploader/language/en-US/en-US.mod_easyfileuploader.sys.ini
new file mode 100644
index 00000000..2afdf77f
--- /dev/null
+++ b/packages/easyfileuploader/language/en-US/en-US.mod_easyfileuploader.sys.ini
@@ -0,0 +1,15 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. during the extension's installation, to allow localising the post-installation messages,
+; b. to build the administrator Components menu,
+; c. to localise component parameters and menu parameters and
+; d. in the Extension Manager->Manage
+;
+
+
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File Uploader
Developed by Michael Gilkes
Valor Apps
Description
This is a flexible file upload module. It allows the administrator to specify a destination folder, and allows the user to upload files to it. The administrator can also specify how many files that can be uploaded simultaneously, as well as the text in the front end. You can even have more then one module of its kind on the same page.
"
diff --git a/packages/easyfileuploader/language/es-ES/es-ES.mod_easyfileuploader.ini b/packages/easyfileuploader/language/es-ES/es-ES.mod_easyfileuploader.ini
new file mode 100644
index 00000000..25dd2157
--- /dev/null
+++ b/packages/easyfileuploader/language/es-ES/es-ES.mod_easyfileuploader.ini
@@ -0,0 +1,104 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. front-end text
+; b. back-end text
+;
+
+; Keys in XML details file
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File UploaderDesarrollado por Michael Gilkes
Valor Apps
Descripción
Se trata de un archivo flexible módulo de carga. Permite al administrador especificar una carpeta de destino, y permite al usuario cargar archivos en él. El administrador también puede especificar el número de archivos que se pueden cargar al mismo tiempo, así como el texto en la parte delantera. Usted puede incluso tener más de un módulo de su tipo en la misma página.
"
+
+; Basic Required Fields
+MOD_EFU_PARENT_LABEL="Elija la carpeta principal"
+MOD_EFU_PARENT_DESC="Esta es la carpeta principal, donde están almacenados los archivos."
+MOD_EFU_FOLDER_LABEL="Seleccione la carpeta de carga"
+MOD_EFU_FOLDER_DESC="Esta es la carpeta donde los archivos cargados se almacenan."
+MOD_EFU_MAXSIZE_LABEL="Tamaño máximo del archivo (bytes)"
+MOD_EFU_MAXSIZE_DESC="Este es el tamaño máximo de archivo permitido, en bytes, que se pueden cargar."
+
+; Custom Text Fields
+MOD_EFU_CUSTOM_SPACER="Texto Personalizado"
+MOD_EFU_CUSTOM_LABEL="Utilice texto personalizado"
+MOD_EFU_CUSTOM_DESC="Esto determina si se utiliza el texto personalizado entrado aquí, o si se utiliza el texto de las claves del lenguaje."
+MOD_EFU_LABELTEXT_LABEL="Etiqueta de Texto"
+MOD_EFU_LABELTEXT_DESC="Este es el texto que etiqueta el formulario de carga de archivos."
+MOD_EFU_BUTTON_LABEL="Texto del botón Enviar"
+MOD_EFU_BUTTON_DESC="Este es el texto que se encuentra en el botón para subir el archivo."
+MOD_EFU_QUESTION_LABEL="Vuelva a colocar los archivos de preguntas"
+MOD_EFU_QUESTION_DESC="Este es el texto que etiqueta la opción de si el usuario quiere reemplazar los archivos existentes."
+MOD_EFU_YESTEXT_LABEL="Sí contesta el texto"
+MOD_EFU_YESTEXT_DESC="Usted es libre de modificar el texto para responder SI a la pregunta de reemplazo."
+MOD_EFU_NOTEXT_LABEL="Sin texto de la respuesta"
+MOD_EFU_NOTEXT_DESC="Usted es libre de personalizar el texto de la respuesta NO a la pregunta de reemplazo."
+
+; Security
+MOD_EFU_DETAILS_SPACER="Detalles de Seguridad"
+MOD_EFU_FILETYPES_LABEL="Tipos de archivos permitidos (separados por punto y coma)"
+MOD_EFU_FILETYPES_DESC="Esta es una lista de los tipos de archivo que están autorizados a cargar (separados por punto y coma). Tipo asterisco (*) para permitir cualquier tipo."
+MOD_EFU_DEFAULT_REPLACE_LABEL="Reemplazar por predeterminado"
+MOD_EFU_DEFAULT_REPLACE_DESC="Esto hace que el administrador especifique que todas las cargas reemplazarán cualquier archivo existente con el mismo nombre. Al elegir 'Sí' se reemplaza la opción a continuación."
+MOD_EFU_REPLACE_LABEL="¿Incluye opción de reemplazar el archivo existente?"
+MOD_EFU_REPLACE_DESC="Esto permite al administrador decidir si se debe incluir una opción en el front-end para reemplazar en el archivo existente con el mismo nombre de archivo que el archivo que desea cargar."
+MOD_EFU_SCRIPTS_IN_ARCHIVE_LABEL="Permitir a los scripts en el archivo"
+MOD_EFU_SCRIPTS_IN_ARCHIVE_DESC="Elija si desea cargar archivos comprimidos que los archivos de guiones"
+
+; Formatting
+MOD_EFU_FORMAT_SPACER="Uploader Formato"
+MOD_EFU_VARIABLE_LABEL="Archivo de entrada Nombre de variable"
+MOD_EFU_VARIABLE_DESC="Esto le permite especificar el nombre de la variable del archivo de entrada. Sólo debe cambiar esto si usted tiene la intención de tener más de un módulo Easy File Uploader en una página solo artículo. En ese caso, cada módulo debe tener su propio nombre único."
+MOD_EFU_MULTIPLE_LABEL="Número de archivos a subir"
+MOD_EFU_MULTIPLE_DESC="Seleccione el número de campos del archivo de carga para incluir. El valor predeterminado es subir un archivo, pero usted puede seleccionar hasta 10 archivos a subir de forma simultánea."
+MOD_EFU_BGCOLOR_LABEL="Resultados de la Caja de Color de fondo"
+MOD_EFU_BGCOLOR_DESC="El color de fondo de la caja de información de los resultados."
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_LABEL="Mostrar aviso 'No archivo cargado'"
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_DESC="Seleccione si desea mostrar un aviso cuando ningún archivo fue subido por los campos de carga. El valor por defecto es 'Sí'."
+
+; Module Class
+MOD_EFU_FILTER_SPACER="Clase de filtrado"
+MOD_EFU_SUFFIX_LABEL="Módulo Sufijo de Clase"
+MOD_EFU_SUFFIX_DESC="Módulo Sufijo de Clase"
+
+; Advanced Features
+MOD_EFU_ADVANCED_SPACER="Avanzado"
+MOD_EFU_USER_LABEL="Subir a las subcarpetas Nombre de usuario"
+MOD_EFU_USER_DESC="Si se establece en Sí a subir los archivos a una subcarpeta en la carpeta de carga con nombre de usuario del usuario."
+MOD_EFU_DIAGNOSTIC_LABEL="Información de diagnóstico"
+MOD_EFU_DIAGNOSTIC_DESC="Esto lista la capacidad de detección MIME de su servidor y enlaces para obtener soporte para el módulo".
+
+; Front-end Text and Errors
+MOD_EFU_UPLOAD_SUCCESSFUL="Subir fue un éxito"
+MOD_EFU_UPLOAD_UNSUCCESSFUL="Error en la carga"
+MOD_EFU_NAME="Nombre"
+MOD_EFU_TYPE="Tipo"
+MOD_EFU_SIZE="Tamaño"
+MOD_EFU_BYTES="bytes"
+MOD_EFU_LABEL_TEXT="Elija un archivo para subir:"
+MOD_EFU_BUTTON_TEXT="Subir Archivo"
+MOD_EFU_QUESTION_TEXT="Reemplazar los archivos existentes con los archivos subidos?"
+MOD_EFU_RETURN_CODE="Código de retorno"
+MOD_EFU_REPLACEMENT_APPROVED="De repuesto aprobada. Archivo anterior sustituye."
+MOD_EFU_ALREADY_EXISTS="ya existe."
+MOD_EFU_TOO_LARGE_ERROR="ERROR: El archivo subido es demasiado grande. Se debe ser menor que"
+MOD_EFU_INVALID_ERROR="ERROR: El tipo de archivo subido no está permitido."
+MOD_EFU_BROWSER_MIME_ERROR="MIME detectado por el navegador: "
+MOD_EFU_PHP_MIME_ERROR="MIME detectado por PHP: "
+MOD_EFU_INI_SIZE_ERROR="El archivo subido excede la directiva upload_max_filesize en php.ini"
+MOD_EFU_FORM_SIZE_ERROR="El archivo subido excede la directiva MAX_FILE_SIZE que se especificó en el formulario HTML"
+MOD_EFU_PARTIAL_ERROR="El archivo subido fue parcialmente subido"
+MOD_EFU_NO_FILE_ERROR="No existe el fichero se ha subido"
+MOD_EFU_NO_TMP_DIR_ERROR="Falta una carpeta temporal"
+MOD_EFU_CANT_WRITE_ERROR="No se pudo escribir el archivo en el disco"
+MOD_EFU_EXTENSION_ERROR="Carga de archivos por extensión, se detuvo"
+MOD_EFU_UNKNOWN_ERROR="Error desconocido carga"
+MOD_EFU_NULL_BYTE_FOUND="Error de Seguridad - byte nulo que se encuentra en el nombre de archivo"
+MOD_EFU_FORBIDDEN_SCRIPT_FOUND="Error de Seguridad - Prohibida la escritura de archivos detectó"
+MOD_EFU_PHP_TAG_FOUND="Error de Seguridad - etiqueta PHP se encuentra en el archivo"
+MOD_EFU_SHORT_TAG_FOUND="Error de Seguridad - etiqueta corta se encuentra en el archivo"
+MOD_EFU_FORBIDDEN_IN_ARCHIVE_FOUND="Error de Seguridad - Forbidden archivo de script detecta en el archivo"
+
+; Documentation
+MOD_EFU_DOCUMENTATION="https://www.valorapps.com/documentation/13-easy-file-uploader-documentation.html?tmpl=component"
diff --git a/packages/easyfileuploader/language/es-ES/es-ES.mod_easyfileuploader.sys.ini b/packages/easyfileuploader/language/es-ES/es-ES.mod_easyfileuploader.sys.ini
new file mode 100644
index 00000000..97c680c5
--- /dev/null
+++ b/packages/easyfileuploader/language/es-ES/es-ES.mod_easyfileuploader.sys.ini
@@ -0,0 +1,15 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. during the extension's installation, to allow localising the post-installation messages,
+; b. to build the administrator Components menu,
+; c. to localise component parameters and menu parameters and
+; d. in the Extension Manager->Manage
+;
+
+
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File UploaderDesarrollado por Michael Gilkes
Valor Apps
Descripción
Se trata de un archivo flexible módulo de carga. Permite al administrador especificar una carpeta de destino, y permite al usuario cargar archivos en él. El administrador también puede especificar el número de archivos que se pueden cargar al mismo tiempo, así como el texto en la parte delantera. Usted puede incluso tener más de un módulo de su tipo en la misma página.
"
diff --git a/packages/easyfileuploader/language/fr-FR/fr-FR.mod_easyfileuploader.ini b/packages/easyfileuploader/language/fr-FR/fr-FR.mod_easyfileuploader.ini
new file mode 100644
index 00000000..b462590e
--- /dev/null
+++ b/packages/easyfileuploader/language/fr-FR/fr-FR.mod_easyfileuploader.ini
@@ -0,0 +1,105 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. front-end text
+; b. back-end text
+; Traduction fr-FR version : 2.10 (août 2020)
+; Updated by Gilles NÉDÉLEC in August 2020
+
+; Keys in XML details file
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File Uploader
Développé par Michael Gilkes - Valor Apps
Description
Easy File Uploader est un module Joomla! de gestion de chargements de fichiers (upload). Il permet à l'administrateur de spécifier un répertoire de destination et à l'utilisateur d'y charger des fichiers. L'administrateur peut également spécifier le nombre de fichiers qui peuvent être chargés simultanément, ainsi que le texte du côté site (Frontend). Vous pouvez avoir plusieurs modules EFU sur une même page.
"
+
+; Basic Required Fields
+MOD_EFU_PARENT_LABEL="Choisir le répertoire parent"
+MOD_EFU_PARENT_DESC="C'est le répertoire parent dans lequel les fichiers et les sous-répertoires sont enregistrés."
+MOD_EFU_FOLDER_LABEL="Répertoire de destination"
+MOD_EFU_FOLDER_DESC="C'est le répertoire dans lequel les fichiers téléchargés sont enregistrés."
+MOD_EFU_MAXSIZE_LABEL="Taille maxi du fichier (octets)"
+MOD_EFU_MAXSIZE_DESC="C'est la taille maximale autorisée des fichiers, en octets, pouvant être téléchargés."
+
+; Custom Text Fields
+MOD_EFU_CUSTOM_SPACER="Texte personnalisé"
+MOD_EFU_CUSTOM_LABEL="Utiliser le texte personnalisé"
+MOD_EFU_CUSTOM_DESC="Cela détermine si vous utilisez le texte personnalisé entré ici, ou si vous utilisez le texte des touches du langue Joomla!."
+MOD_EFU_LABELTEXT_LABEL="Titre du module"
+MOD_EFU_LABELTEXT_DESC="C'est le texte de l'étiquette, de l'entête du formulaire de chargement de fichiers."
+MOD_EFU_BUTTON_LABEL="Texte du bouton envoyer"
+MOD_EFU_BUTTON_DESC="C'est le texte du bouton envoyer."
+MOD_EFU_QUESTION_LABEL="Texte de remplacement de la question, si fichier existant"
+MOD_EFU_QUESTION_DESC="C'est le texte pour demander l'action : voulez-vous remplacer le fichier existant ?"
+MOD_EFU_YESTEXT_LABEL="Texte du bouton OUI"
+MOD_EFU_YESTEXT_DESC="Vous pouvez personnaliser le texte de la réponse OUI au remplacement du fichier."
+MOD_EFU_NOTEXT_LABEL="Texte du bouton NON"
+MOD_EFU_NOTEXT_DESC="Vous pouvez personnaliser le texte de la réponse NON au remplacement du fichier"
+
+; Security
+MOD_EFU_DETAILS_SPACER="Détails de sécurité"
+MOD_EFU_FILETYPES_LABEL="Types de fichiers autorisés (séparés par un point-virgule)"
+MOD_EFU_FILETYPES_DESC="C'est la liste des types de fichiers qui peuvent être téléchargés (séparés par un point-virgule). Exemple : image/gif ; image/jpg ; text/plain . Tapez un astérisque (*) pour autoriser n'importe quel type."
+MOD_EFU_DEFAULT_REPLACE_LABEL="Remplacer par défaut"
+MOD_EFU_DEFAULT_REPLACE_DESC="Cela permet à l'administrateur à spécifier que tous les téléchargements remplaceront tous les fichiers existants portant le même nom. Choisir « Oui » remplace l'option ci-dessous."
+MOD_EFU_REPLACE_LABEL="Inclure l'option voulez-vous remplacer le fichier existant ?"
+MOD_EFU_REPLACE_DESC="Cela permet à l'administrateur de décider d'inclure une option dans le front-end pour remplacer un fichier existant avec le même nom de fichier que le fichier à télécharger."
+MOD_EFU_SCRIPTS_IN_ARCHIVE_LABEL="Autoriser les scripts dans les archives"
+MOD_EFU_SCRIPTS_IN_ARCHIVE_DESC="Choisissez de télécharger ou non les archives contenant des fichiers de script"
+
+; Formatting
+MOD_EFU_FORMAT_SPACER="Format de chargement"
+MOD_EFU_VARIABLE_LABEL="Nom de la variable du fichier d'entrée"
+MOD_EFU_VARIABLE_DESC="Cela vous permet de spécifier le nom de la variable du fichier d'entrée. Ne le modifiez que si vous avez l'intention d'avoir plusieurs modules Easy File Uploader sur une seule page d'article. Dans ce cas, chaque module doit avoir son propre nom, unique."
+MOD_EFU_MULTIPLE_LABEL="Nombre de fichiers à charger"
+MOD_EFU_MULTIPLE_DESC = "Choisir le nombre de champs de fichier de téléchargement à inclure. La valeur par défaut est de télécharger 1 fichier, mais vous pouvez sélectionner jusqu'à 10 fichiers à télécharger simultanément."
+MOD_EFU_BGCOLOR_LABEL="Couleur de fond des résultats"
+MOD_EFU_BGCOLOR_DESC="La couleur de fond de l'encart contenant les informations de chargement."
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_LABEL="Afficher le message ' Aucun fichier téléchargé '"
+MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_DESC="Choisisr d'afficher un message lorsque aucun fichier n'a été téléchargé. La valeur par défaut est 'Oui'."
+
+; Module Class
+MOD_EFU_FILTER_SPACER="Filtre de Classe"
+MOD_EFU_SUFFIX_LABEL="Suffixe de la Classe du Module"
+MOD_EFU_SUFFIX_DESC="Suffixe de la Classe du Module"
+
+; Advanced Features
+MOD_EFU_ADVANCED_SPACER="Avancé"
+MOD_EFU_USER_LABEL="Charger dans un sous-répertoire au nom de l'utilisateur"
+MOD_EFU_USER_DESC="Choisisir OUI pour charger (upload) les fichiers dans un répertoire portant le nom de l'utilisateur. Très pratique lors d'une intégration Virtuemart."
+MOD_EFU_DIAGNOSTIC_LABEL="Informations de diagnostique"
+MOD_EFU_DIAGNOSTIC_DESC="Ceci répertorie les capacités de détection MIME de votre serveur, ainsi que des liens permettant d'obtenir de l'aide pour le module."
+
+; Front-end Text and Errors
+MOD_EFU_UPLOAD_SUCCESSFUL="Chargement réussi."
+MOD_EFU_UPLOAD_UNSUCCESSFUL="Echec du chargement."
+MOD_EFU_NAME="Nom"
+MOD_EFU_TYPE="Type"
+MOD_EFU_SIZE="Taille"
+MOD_EFU_BYTES="octets"
+MOD_EFU_LABEL_TEXT="Choisir un fichier à télécharger :"
+MOD_EFU_BUTTON_TEXT="Charger le fichier"
+MOD_EFU_QUESTION_TEXT="Remplacer les fichiers existants avec les fichiers téléchargés ?"
+MOD_EFU_RETURN_CODE="Code de retour"
+MOD_EFU_REPLACEMENT_APPROVED="Remplacement accepté. l'ancien fichier a été remplacé."
+MOD_EFU_ALREADY_EXISTS="Le fichier existe déjà."
+MOD_EFU_TOO_LARGE_ERROR="ERROR : Le fichier est trop gros. Il doit être plus petit que "
+MOD_EFU_INVALID_ERROR="ERREUR : ce type de fichier n'est pas autorisé."
+MOD_EFU_BROWSER_MIME_ERROR="MIME détecté par le navigateur : "
+MOD_EFU_PHP_MIME_ERROR="MIME détecté par PHP : "
+MOD_EFU_INI_SIZE_ERROR="Le fichier à télécharger dépasse la directive upload_max_filesize dans php.ini ."
+MOD_EFU_FORM_SIZE_ERROR="Le fichier téléchargé dépasse la directive MAX_FILE_SIZE spécifiée dans le formulaire HTML."
+MOD_EFU_PARTIAL_ERROR="Le fichier n'a été que partiellement téléchargé"
+MOD_EFU_NO_FILE_ERROR="Aucun fichier n'a été téléchargé"
+MOD_EFU_NO_TMP_DIR_ERROR="Répertoire temporaire absent"
+MOD_EFU_CANT_WRITE_ERROR="Impossible d'écrire le fichier sur le disque"
+MOD_EFU_EXTENSION_ERROR="Chargement arrêté par l'extension"
+MOD_EFU_UNKNOWN_ERROR="Erreur inconnue"
+MOD_EFU_NULL_BYTE_FOUND="Erreur de sécurité - Octet Null trouvé dans le nom de fichier"
+MOD_EFU_FORBIDDEN_SCRIPT_FOUND="Erreur de sécurité - Fichier de script interdit détecté"
+MOD_EFU_PHP_TAG_FOUND="Erreur de sécurité - Balise PHP trouvée dans le fichier"
+MOD_EFU_SHORT_TAG_FOUND="Erreur de sécurité - Balise courte trouvée dans le fichier"
+MOD_EFU_FORBIDDEN_IN_ARCHIVE_FOUND="Erreur de sécurité - fichier de script interdit détecté dans l'archive"
+
+; Documentation
+MOD_EFU_DOCUMENTATION="https://www.valorapps.com/documentation/13-easy-file-uploader-documentation.html?tmpl=component"
diff --git a/packages/easyfileuploader/language/fr-FR/fr-FR.mod_easyfileuploader.sys.ini b/packages/easyfileuploader/language/fr-FR/fr-FR.mod_easyfileuploader.sys.ini
new file mode 100644
index 00000000..09cb5aa1
--- /dev/null
+++ b/packages/easyfileuploader/language/fr-FR/fr-FR.mod_easyfileuploader.sys.ini
@@ -0,0 +1,17 @@
+; Easy Folder Listing
+; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved.
+; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
+; Note : All ini files need to be saved as UTF-8 - No BOM
+;
+; These translations are used for:
+; a. during the extension's installation, to allow localising the post-installation messages,
+; b. to build the administrator Components menu,
+; c. to localise component parameters and menu parameters and
+; d. in the Extension Manager->Manage
+;
+; Contributed by Ets Denis BOUTEAU - http://www.weborganisation.com
+; Updated by Gilles NÉDÉLEC in August 2020
+
+
+MOD_EASYFILEUPLOADER="Easy File Uploader"
+MOD_EFU_DESCRIPTION="Easy File Uploader
Développé par Michael Gilkes - Valor Apps
Description
Easy File Uploader est un module Joomla! de gestion de chargements de fichiers (upload). Il permet à l'administrateur de spécifier un dossier de destination et à l'utilisateur d'y charger des fichiers. L'administrateur peut également spécifier le nombre de fichiers qui peuvent être chargés simultanément, ainsi que le texte du côté site (Frontend). Vous pouvez avoir plusieurs modules EFU sur une même page.
"
diff --git a/packages/easyfileuploader/media/mod_easyfileuploader/css/index.html b/packages/easyfileuploader/media/mod_easyfileuploader/css/index.html
new file mode 100644
index 00000000..fa6d84e8
--- /dev/null
+++ b/packages/easyfileuploader/media/mod_easyfileuploader/css/index.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/easyfileuploader/media/mod_easyfileuploader/css/styles.css b/packages/easyfileuploader/media/mod_easyfileuploader/css/styles.css
new file mode 100644
index 00000000..0c3a556e
--- /dev/null
+++ b/packages/easyfileuploader/media/mod_easyfileuploader/css/styles.css
@@ -0,0 +1,70 @@
+/*
+Easy File Uploader Module for Joomla!
+Copyright (C) 2010-2020 Michael Albert Gilkes
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+*/
+/*
+ * IMPORTANT:
+ * + The ORDER of the styles in this file matters in terms of precedence.
+ * + use !important at the end of value to override inline styles
+ */
+
+.efum-alert,
+.efum-warning {
+ padding: 8px 35px 8px 14px;
+ margin-bottom: 18px;
+ text-shadow: 0 1px 0 rgba(255,255,255,0.5);
+ background-color: #fcf8e3;
+ border: 1px solid #fbeed5;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ color: #c09853;
+}
+
+.efum-alert .close-btn {
+ position: relative;
+ top: -5px;
+ right: -30px;
+ line-height: 18px;
+ float: right;
+ font-size: 20px;
+ font-weight: bold;
+ cursor: pointer;
+}
+
+.efum-success {
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
+ color: #468847;
+}
+
+.efum-error {
+ background-color: #f2dede;
+ border-color: #eed3d7;
+ color: #b94a48;
+}
+
+.efum-info {
+ background-color: #d9edf7;
+ border-color: #bce8f1;
+ color: #3a87ad;
+}
+
+.efum-hide {
+ display: none;
+}
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/CHANGELOG.php b/packages/easyfileuploader/modules/mod_easyfileuploader/CHANGELOG.php
new file mode 100644
index 00000000..ade509bc
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/CHANGELOG.php
@@ -0,0 +1,159 @@
+
+Contact Info:
+================================================================================
+Developer: Michael A. Gilkes
+Website: https://valorapps.com
+Blog: http://michaelgilkes.info
+email: michael@valorapps.com or jaido7@yahoo.com
+
+Copyright Info:
+================================================================================
+License: GNU/GPL v2
+
+Easy File Uploader Module for Joomla!
+Copyright (C) 2010-2020 Michael Albert Gilkes (Valor Apps)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+Notes:
+================================================================================
+> Additions are represented by plus sign (+)
+> Removals are represented by minus sign (-)
+> Changes are represented by tilde sign (~)
+> Notices are represented by hash sign (#)
+> Issues are represented by exclamation sign (!)
+
+Easy File Uploader v2.9.2.1
+================================================================================
++ Added german texts for the front end
+~ Module layout optimized
+~ Submit button style fixed
+
+Easy File Uploader v2.9.2
+================================================================================
+~ Update all copyright notices to 2020 [2020-08-13]
+~ Updated French Translation provided by Gilles NÉDÉLEC [2020-08-13]
+
+Easy File Uploader v2.9.1
+================================================================================
+~ Fixed issue with JFactory::getUser() [2019-04-12]
+
+Easy File Uploader v2.9
+================================================================================
+~ Moved Class Filtering to Advanced tab [2019-01-22]
++ Add compatibility to Joomla 4 alpha 6 [2019-01-22]
+~ Update to use of PHP namespaces [2019-01-22]
++ Add option to Override Existing files by default [2019-01-22]
+~ Cleaned up user input for upload folder [2019-01-22]
+~ Cleaned up code [2019-01-22]
+~ Fix diagnostic information display [2019-01-22]
++ Add fixed folderlist field [2019-01-21]
+~ Changed update server link [2019-01-21]
+~ Update all copyright notices to 2019 [2019-01-21]
++ Added license.txt file for GPL v2 [2019-01-21]
+
+Easy File Uploader v2.7.8
+================================================================================
+~ Fixed version number discrepancy [2016-07-14]
+
+Easy File Uploader v2.7.7
+================================================================================
++ Added custom security checks for files [2016-06-03]
+- Removed the use of JFile::upload [2016-06-02]
+~ Changed Unsuccessful upload notice from Warning to Error [2016-05-27]
+~ Fixed issue with trailing slash when Folder Location is empty [2016-05-27]
+
+Easy File Uploader v2.7.5
+================================================================================
+~ Changed No File Uploaded alert from Error to Warning [2016-05-27]
++ Added option to hide the notice for when no file is uploaded [2016-05-27]
+~ Changed Yes/No fields in configuration to radio buttons [2016-05-26]
+
+Easy File Uploader v2.7.1
+================================================================================
+- Removed all reference assignments (=&) [2016-01-23]
+~ Updated all the Copyright Notices to include 2016 [2016-01-23]
+
+Easy File Uploader v2.7
+================================================================================
++ Added Update Server Links [2015-10-24]
+~ Confirmed Compatibility with Joomla 3.4+ [2015-10-24]
+~ Moved upload results to above the file upload element [2015-10-24]
+- Removed version information in description [2015-10-24]
++ Added customizable css and javascript files for alerts [2015-10-24]
++ Added closable html alerts for the results [2015-10-24]
+- Removed the results background color field [2015-10-24]
+- Removed Compatibility with Unsupported Joomla Versions [2015-10-23]
+~ Updated all the Copyright Notices to include 2015 [2015-10-23]
+- Removed MooRainbow Color Picker for Joomla Built-in version [2015-10-21]
+
+Easy File Uploader v2.5
+================================================================================
++ Added help documentation key url [2013-01-11]
+~ Fixed issue when escapeshellarg doesn't exist [2013-01-11]
+~ Changed reporting of browser mime detection [2013-01-11]
++ Added custom text options and related language keys [2013-01-11]
++ Added action to form [2013-01-11]
+~ Changed all instances of DS to DIRECTORY_SEPARATOR [2013-01-10]
+~ Changed custom INI keys for Yes and No to Joomla Defaults [2012-12-28]
+~ Changed the format, file type, and file name for the change log file [2012-12-26]
++ Added script file for making extension stay as single installer [2012-12-20]
+
+Easy File Uploader v2.0
+================================================================================
++ Compatible with Joomla 2.5 [2012-03-05]
+~ Changed upload folder selection [2012-03-05]
++ Added Module Class Suffix Parameter [2012-03-02]
+~ Changed Color Picker to MooRainbow [2012-03-02]
++ Added Spanish Language Translation [2012-03-02]
++ Added Multi-language support [2012-03-02]
++ Setup as single installer for Joomla 1.5, 1.7 and 2.5 [2012-03-02]
+
+Easy File Uploader v1.1
+================================================================================
+~ Fixed bug related to replacing existing files [2011-10-03]
+
+
+Easy File Uploader v1.0
+================================================================================
+# Tested for Joomla 1.7 [2011-09-13]
++ Added Option to save under username folders [2011-09-13]
++ Added Element to Detect MIME Testing Compatibility [2011-09-13]
+~ Updated MIME detection order and fixed minor bug [2011-09-13]
++ Added Element for Custom Colors [2011-09-13]
+
+Easy File Uploader v0.8
+================================================================================
+~ Fixed syntax error in helper file [2011-02-05]
+~ Adjusted mime detection function to ignore charset value [2011-02-06]
++ Added Joomla 1.6 Compatible branch. Removed Module Class Suffix Parameter [2011-02-20]
+
+
+Easy File Uploader v0.6
+================================================================================
+~ Fixed MIME type tamper vulnerability [2011-01-10]
+
+Easy File Uploader v0.5
+================================================================================
++ Added Back-end ability to provide a replace existing file option in the front-end [2010-03-24]
++ Added Back-end ability to provide custom text for asking to replace file [2010-03-24]
++ Added Back-end ability to provide a custom variable name for the file input field [2010-03-24]
++ Added Back-end ability to specify up to 10 multiple file uploads in the front-end [2010-03-24]
+
+Easy File Uploader v0.1
+================================================================================
++ Module creation completed and module tested. [2010-03-21]
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/Helper/EasyFileUploaderHelper.php b/packages/easyfileuploader/modules/mod_easyfileuploader/Helper/EasyFileUploaderHelper.php
new file mode 100644
index 00000000..d403f3c1
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/Helper/EasyFileUploaderHelper.php
@@ -0,0 +1,486 @@
+get('efu_parent');
+ $parent = trim($parent, "/\\ \t\n\r\0\x0B");
+
+ //get the folder location and trim whitespace and slashes from both ends
+ $folder = $params->get('efu_folder');
+ $folder = trim($folder, "/\\ \t\n\r\0\x0B");
+ $folder = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $folder);
+
+ //compile the full absolute path
+ $path = $jpath.DIRECTORY_SEPARATOR.$parent.DIRECTORY_SEPARATOR.$folder;
+ $path = rtrim($path, "/\\ \t\n\r\0\x0B");
+
+ if ($params->get('efu_user') == true)
+ {
+ //get the user data
+ $user = Factory::getUser();
+ if ($user->guest == false)
+ {
+ $path.= DIRECTORY_SEPARATOR.$user->username;
+ }
+ else
+ {
+ //If it is a guest user, then store the file in the 'efu_folder'.
+ //You can add something here, if you have a special folder that
+ //you want to add the guest uploads to.
+ //$path.= DIRECTORY_SEPARATOR.'your_guest_folder';
+ }
+ }
+
+ //check to see if the upload process has started
+ if (isset($_FILES[$params->get('efu_variable')]))
+ {
+ //now, we're going to check each of the uploaded files
+ $total = intval($params->get('efu_multiple'));
+ for ($i = 0; $i < $total; $i++)
+ {
+ $result[$i]['show'] = true;
+ //so, now, check for any other errors
+ if ($_FILES[$params->get('efu_variable')]["error"][$i] > 0)
+ {
+ //error was found. Show the return code.
+ $error_text = Text::_('MOD_EFU_RETURN_CODE').": ".$_FILES[$params->get('efu_variable')]["error"][$i]."
";
+ $error_text.= EasyFileUploaderHelper::fileUploadErrorMessage($_FILES[$params->get('efu_variable')]["error"][$i]);
+
+ $result[$i]['type'] = 'error';
+ $result[$i]['text'] = $error_text;
+
+ //Note that UPLOAD_ERR_NO_FILE = 4
+ if ($_FILES[$params->get('efu_variable')]["error"][$i] == UPLOAD_ERR_NO_FILE)
+ {
+ //set the result type to warning instead of error
+ $result[$i]['type'] = 'warning';
+
+ //get the value for 'efu_shownofile', the default is 1
+ $shownofile = $params->get('efu_shownofile', 1);
+ if ($shownofile == false)
+ {
+ $result[$i]['show'] = false;
+ }
+ }
+ }
+ else
+ {
+ //no errors found.
+ //check to see if the file type is correct
+ //but first, we have to store the file types in a variable. I was getting an issue with empty()
+ if (EasyFileUploaderHelper::isValidFileType($params, $i))
+ {
+ //the file type is permitted
+ //so, check for the right size
+ if ($_FILES[$params->get('efu_variable')]["size"][$i] < $params->get('efu_maxsize'))
+ {
+ //file is an acceptable size
+ //check to see if file already exists in the destination folder
+ if (file_exists($path.DIRECTORY_SEPARATOR.$_FILES[$params->get('efu_variable')]["name"][$i]))
+ {
+ //file already exists
+ //check whether the user wants to replace the file or not.
+ if ($params->get('efu_default_replace') == true ||
+ ($params->get('efu_replace') == true && $_POST["answer"] == true))
+ {
+ //yep, the user wants to replace the file, so just delete the existing file
+ File::delete($path.DIRECTORY_SEPARATOR.$_FILES[$params->get('efu_variable')]["name"][$i]);
+ EasyFileUploaderHelper::storeUploadedFile($path, $params, $result, $i, true);
+ }
+ else
+ {
+ $result[$i]['type'] = 'info';
+ $result[$i]['text'] = $_FILES[$params->get('efu_variable')]["name"][$i]." ".Text::_('MOD_EFU_ALREADY_EXISTS');
+ }
+ }
+ else
+ {
+ //Check to see if the file meets the safety standards
+ $is_safe = EasyFileUploaderHelper::checkFileSafety($params, $result, $i);
+ if ($is_safe)
+ {
+ EasyFileUploaderHelper::storeUploadedFile($path, $params, $result, $i);
+ }
+ }
+ }
+ else
+ {
+ //file is too large
+ $result[$i]['type'] = 'warning';
+ $result[$i]['text'] = Text::_('MOD_EFU_TOO_LARGE_ERROR').EasyFileUploaderHelper::sizeToText($params->get('efu_maxsize')).".";
+ }
+ }
+ else
+ {
+ //the file type is not permitted
+ $fakeMIME = $_FILES[$params->get('efu_variable')]["type"][$i];
+ $trueMIME = EasyFileUploaderHelper::actualMIME($_FILES[$params->get('efu_variable')]["tmp_name"][$i]);
+ $result[$i]['type'] = 'error';
+ $result[$i]['text'] = Text::_('MOD_EFU_INVALID_ERROR')."
".Text::_('MOD_EFU_PHP_MIME_ERROR').($trueMIME!==false?"(".$trueMIME.")":"")."
".Text::_('MOD_EFU_BROWSER_MIME_ERROR').$fakeMIME;
+ }
+ }
+ }
+ }
+
+ return $result;
+ }
+
+ private static function isValidFileType(&$params, &$i)
+ {
+ $valid = false;
+
+ $filetypes = $params->get('efu_filetypes');
+ $actualMIME = EasyFileUploaderHelper::actualMIME($_FILES[$params->get('efu_variable')]["tmp_name"][$i]);
+ if ($filetypes == "*" ||
+ (stripos($filetypes, $_FILES[$params->get('efu_variable')]["type"][$i]) !== false &&
+ $actualMIME !== false &&
+ stripos($filetypes, $actualMIME) !== false))
+ {
+ $valid = true;
+ }
+
+ return $valid;
+ }
+
+ private static function actualMIME($file)
+ {
+ if (!file_exists($file))
+ {
+ return false;
+ }
+
+ $mime = false;
+ // try to use recommended functions
+ if (defined('FILEINFO_MIME_TYPE') &&
+ function_exists('finfo_open') && is_callable('finfo_open') &&
+ function_exists('finfo_file') && is_callable('finfo_file') &&
+ function_exists('finfo_close') && is_callable('finfo_close'))
+ {
+ $finfo = finfo_open(FILEINFO_MIME_TYPE);
+ $mime = finfo_file($finfo, $file);
+ if ($mime === '')
+ {
+ $mime = false;
+ }
+ finfo_close($finfo);
+ }
+ else if (strtoupper(substr(PHP_OS,0,3)) !== 'WIN')
+ {
+ $f = "'".$file."'";
+ if (function_exists('escapeshellarg') && is_callable('escapeshellarg'))
+ {
+ //prefer to use escapeshellarg if it is available
+ $f = escapeshellarg($file);
+ }
+
+ if (function_exists('exec') && is_callable('exec'))
+ {
+ //didn't like how 'system' flushes output to browser. replaced with 'exec'
+ //note: You can change this to: shell_exec("file -b --mime-type $f"); if you get
+ // "regular file" as the mime type
+ $mime = exec("file -bi $f");
+ //this removes the charset value if it was returned with the mime type. mime is first.
+ $mime = strtok($mime, '; ');
+ $mime = trim($mime); //remove any remaining whitespace
+ }
+ else if (function_exists('shell_exec') && is_callable('shell_exec'))
+ {
+ //note: You can change this to: shell_exec("file -b --mime-type $f"); if you get
+ // "regular file" as the mime type
+ $mime = shell_exec("file -bi $f");
+ //this removes the charset value if it was returned with the mime type. mime is first.
+ $mime = strtok($mime, '; ');
+ $mime = trim($mime); //remove any remaining whitespace
+ }
+ }
+ else if (function_exists('mime_content_type') && is_callable('mime_content_type'))
+ {
+ //test using mime_content_type last, since it sometimes detects the mime incorrectly
+ $mime = mime_content_type($file);
+ }
+
+ return $mime;
+ }
+
+ private static function storeUploadedFile($filepath, &$params, &$result, &$i, $replaced = false)
+ {
+ $result_text = '';
+
+ //move the file to the destination folder
+ $success = move_uploaded_file($_FILES[$params->get('efu_variable')]["tmp_name"][$i], $filepath.DIRECTORY_SEPARATOR.$_FILES[$params->get('efu_variable')]["name"][$i]);
+
+ if ($replaced)
+ {
+ $result_text.= Text::_('MOD_EFU_REPLACEMENT_APPROVED')." ";
+ }
+
+ if ($success)
+ {
+ //Upload was successful.
+ $result_text.= Text::_('MOD_EFU_UPLOAD_SUCCESSFUL')."
";
+ $result_text.= Text::_('MOD_EFU_NAME').": ".$_FILES[$params->get('efu_variable')]["name"][$i]."
";
+ $result_text.= Text::_('MOD_EFU_TYPE').": ".$_FILES[$params->get('efu_variable')]["type"][$i]."
";
+ $result_text.= Text::_('MOD_EFU_SIZE').": ".EasyFileUploaderHelper::sizeToText($_FILES[$params->get('efu_variable')]["size"][$i])."
";
+ //$result_text.= "Temp file: ".$_FILES[$params->get('efu_variable')]["tmp_name"][$i]."
";
+ //$result_text.= "Stored in: ".$filepath;
+
+ $result[$i]['type'] = 'success';
+ $result[$i]['text'] = $result_text;
+ }
+ else
+ {
+ $result_text.= Text::_('MOD_EFU_UPLOAD_UNSUCCESSFUL');
+
+ $result[$i]['type'] = 'error';
+ $result[$i]['text'] = $result_text;
+ }
+ }
+
+ protected static function fileUploadErrorMessage($error_code)
+ {
+ switch ($error_code)
+ {
+ case UPLOAD_ERR_INI_SIZE:
+ $message = Text::_('MOD_EFU_INI_SIZE_ERROR');
+ break;
+ case UPLOAD_ERR_FORM_SIZE:
+ $message = Text::_('MOD_EFU_FORM_SIZE_ERROR');
+ break;
+ case UPLOAD_ERR_PARTIAL:
+ $message = Text::_('MOD_EFU_PARTIAL_ERROR');
+ break;
+ case UPLOAD_ERR_NO_FILE:
+ $message = Text::_('MOD_EFU_NO_FILE_ERROR');
+ break;
+ case UPLOAD_ERR_NO_TMP_DIR:
+ $message = Text::_('MOD_EFU_NO_TMP_DIR_ERROR');
+ break;
+ case UPLOAD_ERR_CANT_WRITE:
+ $message = Text::_('MOD_EFU_CANT_WRITE_ERROR');
+ break;
+ case UPLOAD_ERR_EXTENSION:
+ $message = Text::_('MOD_EFU_EXTENSION_ERROR');
+ break;
+ default:
+ $message = Text::_('MOD_EFU_UNKNOWN_ERROR');
+ break;
+ }
+ return $message;
+ }
+
+ protected static function sizeToText($size)
+ {
+ $text = "";
+ $kb = 1024;
+ $mb = $kb * $kb;
+ $gb = $mb * $kb;
+
+ if ($size >= $gb)
+ {
+ $size = round($size / $gb, 2);
+ $text = $size."GB";
+ }
+ elseif ($size >= $mb)
+ {
+ $size = round($size / $mb, 2);
+ $text = $size."MB";
+ }
+ elseif ($size >= $kb)
+ {
+ $size = round($size / $kb, 2);
+ $text = $size."KB";
+ }
+ else
+ {
+ $text = $size.Text::_('MOD_EFU_BYTES');
+ }
+ return $text;
+ }
+
+ /**
+ * Checks an uploaded for suspicious naming and potential PHP contents which could indicate a hacking attempt.
+ *
+ *
+ * @return boolean True of the file is safe
+ */
+ public static function checkFileSafety(&$params, &$result, &$i, $forbidden = array('php', 'phps', 'php5', 'php3', 'php4', 'inc', 'pl', 'cgi', 'fcgi', 'java', 'jar', 'py'))
+ {
+ $safe = true;
+
+ /**
+ * 1. Prevent buffer overflow attack by checking for null byte in the file name
+ */
+ $null_byte = "\x00";
+ if (stripos($_FILES[$params->get('efu_variable')]["name"][$i], $null_byte) !== false)
+ {
+ $result[$i]['type'] = 'error';
+ $result[$i]['text'] = Text::_('MOD_EFU_NULL_BYTE_FOUND');
+
+ return false;
+ }
+
+ /**
+ * 2. Prevent uploading forbidden script files (based on file extension)
+ */
+ $filename = $_FILES[$params->get('efu_variable')]["name"][$i];
+ $split = explode('.', $filename);
+ array_shift($split);
+ $only_extensions = array_map('strtolower', $split);
+
+ foreach ($forbidden as $script)
+ {
+ if (in_array($script, $only_extensions))
+ {
+ $result[$i]['type'] = 'error';
+ $result[$i]['text'] = Text::_('MOD_EFU_FORBIDDEN_SCRIPT_FOUND');
+
+ return false;
+ }
+ }
+
+ /**
+ * 3. Check the contents of the uploaded file for the following:
+ * a. Presence of the PHP tag, get('efu_variable')]["tmp_name"][$i], 'r');
+ if ($fp !== false)
+ {
+ $data = '';
+
+ while (!feof($fp) && $safe === true)
+ {
+ $data.= @fread($fp, $buffer);
+
+ /**
+ * a. Check for the presence of the PHP tag, get('efu_scriptsinarchives');
+ if (!$allow_scripts_in_archive)
+ {
+ $archive_exts = array('zip', '7z', 'jar', 'rar', 'tar', 'gz', 'tgz', 'bz2', 'tbz', 'jpa');
+ $is_archive = false;
+ foreach ($archive_exts as $archive)
+ {
+ //check to see if uploaded file is an archive file
+ if (in_array($archive, $only_extensions))
+ {
+ $is_archive = true;
+ }
+ }
+
+ if ($is_archive)
+ {
+ foreach ($forbidden as $ext)
+ {
+ //search for the short tag
+ if (stripos($data, '.'.$ext) !== false)
+ {
+ $result[$i]['type'] = 'error';
+ $result[$i]['text'] = Text::_('MOD_EFU_FORBIDDEN_IN_ARCHIVE_FOUND');
+
+ $safe = false;
+ continue;
+ }
+ }
+ }
+ }
+ //start the next loop with the last 10 bytes just in case the PHP tag was split up
+ $data = substr($data, -10);
+ }
+ //close the file handle
+ fclose($fp);
+ }
+
+ return $safe;
+ }
+}
+?>
\ No newline at end of file
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/Helper/index.html b/packages/easyfileuploader/modules/mod_easyfileuploader/Helper/index.html
new file mode 100644
index 00000000..fa6d84e8
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/Helper/index.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/elements/easydiagnostic.php b/packages/easyfileuploader/modules/mod_easyfileuploader/elements/easydiagnostic.php
new file mode 100644
index 00000000..d1a457eb
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/elements/easydiagnostic.php
@@ -0,0 +1,180 @@
+PHP Version: '.PHP_VERSION.'.
';
+ if (defined('FILEINFO_MIME_TYPE'))
+ {
+ $html.= 'FILEINFO_MIME_TYPE is defined.
';
+ if (function_exists('finfo_open'))
+ {
+ if (is_callable('finfo_open'))
+ {
+ $html.= 'finfo_open is callable.
';
+ }
+ else
+ {
+ $html.= 'finfo_open is NOT callable.
';
+ }
+ }
+ else
+ {
+ $html.= 'finfo_open doesn\'t exist.
';
+ }
+
+ if (function_exists('finfo_file'))
+ {
+ if (is_callable('finfo_file'))
+ {
+ $html.= 'finfo_file is callable.
';
+ }
+ else
+ {
+ $html.= 'finfo_file is NOT callable.
';
+ }
+ }
+ else
+ {
+ $html.= 'finfo_file doesn\'t exist.
';
+ }
+ if (function_exists('finfo_close'))
+ {
+ if (is_callable('finfo_close'))
+ {
+ $html.= 'finfo_close is callable.
';
+ }
+ else
+ {
+ $html.= 'finfo_close is NOT callable.
';
+ }
+ }
+ else
+ {
+ $html.= 'finfo_close doesn\'t exist.
';
+ }
+ }
+ else
+ {
+ $html.= 'FILEINFO_MIME_TYPE is NOT defined.
';
+ }
+
+ if (function_exists('mime_content_type'))
+ {
+ if (is_callable('mime_content_type'))
+ {
+ $html.= 'mime_content_type is callable.
';
+ }
+ else
+ {
+ $html.= 'mime_content_type is NOT callable.
';
+ }
+ }
+ else
+ {
+ $html.= 'mime_content_type doesn\'t exist.
';
+ }
+
+ if (strtoupper(substr(PHP_OS,0,3)) !== 'WIN')
+ {
+ $html.= 'This is a NON-Windows OS: '.PHP_OS.'.
';
+ if (function_exists('escapeshellarg'))
+ {
+ if (is_callable('escapeshellarg'))
+ {
+ $html.= 'escapeshellarg is callable.
';
+ }
+ else
+ {
+ $html.= 'escapeshellarg is NOT callable.
';
+ }
+ }
+ else
+ {
+ $html.= 'escapeshellarg doesn\'t exist.
';
+ }
+
+ if (function_exists('exec'))
+ {
+ if (is_callable('exec'))
+ {
+ $html.= 'exec is callable.
';
+ }
+ else
+ {
+ $html.= 'exec is NOT callable.
';
+ }
+ }
+ else
+ {
+ $html.= 'exec doesn\'t exist.
';
+ }
+
+ if (function_exists('shell_exec'))
+ {
+ if (is_callable('shell_exec'))
+ {
+ $html.= 'shell_exec is callable.
';
+ }
+ else
+ {
+ $html.= 'shell_exec is NOT callable.
';
+ }
+ }
+ else
+ {
+ $html.= 'shell_exec doesn\'t exist.
';
+ }
+ }
+ else
+ {
+ $html.= 'This is Windows OS: '.PHP_OS.'.
';
+ }
+
+ $support = 'Please visit the support sites for help:
';
+ $support.= '';
+
+ return '
'.$html.$support.'
';
+ }
+}
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/elements/fixedfolderlist.php b/packages/easyfileuploader/modules/mod_easyfileuploader/elements/fixedfolderlist.php
new file mode 100644
index 00000000..664a341f
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/elements/fixedfolderlist.php
@@ -0,0 +1,105 @@
+directory;
+
+ if (!is_dir($path))
+ {
+ $path = JPATH_ROOT . '/' . $path;
+ }
+
+ $path = Path::clean($path);
+
+ // Prepend some default options based on field attributes.
+ if (!$this->hideNone)
+ {
+ $options[] = HTMLHelper::_('select.option', '-1', Text::alt('JOPTION_DO_NOT_USE', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
+ }
+
+ if (!$this->hideDefault)
+ {
+ $options[] = HTMLHelper::_('select.option', '', Text::alt('JOPTION_USE_DEFAULT', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
+ }
+
+ // Get a list of folders in the search path with the given filter.
+ $folders = Folder::folders($path, $this->filter, $this->recursive, true);
+
+ // Build the options list from the list of folders.
+ if (is_array($folders))
+ {
+ foreach ($folders as $folder)
+ {
+ // Remove the root part and the leading /
+ $folder = trim(str_replace($path, '', $folder), '/');
+
+ // Check to see if the file is in the exclude mask.
+ if ($this->exclude)
+ {
+ if (preg_match(chr(1) . $this->exclude . chr(1), $folder))
+ {
+ continue;
+ }
+ }
+
+ $options[] = HTMLHelper::_('select.option', $folder, $folder);
+ }
+ }
+
+ // Merge any additional options in the XML definition.
+ $options = array_merge(\JFormFieldList::getOptions(), $options);
+
+ return $options;
+ }
+}
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/elements/index.html b/packages/easyfileuploader/modules/mod_easyfileuploader/elements/index.html
new file mode 100644
index 00000000..fa6d84e8
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/elements/index.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/index.html b/packages/easyfileuploader/modules/mod_easyfileuploader/index.html
new file mode 100644
index 00000000..fa6d84e8
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/index.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/license.txt b/packages/easyfileuploader/modules/mod_easyfileuploader/license.txt
new file mode 100644
index 00000000..d159169d
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/license.txt
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ , 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/mod_easyfileuploader.php b/packages/easyfileuploader/modules/mod_easyfileuploader/mod_easyfileuploader.php
new file mode 100644
index 00000000..16f03098
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/mod_easyfileuploader.php
@@ -0,0 +1,51 @@
+addStyleSheet(Uri::root().'media/mod_easyfileuploader/css/styles.css');
+
+//check to see if the upload process has started
+if (isset($_FILES[$params->get('efu_variable')]))
+{
+ $result = EasyFileUploaderHelper::getFileToUpload($params);
+}
+
+require(ModuleHelper::getLayoutPath('mod_easyfileuploader', $params->get('layout', 'default')));
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/readme.txt b/packages/easyfileuploader/modules/mod_easyfileuploader/readme.txt
new file mode 100644
index 00000000..de2c623d
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/readme.txt
@@ -0,0 +1,75 @@
+Easy File Uploader v2.9.2.1
+
+NOTE:
+!! This is a fixed version of the orignal Joomla Easy File Uploader by M.Gilkes. !!
+See CHANGELOG.php
+
+Copyright: Michael A. Gilkes
+License: GNU/GPL v2
+
+
+Requirements:
+ > Joomla 3.4+
+ > PHP 5.3+
+
+
+Description:
+This is a flexible file upload module. It allows the administrator to specify a destination folder, and allows the user to upload files to it. The administrator can also specify how many files that can be uploaded simultaneously, as well as the text in the front end. You can even have more then one module of its kind on the same page.
+
+
+Main features:
+ > Upload files to a specified folder in the 'images' directory.
+ > Specify the maximum file size permitted to tbe uploaded.
+ > Specify the types of files, by MIME type, that are permitted.
+ > Customize the upload label and submit button texts.
+ > Specify the background color of the results block to match your theme.
+ > Upload multiple files simultaneously (Up to a maximum of 10)
+ > Customize your front end text
+ > Customize your file input variable, which allows to have multiple modules on a single page
+ > Provide the front-end user with the option to replace existing files on upload
+ > Option to save files in username subfolders
+ > Displays MIME Detection Compatibility in Module Manager
+
+
+Changes:
+See changelog.txt
+
+
+Known Issues:
+This module is designed to work on PHP 5.3+. If you have an earler version of PHP, you
+may encounter issues with detecting the MIME type of the uploaded file. This depends on
+your server setup, as it should work fine if PHP is allowed to call the exec function.
+See the following page for further details and considerations:
+http://support.michaelgilkes.com/topic/efum-not-detecting-mime-type
+
+
+Installation:
+This module is designed for Joomla 3.4+. To install go to the install/uninstall extensions page of Joomla Administrator and upload the package file. Then go to the Module Manager page and activate the module.
+
+
+Usage:
+To use this module as content in an article, first ensure than the loadmodule plugin (Content - Load Module) is Enabled. Second, give an arbitrary Position to the Easy File Uploader module, such as 'x_load', and configure the parameters. Thirdly, in the article, type '{loadposition x_load}'. Please ensure that the Menu Assignment is set to 'All' or to the specific article that it is to be displayed in. To control which types of users have access to this module, set the Access Level in the module.
+To specify how many multiple uploads, go to the Advanced Parameters section, and choose from 1 to 10.
+To allow more than one module on the same page, or article, give each of them a different arbitrary position. Then go to the Advanced Parameters section and specify a different Input File Variable Name for each of them. If they all have the same Input File Variable Name, it will cause any uploads to one module folder to show erroneous messages for the other modules.
+
+Parameters:
+Label Text - This is the text that labels the upload file form. The default text is 'Choose a file to upload:'.
+Submit Button Text - This is the text that is on the button to upload the file. The default text is 'Upload File'.
+Choose the Upload Folder - This is a drop down list of the sub-folders in the 'images' folder. The 'stories' folder is selected by default. The selected folder is where the uploaded files are stored.
+Maximum File Size (bytes) - This is the maximum allowable file size, in bytes, that can be uploaded. The default value is 1000000 bytes.
+Results Box Background Color - The background color of the Results information box. The default value is '#DDEEFF'.
+Permitted file types (separate by semi-colon) - This is a list of the file types that are permitted to be uploaded (separated by semi-colon). Type asterisk (*) to allow any type. The default values are 'image/gif;image/jpeg;image/pjpeg;image/png;application/pdf;application/msword;application/zip;application/x-compressed;application/x-zip-compressed;multipart/x-zip;application/excel;application/vnd.ms-excel;application/x-excel;application/x-msexcel'.
+Replace Files Question - This is the text that labels the option of whether the user wants to replace existing files. The default text is 'Replace existing files with uploaded files?'.
+Yes answer text - You are free to customize the YES answer text to the replace question. The default text is 'Yes'.
+No answer text - You care free to customize the NO answer text to the replace question. The default text is 'No'.
+Include option to replace existing file? - This allows the administrator to decide whether to include an option in the front-end to replace en existing file with the same file name as the file to be uploaded. The default choice is 'No'.
+Input File Variable Name - This allows you to specify the variable name of the input file. Only change this if you intend to have more than one Easy File Uploader module on a single article page. In that case, each module should have its own unique name. The default text is 'fileToUpload'.
+Number of Files to Upload - Select the number of upload file fields to include. The default is to upload 1 file, but you may select up to 10 files to upload simultaneously. The default number is '1'.
+Enable Username Subfolders - When enabled, files are uploaded to username folders inside the upload folder.
+MIME Detection Compatibility - Displays how compatible your server is with the module
+
+Credit:
+Jeff Channell - providing the code fix for the MIME type tamper vulnerability
+Sonja Gilkes - spanish translation contributor
+Denis Bouteau - french translation contributor [http://www.weborganisation.com]
+Gilles NÉDÉLEC - (updated 2020) french translation contributor [http://www.vcmb.fr/cyclo]
\ No newline at end of file
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/tmpl/default.php b/packages/easyfileuploader/modules/mod_easyfileuploader/tmpl/default.php
new file mode 100644
index 00000000..7e07d2f7
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/tmpl/default.php
@@ -0,0 +1,116 @@
+get('moduleclass_sfx'));
+
+//set up the custom text
+$labelText = $params->get('efu_label');
+$buttonText = $params->get('efu_button');
+$questionText = $params->get('efu_question');
+$yesText = $params->get('efu_yes');
+$noText = $params->get('efu_no');
+$maxSize = round(intval($params->get('efu_maxsize')) / 1024, 0, PHP_ROUND_HALF_DOWN);
+
+if ($params->get('efu_custom') == 0)
+{
+ $labelText = Text::_('MOD_EFU_LABEL_TEXT');
+ $buttonText = Text::_('MOD_EFU_BUTTON_TEXT');
+ $questionText = Text::_('MOD_EFU_QUESTION_TEXT');
+ $yesText = Text::_('JYES');
+ $noText = Text::_('JNO');
+}
+
+//specify the action
+$action = Uri::current().Uri::query;
+
+?>
+
+
+ get('efu_variable')])) : ?>
+
+
+
+ ×
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/easyfileuploader/modules/mod_easyfileuploader/tmpl/index.html b/packages/easyfileuploader/modules/mod_easyfileuploader/tmpl/index.html
new file mode 100644
index 00000000..fa6d84e8
--- /dev/null
+++ b/packages/easyfileuploader/modules/mod_easyfileuploader/tmpl/index.html
@@ -0,0 +1 @@
+
\ No newline at end of file