feat(pkg): reconcile Easy File Uploader to live (Cadline delta)

Reconcile to live bytes. Diff vs pristine = Cadline modification (ARCHLine.XP 2024 Rendering contest upload form, ~3 files) + version drift/line-endings.

Signed-off-by: LÁZÁR Imre <imre@illusion.hu>
Assisted-by: claude-code@claude-opus-4-8
This commit is contained in:
LÁZÁR Imre AI Agent 2026-07-16 11:30:02 +02:00
parent b5e99fdf47
commit 511331a97f
23 changed files with 1303 additions and 1714 deletions

View File

@ -1,104 +0,0 @@
; 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 = "<h2>Easy File Uploader</h2><h4>Developed by Michael Gilkes<br />Valor Apps</h4><h3>Description</h3><p>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.</p>"
; 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 = "<b>Custom Text</b>"
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 = "<b>Security Details</b>"
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 = "<b>Uploader Format</b>"
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 = "<b>Class Filtering</b>"
MOD_EFU_SUFFIX_LABEL = "Module Class Suffix"
MOD_EFU_SUFFIX_DESC = "Module Class Suffix"
; Advanced Features
MOD_EFU_ADVANCED_SPACER = "<b>Advanced</b>"
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"

View File

@ -1,5 +1,5 @@
; Easy Folder Listing ; Easy Folder Listing
; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved. ; Copyright (C) 2010 - 2016 Michael Albert Gilkes. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; 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 ; Note : All ini files need to be saved as UTF-8 - No BOM
; ;
@ -39,8 +39,6 @@ MOD_EFU_NOTEXT_DESC="You are free to customize the NO answer text to the replace
MOD_EFU_DETAILS_SPACER="<b>Security Details</b>" MOD_EFU_DETAILS_SPACER="<b>Security Details</b>"
MOD_EFU_FILETYPES_LABEL="Permitted file types (separate by semi-colon)" 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_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_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_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_LABEL="Allow scripts in archive"
@ -66,8 +64,6 @@ MOD_EFU_SUFFIX_DESC="Module Class Suffix"
MOD_EFU_ADVANCED_SPACER="<b>Advanced</b>" MOD_EFU_ADVANCED_SPACER="<b>Advanced</b>"
MOD_EFU_USER_LABEL="Upload to Username subfolders" 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_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 ; Front-end Text and Errors
MOD_EFU_UPLOAD_SUCCESSFUL="Upload was successful" MOD_EFU_UPLOAD_SUCCESSFUL="Upload was successful"

View File

@ -1,5 +1,5 @@
; Easy Folder Listing ; Easy Folder Listing
; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved. ; Copyright (C) 2010 - 2016 Michael Albert Gilkes. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; 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 ; Note : All ini files need to be saved as UTF-8 - No BOM
; ;

View File

@ -1,15 +0,0 @@
; 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="<h2>Easy File Uploader</h2><h4>Developed by Michael Gilkes<br />Valor Apps</h4><h3>Description</h3><p>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.</p>"

View File

@ -1,104 +0,0 @@
; 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="<h2>Easy File Uploader<h2><h4>Desarrollado por Michael Gilkes<br />Valor Apps</h4><h3>Descripción</h3><p>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.</p>"
; 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="<b>Texto Personalizado</b>"
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="<b>Detalles de Seguridad</b>"
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="<b>Uploader Formato</b>"
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="<b>Clase de filtrado</b>"
MOD_EFU_SUFFIX_LABEL="Módulo Sufijo de Clase"
MOD_EFU_SUFFIX_DESC="Módulo Sufijo de Clase"
; Advanced Features
MOD_EFU_ADVANCED_SPACER="<b>Avanzado</b>"
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"

View File

@ -1,15 +0,0 @@
; 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="<h2>Easy File Uploader<h2><h4>Desarrollado por Michael Gilkes<br />Valor Apps</h4><h3>Descripción</h3><p>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.</p>"

View File

@ -1,105 +0,0 @@
; 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="<h2>Easy File Uploader</h2><h4>Développé par Michael Gilkes - Valor Apps</h4><h3>Description</h3><p>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.</p>"
; 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="<b>Texte personnalisé</b>"
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="<b>Détails de sécurité</b>"
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 : <i>image/gif ; image/jpg ; text/plain </i>. 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="<b>Format de chargement</b>"
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="<b>Filtre de Classe</b>"
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="<b>Avancé</b>"
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"

View File

@ -1,17 +0,0 @@
; 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="<h2>Easy File Uploader</h2><h4>Développé par Michael Gilkes - Valor Apps</h4><h3>Description</h3><p>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.</p>"

View File

@ -1,5 +1,5 @@
; Easy Folder Listing ; Easy Folder Listing
; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved. ; Copyright (C) 2010 - 2016 Michael Albert Gilkes. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; 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 ; Note : All ini files need to be saved as UTF-8 - No BOM
; ;
@ -13,34 +13,32 @@ MOD_EASYFILEUPLOADER="Easy File Uploader"
MOD_EFU_DESCRIPTION="<h2>Easy File Uploader</h2><h4>Developed by Michael Gilkes<br />Valor Apps</h4><h3>Description</h3><p>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.</p>" MOD_EFU_DESCRIPTION="<h2>Easy File Uploader</h2><h4>Developed by Michael Gilkes<br />Valor Apps</h4><h3>Description</h3><p>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.</p>"
; Basic Required Fields ; Basic Required Fields
MOD_EFU_PARENT_LABEL="Choose the Parent Folder" MOD_EFU_PARENT_LABEL="Válaszd ki a szülő könyvtárat"
MOD_EFU_PARENT_DESC="This is the parent folder where the files are stored." MOD_EFU_PARENT_DESC="Ez lesz a file-ok főkönyvtára."
MOD_EFU_FOLDER_LABEL="Choose the Upload Folder" MOD_EFU_FOLDER_LABEL="Válaszd ki a feltöltési könyvtárat"
MOD_EFU_FOLDER_DESC="This is the folder where the uploaded files are stored." MOD_EFU_FOLDER_DESC="Ez lesz a file-ok alkönyvtára."
MOD_EFU_MAXSIZE_LABEL="Maximum File Size (bytes)" MOD_EFU_MAXSIZE_LABEL="Maximum file méret (byte)"
MOD_EFU_MAXSIZE_DESC="This is the maximum allowable file size, in bytes, that can be uploaded." MOD_EFU_MAXSIZE_DESC="Ez lesz a maximálisan feltölthető file méret."
; Custom Text Fields ; Custom Text Fields
MOD_EFU_CUSTOM_SPACER="<b>Custom Text</b>" MOD_EFU_CUSTOM_SPACER="<b>Egyedi szöveg</b>"
MOD_EFU_CUSTOM_LABEL="Use Custom Text" MOD_EFU_CUSTOM_LABEL="Egyedi szöveg használata"
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_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_LABEL="Felirat szöveg"
MOD_EFU_LABELTEXT_DESC="This is the text that labels the upload file form." MOD_EFU_LABELTEXT_DESC="This is the text that labels the upload file form."
MOD_EFU_BUTTON_LABEL="Submit Button Text" MOD_EFU_BUTTON_LABEL="Feltöltés gomb szöveg"
MOD_EFU_BUTTON_DESC="This is the text that is on the button to upload the file." 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_LABEL="Kérdés a file-ok lecserélésére"
MOD_EFU_QUESTION_DESC="This is the text that labels the option of whether the user wants to replace existing files." 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_LABEL="Igen válasz szövege"
MOD_EFU_YESTEXT_DESC="You are free to customize the YES answer text to the replace question." 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_LABEL="Nem válasz szövege"
MOD_EFU_NOTEXT_DESC="You are free to customize the NO answer text to the replace question." MOD_EFU_NOTEXT_DESC="You are free to customize the NO answer text to the replace question."
; Security ; Security
MOD_EFU_DETAILS_SPACER="<b>Security Details</b>" MOD_EFU_DETAILS_SPACER="<b>Security Details</b>"
MOD_EFU_FILETYPES_LABEL="Permitted file types (separate by semi-colon)" 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_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_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_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_LABEL="Allow scripts in archive"
@ -52,8 +50,8 @@ 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_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_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_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_LABEL="Results Box Background Colour"
MOD_EFU_BGCOLOR_DESC="The background color of the Results information box." 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_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'." 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'."
@ -63,42 +61,45 @@ MOD_EFU_SUFFIX_LABEL="Module Class Suffix"
MOD_EFU_SUFFIX_DESC="Module Class Suffix" MOD_EFU_SUFFIX_DESC="Module Class Suffix"
; Advanced Features ; Advanced Features
MOD_EFU_ADVANCED_SPACER="<b>Advanced</b>" MOD_EFU_ADVANCED_SPACER="<b>Haladó</b>"
MOD_EFU_USER_LABEL="Upload to Username subfolders" MOD_EFU_USER_LABEL="Feltöltés a Felhasználó név szerinti alkönyvtárba"
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_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 ; Front-end Text and Errors
MOD_EFU_UPLOAD_SUCCESSFUL="Upload was successful" MOD_EFU_UPLOAD_SUCCESSFUL="Sikeres feltöltés"
MOD_EFU_UPLOAD_UNSUCCESSFUL="Upload failed." MOD_EFU_UPLOAD_UNSUCCESSFUL="Sikertelen feltöltés."
MOD_EFU_NAME="Name" MOD_EFU_UPLOAD_UNSUCCESSFUL_RESOLUTION="Sikertelen feltöltés. Min. kép felbontás: 1920x1080"
MOD_EFU_TYPE="Type" MOD_EFU_UPLOAD_FILE_LIMIT="A feltöltött képek száma elérte a pályázónként beküldhető 3 példányt. Ha kérdése van, kérjük vegye fel velünk a kapcsolatot elérhetőségeinken."
MOD_EFU_SIZE="Size" MOD_EFU_NAME="Név"
MOD_EFU_BYTES="bytes" MOD_EFU_TYPE="Tipus"
MOD_EFU_LABEL_TEXT="Choose a file to upload:" MOD_EFU_SIZE="Méret"
MOD_EFU_BUTTON_TEXT="Upload File" MOD_EFU_BYTES="byte"
MOD_EFU_QUESTION_TEXT="Replace existing files with uploaded files?" MOD_EFU_LABEL_TEXT="Válaszd ki a feltöltendő file-okat:"
MOD_EFU_RETURN_CODE="Return Code" MOD_EFU_BUTTON_TEXT="File feltöltés"
MOD_EFU_REPLACEMENT_APPROVED="Replacement approved. Previous file replaced." MOD_EFU_QUESTION_TEXT="Lecserélje a meglévő file-okat az újonnan feltöltöttekre?"
MOD_EFU_ALREADY_EXISTS="already exists." MOD_EFU_RETURN_CODE="Visszatérési kód"
MOD_EFU_TOO_LARGE_ERROR="ERROR: The uploaded file is too large. It must be smaller than " MOD_EFU_REPLACEMENT_APPROVED="Lecserélés engedélyezve. Előző file felülírva."
MOD_EFU_INVALID_ERROR="ERROR: The uploaded file type is not permitted." MOD_EFU_ALREADY_EXISTS="már létezik."
MOD_EFU_BROWSER_MIME_ERROR="MIME detected by Browser: " MOD_EFU_TOO_LARGE_ERROR="HIBA: A feltöltött file túl nagy. Kissebbnek kell lenni, mint "
MOD_EFU_PHP_MIME_ERROR="MIME detected by PHP: " MOD_EFU_INVALID_ERROR="HIBA: A feltöltött file tipusa nem engedélyezett."
MOD_EFU_INI_SIZE_ERROR="The uploaded file exceeds the upload_max_filesize directive in php.ini" MOD_EFU_BROWSER_MIME_ERROR="Böngésző által detektált MIME típus: "
MOD_EFU_FORM_SIZE_ERROR="The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" MOD_EFU_PHP_MIME_ERROR="PHP által detektált MIME tipus: "
MOD_EFU_PARTIAL_ERROR="The uploaded file was only partially uploaded" MOD_EFU_INI_SIZE_ERROR="A feltöltött file mérete meghaladja az upload_max_filesize direktívát a php.ini-ben"
MOD_EFU_NO_FILE_ERROR="No file was uploaded" MOD_EFU_FORM_SIZE_ERROR="A feltöltött file mérete meghaladja a HTML űrlap MAX_FILE_SIZE direktíváját"
MOD_EFU_NO_TMP_DIR_ERROR="Missing a temporary folder" MOD_EFU_PARTIAL_ERROR="A feltöltött file csak részben lett feltöltve"
MOD_EFU_CANT_WRITE_ERROR="Failed to write file to disk" MOD_EFU_NO_FILE_ERROR="Nem volt file feltöltés"
MOD_EFU_NO_TMP_DIR_ERROR="Ideiglenes könyvtár hiányzik"
MOD_EFU_CANT_WRITE_ERROR="A file lemezre írása közben hiba történt"
MOD_EFU_EXTENSION_ERROR="File upload stopped by extension" MOD_EFU_EXTENSION_ERROR="File upload stopped by extension"
MOD_EFU_UNKNOWN_ERROR="Unknown upload error" MOD_EFU_UNKNOWN_ERROR="Ismeretlen feltöltési hiba"
MOD_EFU_NULL_BYTE_FOUND="Security Error - Null byte found in filename" MOD_EFU_NULL_BYTE_FOUND="Biztonsági hiba - Null byte található a filenévben"
MOD_EFU_FORBIDDEN_SCRIPT_FOUND="Security Error - Forbidden script file detected" MOD_EFU_FORBIDDEN_SCRIPT_FOUND="Biztonsági hiba - Tiltott szkript file található"
MOD_EFU_PHP_TAG_FOUND="Security Error - PHP tag found in file" MOD_EFU_PHP_TAG_FOUND="Biztonsági hiba - PHP tag található a file-ban"
MOD_EFU_SHORT_TAG_FOUND="Security Error - Short tag found in file" MOD_EFU_SHORT_TAG_FOUND="Biztonsági hiba - rövid PHP tag található a file-ban"
MOD_EFU_FORBIDDEN_IN_ARCHIVE_FOUND="Security Error - Forbidden script file detected in archive" MOD_EFU_FORBIDDEN_IN_ARCHIVE_FOUND="Biztonsági hiba - Tiltott szkript file található a tömörített állományban"
MOD_EFU_THIRDPARTY="Külső szoftverrel renderelt kép"
MOD_EFU_THIRDPARTY_VAL="Kérem adja meg a szoftver nevét"
MOD_EFU_DEL="Törlés"
; Documentation ; Documentation
MOD_EFU_DOCUMENTATION="https://www.valorapps.com/documentation/13-easy-file-uploader-documentation.html?tmpl=component" MOD_EFU_DOCUMENTATION="https://www.valorapps.com/documentation/13-easy-file-uploader-documentation.html?tmpl=component"

View File

@ -1,5 +1,5 @@
; Easy Folder Listing ; Easy Folder Listing
; Copyright (C) 2010-2020 Michael Albert Gilkes. All rights reserved. ; Copyright (C) 2010 - 2016 Michael Albert Gilkes. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php ; 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 ; Note : All ini files need to be saved as UTF-8 - No BOM
; ;

View File

@ -1,6 +1,6 @@
/* /*
Easy File Uploader Module for Joomla! Easy File Uploader Module for Joomla!
Copyright (C) 2010-2020 Michael Albert Gilkes Copyright (C) 2010-2016 Michael Albert Gilkes
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License

View File

@ -1,5 +1,4 @@
<?php defined('_JEXEC') or die; <?php die();?>
die();?>
Contact Info: Contact Info:
================================================================================ ================================================================================
Developer: Michael A. Gilkes Developer: Michael A. Gilkes
@ -9,26 +8,9 @@ email: michael@valorapps.com or jaido7@yahoo.com
Copyright Info: Copyright Info:
================================================================================ ================================================================================
Copyright: Michael A. Gilkes
License: GNU/GPL v2 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: Notes:
================================================================================ ================================================================================
> Additions are represented by plus sign (+) > Additions are represented by plus sign (+)
@ -37,34 +19,6 @@ Notes:
> Notices are represented by hash sign (#) > Notices are represented by hash sign (#)
> Issues are represented by exclamation 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 Easy File Uploader v2.7.8
================================================================================ ================================================================================

View File

@ -1,486 +0,0 @@
<?php
/**
* @version 2.9.1
* @author Michael A. Gilkes (jaido7@yahoo.com)
* @copyright Michael Albert Gilkes
* @license GNU/GPLv2
*/
/*
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.
*/
namespace ValorApps\Module\EasyFileUploader\Site\Helper;
// no direct access
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Language\Text;
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Factory;
//import joomla file helper class
\JLoader::import('joomla.filesystem.file');
class EasyFileUploaderHelper
{
public static function getFileToUpload(&$params)
{
$result = array();
//get the Joomla Path and trim whitespace and slashes from the end
$jpath = JPATH_SITE;
$jpath = rtrim($jpath, "/\\ \t\n\r\0\x0B");
//get the parent folder and trim whitespace and slashes from both ends
$parent = $params->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]."<br />";
$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')."<br />".Text::_('MOD_EFU_PHP_MIME_ERROR').($trueMIME!==false?"(".$trueMIME.")":"")."<br />".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')."<br />";
$result_text.= Text::_('MOD_EFU_NAME').": ".$_FILES[$params->get('efu_variable')]["name"][$i]."<br />";
$result_text.= Text::_('MOD_EFU_TYPE').": ".$_FILES[$params->get('efu_variable')]["type"][$i]."<br />";
$result_text.= Text::_('MOD_EFU_SIZE').": ".EasyFileUploaderHelper::sizeToText($_FILES[$params->get('efu_variable')]["size"][$i])."<br />";
//$result_text.= "Temp file: ".$_FILES[$params->get('efu_variable')]["tmp_name"][$i]."<br />";
//$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, <?php
* b. Presence of PHP short tag, <?, but only if file is a script file
* c. Presence of script files in archives (if they are not allowed)
*/
$buffer = 1024 * 8;
$fp = @fopen($_FILES[$params->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, <?php
*/
if (stripos($data, '<?php') !== false)
{
$result[$i]['type'] = 'error';
$result[$i]['text'] = Text::_('MOD_EFU_PHP_TAG_FOUND');
$safe = false;
continue;
}
/**
* b. Check for the presence of the PHP short tag, <?, but only if file is a script text file
*/
$script_files = array('php', 'phps', 'php3', 'php4', 'php5', 'class', 'inc', 'txt', 'dat', 'tpl', 'tmpl');
$is_script = false;
foreach ($script_files as $script)
{
//check to see if uploaded file is a script file
if (in_array($script, $only_extensions))
{
$is_script = true;
}
}
if ($is_script)
{
//search for the short tag
if (stripos($data, '<?') !== false)
{
$result[$i]['type'] = 'error';
$result[$i]['text'] = Text::_('MOD_EFU_SHORT_TAG_FOUND');
$safe = false;
continue;
}
}
/**
* c. Check for the presence of forbidden script files in archives (if they are not allowed)
*/
$allow_scripts_in_archive = $params->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;
}
}
?>

View File

@ -1 +0,0 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* @version 2.9 * @version 2.7.8
* @author Michael A. Gilkes (jaido7@yahoo.com) * @author Michael A. Gilkes (jaido7@yahoo.com)
* @copyright Michael Albert Gilkes * @copyright Michael Albert Gilkes
* @license GNU/GPLv2 * @license GNU/GPLv2
@ -9,7 +9,7 @@
/* /*
Easy File Uploader Module for Joomla! Easy File Uploader Module for Joomla!
Copyright (C) 2010-2020 Michael Albert Gilkes Copyright (C) 2010-2016 Michael Albert Gilkes
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License
@ -31,16 +31,21 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
defined('JPATH_BASE') or die(); defined('JPATH_BASE') or die();
//get joomla form related functions //get joomla form related functions
\JLoader::import('joomla.form.formfield'); jimport('joomla.form.formfield');
class JFormFieldEasyDiagnostic extends \JFormField class JFormFieldEasyDiagnostic extends JFormField
{ {
//specify the custom field type //specify the custom field type
protected $type = 'easydiagnostic'; protected $type = 'easydiagnostic';
//setup the custom field's details //setup the custom field's details
protected function getInput() protected function getInput()
{
return ' ';
}
protected function getLabel()
{ {
$html = '<p style="color:black;">PHP Version: '.PHP_VERSION.'.</p>'; $html = '<p style="color:black;">PHP Version: '.PHP_VERSION.'.</p>';
if (defined('FILEINFO_MIME_TYPE')) if (defined('FILEINFO_MIME_TYPE'))
@ -171,10 +176,15 @@ class JFormFieldEasyDiagnostic extends \JFormField
} }
$support = '<p>Please visit the support sites for help:</p>'; $support = '<p>Please visit the support sites for help:</p>';
$support.= '<ul><li><a href="https://support.michaelgilkes.com/" target="_blank">Support Forum</a></li>'; $support.= '<ul><li><a href="http://support.michaelgilkes.com/" target="_blank">Support Forum</a></li>';
$support.= '<li><a href="https://www.valorapps.com/faq.html" target="_blank">Official FAQ</a></li>'; $support.= '<li><a href="https://www.valorapps.com/faq.html" target="_blank">Official FAQ</a></li>';
$support.= '<li><a href="https://www.valorapps.com/product-docs.html" target="_blank">Official Documentation</a></li></ul>'; $support.= '<li><a href="https://www.valorapps.com/product-docs.html" target="_blank">Official Documentation</a></li></ul>';
return '<hr style="clear:both;" />'.$html.$support.'<hr />'; return '<hr style="clear:both;" />'.$html.$support.'<hr />';
} }
protected function getTitle()
{
return $this->getLabel();
}
} }

View File

@ -1,105 +0,0 @@
<?php
/**
* @version 2.9
* @author Michael A. Gilkes (jaido7@yahoo.com)
* @copyright Michael Albert Gilkes
* @license GNU/GPLv2
*/
/*
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.
*/
// no direct access
defined('_JEXEC') or die();
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\Filesystem\Folder;
use Joomla\Filesystem\Path;
\Joomla\CMS\Form\FormHelper::loadFieldClass('folderlist');
class JFormFieldFixedFolderlist extends \JFormFieldFolderList
{
/**
* The form field type.
*/
protected $type = 'fixedfolderlist';
/**
* Method to get the field options.
*
* @return array The field option objects.
*/
protected function getOptions()
{
$options = array();
$path = $this->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;
}
}

View File

@ -0,0 +1,547 @@
<?php
/**
* @version 2.7.8
* @author Michael A. Gilkes (jaido7@yahoo.com)
* @copyright Michael Albert Gilkes
* @license GNU/GPLv2
*/
/*
Easy File Uploader Module for Joomla!
Copyright (C) 2010-2016 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.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
//import joomla file helper class
jimport('joomla.filesystem.file');
class modEasyFileUploaderHelper
{
public static function delUploadedFile(&$params)
{
$jpath = rtrim(JPATH_SITE, "/\\ \t\n\r\0\x0B");
$parent = trim($params->get('efu_parent'), "/\\ \t\n\r\0\x0B");
$folder = trim($params->get('efu_folder'), "/\\ \t\n\r\0\x0B");
if (self::isOrigin($params) === FALSE) $folder .= DIRECTORY_SEPARATOR . date("Ym", time() + ((int)date("j") <= 27 ? 0 : 86400 * 10));
$path = rtrim($jpath . DIRECTORY_SEPARATOR . $parent . DIRECTORY_SEPARATOR . $folder, "/\\ \t\n\r\0\x0B");
$user = JFactory::getUser();
if ($user->guest == false) {
$path .= DIRECTORY_SEPARATOR . $user->id;
if (self::isOrigin($params) === FALSE) {
if (is_file($path . DIRECTORY_SEPARATOR . trim($_POST['delfile']))) unlink($path . DIRECTORY_SEPARATOR . trim($_POST['delfile']));
if (is_file($path . DIRECTORY_SEPARATOR . trim($_POST['delfile']) . '.txt')) unlink($path . DIRECTORY_SEPARATOR . trim($_POST['delfile']) . '.txt');
}
}
}
public static function getFileToUpload(&$params)
{
$result = array();
//get the Joomla Path and trim whitespace and slashes from the end
$jpath = JPATH_SITE;
error_log($jpath);
$jpath = rtrim($jpath, "/\\ \t\n\r\0\x0B");
error_log($jpath);
//get the parent folder and trim whitespace and slashes from both ends
$parent = $params->get('efu_parent');
error_log($parent);
$parent = trim($parent, "/\\ \t\n\r\0\x0B");
error_log($parent);
//get the folder location and trim whitespace and slashes from both ends
$folder = $params->get('efu_folder');
error_log($folder);
$folder = trim($folder, "/\\ \t\n\r\0\x0B");
error_log($folder);
//compile the full absolute path
$path = $jpath . DIRECTORY_SEPARATOR . $parent . DIRECTORY_SEPARATOR . $folder;
$path = rtrim($path, "/\\ \t\n\r\0\x0B");
error_log('full path = ' . $path);
if ($params->get('efu_user') == true) {
//get the user data
$user = JFactory::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 = JText::_('MOD_EFU_RETURN_CODE') . ": " . $_FILES[$params->get('efu_variable')]["error"][$i] . "<br />";
$error_text .= modEasyFileUploaderHelper::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 (modEasyFileUploaderHelper::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_replace') == true && $_POST["answer"] == true) {
//yep, the user wants to replace the file, so just delete the existing file
JFile::delete($path . DIRECTORY_SEPARATOR . $_FILES[$params->get('efu_variable')]["name"][$i]);
modEasyFileUploaderHelper::storeUploadedFile($path, $params, $result, $i, true);
} else {
$result[$i]['type'] = 'info';
$result[$i]['text'] = $_FILES[$params->get('efu_variable')]["name"][$i] . " " . JText::_('MOD_EFU_ALREADY_EXISTS');
}
} else {
//Check to see if the file meets the safety standards
$is_safe = modEasyFileUploaderHelper::checkFileSafety($params, $result, $i);
if ($is_safe) {
modEasyFileUploaderHelper::storeUploadedFile($path, $params, $result, $i);
}
}
} else {
//file is too large
$result[$i]['type'] = 'warning';
$result[$i]['text'] = JText::_('MOD_EFU_TOO_LARGE_ERROR') . modEasyFileUploaderHelper::sizeToText($params->get('efu_maxsize')) . ".";
}
} else {
if ($_FILES[$params->get('efu_variable')]["size"][$i]) {
//the file type is not permitted
$fakeMIME = $_FILES[$params->get('efu_variable')]["type"][$i];
$trueMIME = modEasyFileUploaderHelper::actualMIME($_FILES[$params->get('efu_variable')]["tmp_name"][$i]);
$result[$i]['type'] = 'error';
$result[$i]['text'] = JText::_('MOD_EFU_INVALID_ERROR') . "<br />" . JText::_('MOD_EFU_PHP_MIME_ERROR') . ($trueMIME !== false ? "(" . $trueMIME . ")" : "") . "<br />" . JText::_('MOD_EFU_BROWSER_MIME_ERROR') . $fakeMIME;
} else {
$result[$i]['show'] = false;
}
}
}
}
}
return $result;
}
private static function isValidFileType(&$params, &$i)
{
$valid = false;
$filetypes = $params->get('efu_filetypes');
$actualMIME = modEasyFileUploaderHelper::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;
}
public static function isOrigin(&$params)
{
$ret = TRUE;
if (strpos($params->get('efu_folder'), "honapkepe") !== FALSE || strpos($params->get('efu_folder'), "honapkepe_live") !== FALSE || strpos($params->get('efu_folder'), "rendering_palyazat") !== FALSE)
$ret = FALSE;
return ($ret);
}
public static function getImgPath(&$params)
{
$ret = "";
$user = JFactory::getUser();
if ($user->guest == false) { // a 9-es eredetileg 27 volt!
$ret = DIRECTORY_SEPARATOR . $params->get('efu_parent') . DIRECTORY_SEPARATOR . $params->get('efu_folder') . DIRECTORY_SEPARATOR . date("Ym", time() + ((int)date("j") <= 9 ? 0 : 86400 * 10)) . DIRECTORY_SEPARATOR . $user->id;
}
return ($ret);
}
public static function getImages(&$params)
{
$ret = array();
$path = JPATH_SITE . self::getImgPath($params);
if (is_dir($path)) {
$tmp = scandir($path);
$allowedTypes = array(IMAGETYPE_PNG, IMAGETYPE_JPEG, IMAGETYPE_GIF, IMAGETYPE_BMP);
foreach ($tmp as $file) {
$detectedType = exif_imagetype($path . DIRECTORY_SEPARATOR . $file);
if (!in_array($file, array(".", "..")) && in_array($detectedType, $allowedTypes)) $ret[] = $file;
}
}
return ($ret);
}
private static function storeUploadedFile($filepath, &$params, &$result, &$i, $replaced = false)
{
error_log('file path = ' . $filepath);
$result_text = '';
//move the file to the destination folder
$dateFolderName = date("Y");
$month = intval(date("m"));
if ($month == 2) {
if (date("j") > 28) $month++;
} else {
if (date("j") > 30) $month++;
}
if ($month == 13) $month = 1;
$isRenderingCompetition = strpos($params->get('efu_folder'), "rendering_palyazat") !== FALSE;
if ($isRenderingCompetition) {
$uploadFolder = $filepath . DIRECTORY_SEPARATOR . JFactory::getUser()->id . DIRECTORY_SEPARATOR;
@mkdir($uploadFolder, 0770);
} else {
$dateFolderName .= ($month < 10) ? "0" . $month : $month;
$uploadFolder = $filepath . DIRECTORY_SEPARATOR . $dateFolderName . DIRECTORY_SEPARATOR;
@mkdir($uploadFolder, 0770);
$uploadFolder = $filepath . DIRECTORY_SEPARATOR . $dateFolderName . DIRECTORY_SEPARATOR . JFactory::getUser()->id . DIRECTORY_SEPARATOR;
@mkdir($uploadFolder, 0770);
}
$success = move_uploaded_file($_FILES[$params->get('efu_variable')]["tmp_name"][$i], $uploadFolder . $_FILES[$params->get('efu_variable')]["name"][$i]);
if ($replaced) {
$result_text .= JText::_('MOD_EFU_REPLACEMENT_APPROVED') . " ";
}
if ($success) {
if (self::isOrigin($params) === FALSE) {
$res = getimagesize($uploadFolder . $_FILES[$params->get('efu_variable')]["name"][$i]);
if (($res[0] >= 1920 && $res[1] >= 1080) || ($res[0] >= 1080 && $res[1] >= 1920)) {
$user = JFactory::getUser();
$text = "author name: " . $user->name . "\r\n" .
"author crm id: " . $user->nUserID . "\r\n" .
"author joomla id: " . $user->id . "\r\n" .
"upload: " . date("Y-m-d H:i:s") . "\r\n" .
"file name: " . $_FILES[$params->get("efu_variable")]["name"][$i] . "\r\n" .
"file type: " . $res['mime'] . "\r\n" .
"resolution: " . $res[3] . "\r\n" .
"render software: " . (isset($_POST["thirdparty_" . $i]) && trim($_POST["thirdparty_" . $i]) > "" ? strtoupper(isset($_POST["thirdparty_val_" . $i]) && trim($_POST["thirdparty_val_" . $i]) > "" ? trim(substr(strip_tags(stripslashes($_POST["thirdparty_val_" . $i])), 0, 15)) : "3rd party") : "ARCHLine");
$supported_format = array('jpg', 'jpeg', 'png');
$all_files = glob($uploadFolder . '*.*');
$img_count = 0;
for ($j = 0; $j < count($all_files); $j++) {
$image_name = $all_files[$j];
$ext = strtolower(pathinfo($image_name, PATHINFO_EXTENSION));
if (in_array($ext, $supported_format))
$img_count++;
}
// $count = strpos($params->get('efu_folder'), "rendering_palyazat") !== FALSE ? 10 : 3;
$count = 3;
if ($img_count > $count) {
unlink($uploadFolder . $_FILES[$params->get('efu_variable')]["name"][$i]);
$result[$i]['show'] = TRUE;
$result[$i]['type'] = 'error';
$result[$i]['text'] = JText::_('MOD_EFU_UPLOAD_FILE_LIMIT');
return;
}
file_put_contents($uploadFolder . $_FILES[$params->get('efu_variable')]["name"][$i] . ".txt", $text);
} else {
unlink($uploadFolder . $_FILES[$params->get('efu_variable')]["name"][$i]);
$result[$i]['show'] = TRUE;
$result[$i]['type'] = 'error';
$result[$i]['text'] = JText::_('MOD_EFU_UPLOAD_UNSUCCESSFUL_RESOLUTION') . ": " . $_FILES[$params->get('efu_variable')]["name"][$i];
return;
}
}
//Upload was successful.
$result_text .= JText::_('MOD_EFU_UPLOAD_SUCCESSFUL') . "<br />";
$result_text .= JText::_('MOD_EFU_NAME') . ": " . $_FILES[$params->get('efu_variable')]["name"][$i] . "<br />";
$result_text .= JText::_('MOD_EFU_TYPE') . ": " . $_FILES[$params->get('efu_variable')]["type"][$i] . "<br />";
$result_text .= JText::_('MOD_EFU_SIZE') . ": " . modEasyFileUploaderHelper::sizeToText($_FILES[$params->get('efu_variable')]["size"][$i]) . "<br />";
//$result_text.= "Temp file: ".$_FILES[$params->get('efu_variable')]["tmp_name"][$i]."<br />";
//$result_text.= "Stored in: ".$filepath;
$result[$i]['type'] = 'success';
$result[$i]['text'] = $result_text;
} else {
$result_text .= JText::_('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 = JText::_('MOD_EFU_INI_SIZE_ERROR');
break;
case UPLOAD_ERR_FORM_SIZE:
$message = JText::_('MOD_EFU_FORM_SIZE_ERROR');
break;
case UPLOAD_ERR_PARTIAL:
$message = JText::_('MOD_EFU_PARTIAL_ERROR');
break;
case UPLOAD_ERR_NO_FILE:
$message = JText::_('MOD_EFU_NO_FILE_ERROR');
break;
case UPLOAD_ERR_NO_TMP_DIR:
$message = JText::_('MOD_EFU_NO_TMP_DIR_ERROR');
break;
case UPLOAD_ERR_CANT_WRITE:
$message = JText::_('MOD_EFU_CANT_WRITE_ERROR');
break;
case UPLOAD_ERR_EXTENSION:
$message = JText::_('MOD_EFU_EXTENSION_ERROR');
break;
default:
$message = JText::_('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 . JText::_('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'] = JText::_('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'] = JText::_('MOD_EFU_FORBIDDEN_SCRIPT_FOUND');
return false;
}
}
/**
* 3. Check the contents of the uploaded file for the following:
* a. Presence of the PHP tag, <?php
* b. Presence of PHP short tag, <?, but only if file is a script file
* c. Presence of script files in archives (if they are not allowed)
*/
$buffer = 1024 * 8;
$fp = @fopen($_FILES[$params->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, <?php
*/
if (stripos($data, '<?php') !== false) {
$result[$i]['type'] = 'error';
$result[$i]['text'] = JText::_('MOD_EFU_PHP_TAG_FOUND');
$safe = false;
continue;
}
/**
* b. Check for the presence of the PHP short tag, <?, but only if file is a script text file
*/
$script_files = array('php', 'phps', 'php3', 'php4', 'php5', 'class', 'inc', 'txt', 'dat', 'tpl', 'tmpl');
$is_script = false;
foreach ($script_files as $script) {
//check to see if uploaded file is a script file
if (in_array($script, $only_extensions)) {
$is_script = true;
}
}
if ($is_script) {
//search for the short tag
if (stripos($data, '<?') !== false) {
$result[$i]['type'] = 'error';
$result[$i]['text'] = JText::_('MOD_EFU_SHORT_TAG_FOUND');
$safe = false;
continue;
}
}
/**
* c. Check for the presence of forbidden script files in archives (if they are not allowed)
*/
$allow_scripts_in_archive = $params->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'] = JText::_('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;
}
}

View File

@ -1,339 +0,0 @@
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.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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.
<signature of Ty Coon>, 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.

View File

@ -1,15 +1,16 @@
<?php <?php
/** /**
* @version 2.9 * @version 2.7.8
* @author Michael A. Gilkes (jaido7@yahoo.com) * @author Michael A. Gilkes (jaido7@yahoo.com)
* @copyright Michael Albert Gilkes * @copyright Michael Albert Gilkes
* @license GNU/GPLv2 * @license GNU/GPLv2
*/ */
/* /*
Easy File Uploader Module for Joomla! Easy File Uploader Module for Joomla!
Copyright (C) 2010-2020 Michael Albert Gilkes Copyright (C) 2010-2016 Michael Albert Gilkes
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License
@ -31,21 +32,56 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only once // Include the syndicate functions only once
require_once (dirname(__FILE__).DIRECTORY_SEPARATOR.'Helper'.DIRECTORY_SEPARATOR.'EasyFileUploaderHelper.php'); require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'helper.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/maintenance/libraries/phpmailer/PHPMailerAutoload.php');
use Joomla\CMS\Uri\Uri; require_once($_SERVER['DOCUMENT_ROOT'] . '/maintenance/config.mail.php');
use Joomla\CMS\Factory;
use Joomla\CMS\Helper\ModuleHelper;
use ValorApps\Module\EasyFileUploader\Site\Helper\EasyFileUploaderHelper;
//load the CSS and Javascript files //load the CSS and Javascript files
$document = Factory::getDocument(); $document = JFactory::getDocument();
$document->addStyleSheet(Uri::root().'media/mod_easyfileuploader/css/styles.css'); $document->addStyleSheet(JUri::root() . 'media/mod_easyfileuploader/css/styles.css');
$document->addScript(JUri::root() . 'media/mod_easyfileuploader/js/scripts.js');
//check to see if the upload process has started //check to see if the upload process has started
if (isset($_FILES[$params->get('efu_variable')])) if (isset($_FILES[$params->get('efu_variable')]) && trim($_POST["delfile"]) == "") {
{ $result = modEasyFileUploaderHelper::getFileToUpload($params);
$result = EasyFileUploaderHelper::getFileToUpload($params);
$sendEmail = $result[0]['type'] == 'success';
if (strpos($_SERVER['REQUEST_URI'], 'rendering-palyazat-2024') && $sendEmail) {
$user = JFactory::getUser();
$title = 'Sikeres feltöltés - ARCHLine.XP 2024 Rendering Pályázat';
$body = 'Kedves ' . $user->name . '! <br><br>
Köszönjük a sikeresen feltöltött pályázati anyagod.<br><br>
A beküldött pályamunkák közül a szakmai zsűri választja ki a legszebb látványtervet és kapja meg a szakmai díjat.<br>
Szakmai zsűri tagjai: Ács Erzsébet - LOSZ Elnök, Kővári Judit - Junior Art Center Lakberendező Iskola, Hárosi Krisztina, Hárosi Erika - CadLine Kft.<br><br>
A közönség kedvencét Facebook szavazás segítségével fogjuk kiválasztani. Szavazni a Facebook oldalunkon lehet 2024. június 11. és június 30. között.<br>
Eredményhirdetés 2024.07.02.-án lesz. ';
$mail = new PHPMailer;
$mail->isSMTP();
$mail->CharSet = 'UTF-8';
$mail->Host = $mailconfig['Host'];
$mail->SMTPAuth = true;
$mail->Username = $mailconfig['Username'];
$mail->Password = $mailconfig['Password'];
$mail->SMTPSecure = $mailconfig['SMTPSecure'];
$mail->Port = $mailconfig['Port'];
$mail->Subject = $title;
$mail->AltBody = strip_tags($body);
$mail->isHTML(TRUE);
$mail->setFrom($mailconfig['from_hu']);
$mail->addAddress($user->email);
$mail->msgHTML($body);
$mail->send();
}
} }
require(ModuleHelper::getLayoutPath('mod_easyfileuploader', $params->get('layout', 'default'))); if (isset($_POST["del"]) && isset($_POST["delfile"]) && trim($_POST["delfile"]) > "") modEasyFileUploaderHelper::delUploadedFile($params);
require(JModuleHelper::getLayoutPath('mod_easyfileuploader', $params->get('layout', 'default')));

View File

@ -0,0 +1,218 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.4" type="module" client="site" method="upgrade">
<name>MOD_EASYFILEUPLOADER</name>
<author>Michael Gilkes (Valor Apps)</author>
<creationDate>March 2012</creationDate>
<copyright>Copyright (C) 2010-2016 Michael Albert Gilkes. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2</license>
<authorEmail>michael@valorapps.com</authorEmail>
<authorUrl>https://www.valorapps.com</authorUrl>
<version>2.7.8</version>
<description>MOD_EFU_DESCRIPTION</description>
<help url="MOD_EFU_DOCUMENTATION" />
<updateservers>
<server type="extension" name="Easy File Uploader Updates">https://valorapps.com/updateserver/mod_easyfileuploader_updates.xml</server>
</updateservers>
<files>
<filename module="mod_easyfileuploader">mod_easyfileuploader.php</filename>
<filename>index.html</filename>
<filename>helper.php</filename>
<filename>readme.txt</filename>
<filename>CHANGELOG.php</filename>
<folder>tmpl</folder>
<folder>elements</folder>
</files>
<media destination="mod_easyfileuploader">
<folder>css</folder>
</media>
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.mod_easyfileuploader.ini</language>
<language tag="en-GB">en-GB/en-GB.mod_easyfileuploader.sys.ini</language>
<language tag="en-US">en-US/en-US.mod_easyfileuploader.ini</language>
<language tag="en-US">en-US/en-US.mod_easyfileuploader.sys.ini</language>
<language tag="es-ES">es-ES/es-ES.mod_easyfileuploader.ini</language>
<language tag="es-ES">es-ES/es-ES.mod_easyfileuploader.sys.ini</language>
<language tag="fr-FR">fr-FR/fr-FR.mod_easyfileuploader.ini</language>
<language tag="fr-FR">fr-FR/fr-FR.mod_easyfileuploader.sys.ini</language>
</languages>
<scriptfile>script.php</scriptfile>
<config>
<fields name="params" addfieldpath="/modules/mod_easyfileuploader/elements">
<fieldset name="basic">
<!-- Basic Required Fields -->
<field name="efu_parent"
type="folderlist"
default="images"
label="MOD_EFU_PARENT_LABEL"
directory=""
description="MOD_EFU_PARENT_DESC"
hide_none="true"
hide_default="true"
exclude="^[Aa]dministrator$|^[Cc]ache$|^[Cc]omponents$|^[Cc]li$|^[Ii]ncludes$|^[Ll]anguage$|^[Ll]ibraries$|^[Ll]ogs$|^[Mm]odules$|^[Pp]lugins$|^[Tt]emplates$|^[Xx]mlrpc$"
/>
<field name="efu_folder"
type="text"
default=""
label="MOD_EFU_FOLDER_LABEL"
description="MOD_EFU_FOLDER_DESC"
/>
<field name="efu_maxsize"
type="text"
default="1000000"
label="MOD_EFU_MAXSIZE_LABEL"
description="MOD_EFU_MAXSIZE_DESC"
/>
<!-- Custom Text Fields -->
<field name="efu_spacer_custom"
type="spacer"
label="MOD_EFU_CUSTOM_SPACER"
/>
<field name="efu_custom"
type="radio"
default="1"
label="MOD_EFU_CUSTOM_LABEL"
description="MOD_EFU_CUSTOM_DESC"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="efu_label"
type="text"
default="Choose a file to upload:"
label="MOD_EFU_LABELTEXT_LABEL"
description="MOD_EFU_LABELTEXT_DESC"
/>
<field name="efu_button"
type="text"
default="Upload File"
label="MOD_EFU_BUTTON_LABEL"
description="MOD_EFU_BUTTON_DESC"
/>
<field name="efu_question"
type="text"
default="Replace existing files with uploaded files?"
label="MOD_EFU_QUESTION_LABEL"
description="MOD_EFU_QUESTION_DESC"
/>
<field name="efu_yes"
type="text"
default="Yes"
label="MOD_EFU_YESTEXT_LABEL"
description="MOD_EFU_YESTEXT_DESC"
/>
<field name="efu_no"
type="text"
default="No"
label="MOD_EFU_NOTEXT_LABEL"
description="MOD_EFU_NOTEXT_DESC"
/>
<!-- Security -->
<field name="efu_spacer_details"
type="spacer"
label="MOD_EFU_DETAILS_SPACER"
/>
<field name="efu_filetypes"
type="textarea"
default="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"
label="MOD_EFU_FILETYPES_LABEL"
description="MOD_EFU_FILETYPES_DESC"
rows="10"
cols="40"
/>
<field name="efu_replace"
type="radio"
default="1"
label="MOD_EFU_REPLACE_LABEL"
description="MOD_EFU_REPLACE_DESC"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="efu_scriptsinarchives"
type="radio"
default="0"
label="MOD_EFU_SCRIPTS_IN_ARCHIVE_LABEL"
description="MOD_EFU_SCRIPTS_IN_ARCHIVE_DESC"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<!-- Formatting -->
<field name="efu_spacer_format"
type="spacer"
label="MOD_EFU_FORMAT_SPACER"
/>
<field name="efu_variable"
type="text"
default="fileToUpload"
label="MOD_EFU_VARIABLE_LABEL"
description="MOD_EFU_VARIABLE_DESC"
/>
<field name="efu_multiple"
type="list"
default="1"
label="MOD_EFU_MULTIPLE_LABEL"
description="MOD_EFU_MULTIPLE_DESC"
>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</field>
<field name="efu_shownofile"
type="radio"
default="1"
label="MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_LABEL"
description="MOD_EFU_SHOW_NO_FILE_UPLOADED_NOTICE_DESC"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<!-- Module Class -->
<field name="efu_spacer_css"
type="spacer"
label="MOD_EFU_FILTER_SPACER"
/>
<field name="moduleclass_sfx"
type="text"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"
/>
<field name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
/>
<!-- Advanced Features -->
<field name="efu_spacer_advanced"
type="spacer"
label="MOD_EFU_ADVANCED_SPACER"
/>
<field name="efu_user"
type="radio"
default="0"
label="MOD_EFU_USER_LABEL"
description="MOD_EFU_USER_DESC"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="efu_mimedetect"
type="easydiagnostic"
label=""
/>
</fieldset>
</fields>
</config>
</extension>

View File

@ -1,8 +1,4 @@
Easy File Uploader v2.9.2.1 Easy File Uploader v2.7.8
NOTE:
!! This is a fixed version of the orignal Joomla Easy File Uploader by M.Gilkes. !!
See CHANGELOG.php
Copyright: Michael A. Gilkes Copyright: Michael A. Gilkes
License: GNU/GPL v2 License: GNU/GPL v2
@ -72,4 +68,3 @@ Credit:
Jeff Channell - providing the code fix for the MIME type tamper vulnerability Jeff Channell - providing the code fix for the MIME type tamper vulnerability
Sonja Gilkes - spanish translation contributor Sonja Gilkes - spanish translation contributor
Denis Bouteau - french translation contributor [http://www.weborganisation.com] Denis Bouteau - french translation contributor [http://www.weborganisation.com]
Gilles NÉDÉLEC - (updated 2020) french translation contributor [http://www.vcmb.fr/cyclo]

View File

@ -0,0 +1,87 @@
<?php
/**
* @version 2.7.8
* @author Michael A. Gilkes (jaido7@yahoo.com)
* @copyright Michael Albert Gilkes
* @license GNU/GPLv2
*
Easy File Uploader Module for Joomla!
Copyright (C) 2010-2016 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.
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
class mod_easyfileuploaderInstallerScript
{
/**
* Called before any type of action. Method to run before an install/update/uninstall method.
*
* @param string $route Which action is happening (install|uninstall|discover_install)
* @param JAdapterInstance $parent The object responsible for running this script
*
* @return boolean True on success
*/
function preflight($route, $adapter)
{
}
/**
* Called on installation
*
* @param JAdapterInstance $adapter The object responsible for running this script
*
* @return boolean True on success
*/
function install($adapter)
{
}
/**
* Called on update
*
* @param JAdapterInstance $adapter The object responsible for running this script
*
* @return boolean True on success
*/
function update($adapter)
{
}
/**
* Called on uninstallation
*
* @param JAdapterInstance $adapter The object responsible for running this script
*/
function uninstall($adapter)
{
}
/**
* Called after any type of action. Method to run after an install/update/uninstall method.
*
* @param string $route Which action is happening (install|uninstall|discover_install)
* @param JAdapterInstance $adapter The object responsible for running this script
*
* @return boolean True on success
*/
function postflight($route, $adapter)
{
}
}

View File

@ -1,15 +1,16 @@
<?php <?php
/** /**
* @version 2.9.2.1 * @version 2.7.8
* @author Michael A. Gilkes (jaido7@yahoo.com) * @author Michael A. Gilkes (jaido7@yahoo.com)
* @copyright Michael Albert Gilkes * @copyright Michael Albert Gilkes
* @license GNU/GPLv2 * @license GNU/GPLv2
*/ */
/* /*
Easy File Uploader Module for Joomla! Easy File Uploader Module for Joomla!
Copyright (C) 2010-2020 Michael Albert Gilkes Copyright (C) 2010-2016 Michael Albert Gilkes
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License
@ -28,10 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
//no direct access //no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
//get the module class designation //get the module class designation
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
@ -42,22 +40,23 @@ $buttonText = $params->get('efu_button');
$questionText = $params->get('efu_question'); $questionText = $params->get('efu_question');
$yesText = $params->get('efu_yes'); $yesText = $params->get('efu_yes');
$noText = $params->get('efu_no'); $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 = JText::_('MOD_EFU_LABEL_TEXT');
if ($params->get('efu_custom') == 0) $buttonText = JText::_('MOD_EFU_BUTTON_TEXT');
{ $questionText = JText::_('MOD_EFU_QUESTION_TEXT');
$labelText = Text::_('MOD_EFU_LABEL_TEXT'); $yesText = JText::_('JYES');
$buttonText = Text::_('MOD_EFU_BUTTON_TEXT'); $noText = JText::_('JNO');
$questionText = Text::_('MOD_EFU_QUESTION_TEXT');
$yesText = Text::_('JYES');
$noText = Text::_('JNO');
} }
//specify the action //specify the action
$action = Uri::current().Uri::query; $action = JUri::current();
$user = JFactory::getUser();
$images = modEasyFileUploaderHelper::getImages($params);
?> if ($user->guest == TRUE) : ?>
<div class="<?php echo $moduleclass_sfx;?>"> <?= JModuleHelper::renderModule(JModuleHelper::getModule('login'), array()) ?>
<?php else : ?>
<div class="<?php echo $moduleclass_sfx; ?>">
<!-- Display the Results of the file upload if uploading was attempted --> <!-- Display the Results of the file upload if uploading was attempted -->
<?php if (isset($_FILES[$params->get('efu_variable')])) : ?> <?php if (isset($_FILES[$params->get('efu_variable')])) : ?>
<?php for ($j = 0; $j < count($result); $j++) : ?> <?php for ($j = 0; $j < count($result); $j++) : ?>
@ -73,44 +72,81 @@ $action = Uri::current().Uri::query;
if ($result[$j]['show'] == false) : if ($result[$j]['show'] == false) :
$show_class = " efum-hide"; $show_class = " efum-hide";
endif; ?> endif; ?>
<div class="efum-alert efum-<?php echo $result[$j]['type'].$show_class;?>"> <div class="efum-alert efum-<?php echo $result[$j]['type'] . $show_class; ?>">
<span class="close-btn" onclick="this.parentNode.style.display = 'none';">&times;</span> <span class="close-btn" onclick="this.parentNode.style.display = 'none';">&times;</span>
<?php echo $result[$j]['text']; ?> <?php echo $result[$j]['text']; ?>
</div> </div>
<?php endfor; ?> <?php endfor; ?>
<?php endif; ?> <?php endif; ?>
<!-- Input form for the File Upload --> <!-- Input form for the File Upload -->
<form enctype="multipart/form-data" action="<?php echo $action; ?>" method="post"> <form enctype="multipart/form-data" action="<?php echo $action; ?>" method="post" class="efum-form">
<div class="mt-1"> <?php if ($params->get('efu_multiple') == "1") : ?>
<?php if ($params->get('efu_multiple') == "1"): ?> <label for=<?php echo '"' . $params->get('efu_variable') . '[]"'; ?>><?php echo $labelText; ?></label>
<label for=<?php echo '"'.$params->get('efu_variable').'[]"'; ?>><?php echo $labelText; ?></label><br/> <?php else : ?>
<?php else: ?> <?php if ((intval($params->get('efu_multiple')) - count($images)) > 0) echo '<p>' . $labelText . '</p>'; ?>
<?php echo $labelText; ?><br />
<?php endif; ?> <?php endif; ?>
<?php <?php
$max = intval($params->get('efu_multiple')); for ($i = 0; $i < (intval($params->get('efu_multiple')) - count($images)); $i++) : ?>
for ($i = 0; $i < $max; $i++): ?> <input type="file" name=<?php echo '"' . $params->get('efu_variable') . '[]"'; ?> id=<?php echo '"' . $params->get('efu_variable') . '[]"'; ?> accept="image/gif,image/jpg,image/jpeg,image/bmp,image/png" style="margin-top:1px; margin-bottom:1rem;" />
<input type="file" name=<?php echo '"'.$params->get('efu_variable').'[]"'; ?> id=<?php echo '"'.$params->get('efu_variable').'[]"'; ?> /><br/> <?php if (modEasyFileUploaderHelper::isOrigin($params) === FALSE) : ?>
<?php
if (strpos($_SERVER['REQUEST_URI'], 'live') !== false || strpos($_SERVER['REQUEST_URI'], 'rendering-palyazat') !== false) {
} else {
?>
<input type="checkbox" name="thirdparty_<?= $i ?>" id="thirdparty_<?= $i ?>" onclick="javascript:atvalt(<?= $i ?>);" />
<label for="thirdparty_<?= $i ?>"><?= JText::_('MOD_EFU_THIRDPARTY') ?></label>&nbsp;
<?php
}
?>
<!--<input type="text" name="thirdparty_val_<?= $i ?>" id="thirdparty_val_<?= $i ?>" placeholder="<?= JText::_('MOD_EFU_THIRDPARTY_VAL') ?>" maxlength="15" class="efum-hide" />-->
<?php endif; ?>
<?php endfor; ?> <?php endfor; ?>
<?php echo 'Max. '.$maxSize.' KB'; ?> <?php if ($params->get('efu_replace') == true) : /* 1 means 'Yes' or true. 0 means 'No' or false. */ ?>
</div>
<?php if ($params->get('efu_default_replace') == false && $params->get('efu_replace') == true): /* 1 means 'Yes' or true. 0 means 'No' or false. */ ?>
<div class="mt-1">
<div><?php echo $questionText; ?></div> <div><?php echo $questionText; ?></div>
<div class="form-check form-check-inline"> <input type="radio" name="answer" value="1" /><?php echo $yesText; ?><br />
<label class="form-check-label"> <input type="radio" name="answer" value="0" checked /><?php echo $noText; ?><br />
<input type="radio" name="answer" value="1" class="form-check-input" /><?php echo $yesText; ?> <br />
</label> <?php endif; ?>
</div>
<div class="form-check form-check-inline"> <?php if (intval($params->get('efu_multiple')) - count($images) > 0) : ?>
<label class="form-check-label"> <input class="custom-al-btn" type="submit" name="submit" value=<?php echo '"' . $buttonText . '"'; ?> />
<input type="radio" name="answer" value="0" class="form-check-input" checked /><?php echo $noText; ?> <?php endif; ?>
</label>
<?php if (modEasyFileUploaderHelper::isOrigin($params) === FALSE) : ?>
<div id="imageContainer">
<?php
$path = modEasyFileUploaderHelper::getImgPath($params);
$images = modEasyFileUploaderHelper::getImages($params);
foreach ($images as $i => $image) : ?>
<div class="efum-image">
<img src="<?= $path . DIRECTORY_SEPARATOR . $image ?>" /><br />
<?= $image ?><br />
<input type="submit" name="del" id="del_<?= $i ?>" value="<?= JText::_('MOD_EFU_DEL') ?>" onclick="javascript:jQuery('#delfile').val('<?= $image ?>')" />
</div> </div>
<?php endforeach; ?>
<input type="hidden" name="delfile" id="delfile" value="" />
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="mt-2">
<input class="btn btn-primary" type="submit" name="submit" value=<?php echo '"'.$buttonText.'"'; ?> />
</div>
</form> </form>
</div> </div>
<?php endif; ?>
<script type="text/javascript">
jQuery(document).ready(function() {
setDeadLine();
});
function atvalt(azon) {
if (jQuery('#thirdparty_' + azon).is(':checked')) {
jQuery("#thirdparty_val_" + azon).show("fast");
} else {
jQuery("#thirdparty_val_" + azon).hide("fast");
}
}
function setDeadLine() {
var element = document.getElementById('deadline');
var datum = '<?= date("Y-m-27", time() + ((int)date("j") <= 27 ? 0 : 86400 * 10)) ?>';
if (typeof(element) != undefined && element != null) element.innerHTML = datum;
}
</script>