diff --git a/README.md b/README.md index 45d3a73..7363f0f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ The IFM is a web-based filemanager, which comes as a single file solution using - simple authentication (LDAP via `ldap_bind` possible) -**Shipped version:** 4.0.0~ynh3 +**Shipped version:** 4.0.2~ynh1 **Demo:** https://ifmdemo.gitea.de/ diff --git a/README_fr.md b/README_fr.md index 3cd11d1..4135db0 100644 --- a/README_fr.md +++ b/README_fr.md @@ -29,7 +29,7 @@ L'IFM est un gestionnaire de fichiers basé sur le Web, qui se présente sous la - aperçu de l'image - authentification simple (LDAP via `ldap_bind` possible) -**Version incluse :** 4.0.0~ynh3 +**Version incluse :** 4.0.2~ynh1 **Démo :** https://ifmdemo.gitea.de/ diff --git a/check_process b/check_process deleted file mode 100644 index a94739b..0000000 --- a/check_process +++ /dev/null @@ -1,24 +0,0 @@ -;; Test complet - ; Manifest - domain="domain.tld" - path="/path" - is_public=1 - ; Checks - pkg_linter=1 - setup_sub_dir=1 - setup_root=1 - setup_nourl=0 - setup_private=1 - setup_public=1 - upgrade=1 - #upgrade=1 from_commit=CommitHash - backup_restore=1 - multi_instance=1 - change_url=1 -;;; Options -Email= -Notification=none -;;; Upgrade options - ; commit=CommitHash - name=Name and date of the commit. - manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666& diff --git a/manifest.toml b/manifest.toml index dcaf344..1f216f0 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "IFM" description.en = "Improved File Manager" description.fr = "Gestionnaire de fichiers amélioré" -version = "4.0.0~ynh3" +version = "4.0.2~ynh1" maintainers = ["eric_G"] @@ -15,11 +15,14 @@ demo = "https://ifmdemo.gitea.de/" code = "https://github.com/misterunknown/ifm" [integration] -yunohost = ">= 11.1.15" +yunohost = ">= 11.2" architectures = "all" multi_instance = true + ldap = false + sso = false + disk = "50M" ram.build = "50M" ram.runtime = "50M" diff --git a/sources/ifm.php b/sources/ifm.php index 9745a6d..9921467 100644 --- a/sources/ifm.php +++ b/sources/ifm.php @@ -1,13 +1,12 @@ "", "timezone" => "", "forbiddenChars" => [], - "dateLocale" => "en-US", "language" => "en", "selfoverwrite" => 0, "session_name" => false, @@ -48,6 +46,7 @@ class IFM { "extract" => 1, "upload" => 1, "remoteupload" => 1, + "remoteupload_disable_ssrf_check" => 0, "rename" => 1, "zipnload" => 1, "createarchive" => 1, @@ -206,122 +205,7 @@ class IFM { "upload_overwrite_hint": "The following files will be overwritten:", "upload_remote": "Remote Upload", "upload_remote_url": "Remote Upload URL", - "username": "Username", - "word_wrap": "Word Wrap" -} - -f00bar; -$i18n["en"] = json_decode( $i18n["en"], true ); -$i18n["en"] = <<<'f00bar' -{ - "ajax_request": "AJAX request", - "archive_create_error": "Could not create archive.", - "archive_create_success": "Archive created.", - "archive_invalid_format": "Invalid archive format given.", - "archivename": "Name of the archive", - "cancel": "Cancel", - "close": "Close", - "copy": "Copy", - "copy_error": "The following files could not be copied:", - "copy_success": "Files copied.", - "copylink": "Copy link", - "create": "Create", - "create_archive": "Create archive", - "create_wo_close": "Create w/o close", - "data": "Data", - "delete": "Delete", - "directoryname": "Directory Name", - "download": "Download", - "edit": "Edit", - "editor_options": "Editor Options", - "error": "Error:", - "extract": "Extract", - "extract_error": "Could not extract archive.", - "extract_filename": "Extract file:", - "extract_success": "Archive extracted.", - "file_copy_to": "to", - "file_delete_confirm": "Do you really want to delete the following file:", - "file_delete_error": "Could not delete files.", - "file_delete_success": "Files deleted.", - "file_display_error": "This file cannot be displayed or edited.", - "file_load_error": "Could not load content.", - "file_new": "New file", - "file_no_permission": "No permission to edit/create file.", - "file_not_found": "Could either not find or open file.", - "file_open_error": "Could not open the file.", - "file_rename": "Rename File", - "file_rename_error": "File could not be renamed", - "file_rename_success": "File renamed.", - "file_save_confirm": "Do you want to save the following file:", - "file_save_error": "Could not save file.", - "file_save_success": "File saved.", - "file_upload_error": "Could not upload file.", - "file_upload_success": "File uploaded.", - "filename": "Filename", - "filename_new": "New Filename", - "filename_slashes": "Remove all slashes from the filename.", - "filter": "Filter", - "folder_create_error": "Could not create directory:", - "folder_create_success": "Directory created.", - "folder_new": "New Folder", - "folder_not_found": "Could not find the directory.", - "folder_tree_load_error": "Could not fetch folder tree.", - "footer": "IFM - improved file manager | ifm.php hidden |", - "general_error": "General error: No or broken response.", - "github": "Visit the project on GitHub", - "group": "Group", - "invalid_action": "Invalid action given.", - "invalid_archive_format": "Invalid archive format given. Possible formats are ZIP, TAR, tar.gz or tar.bz2.", - "invalid_data": "Invalid data from server.", - "invalid_dir": "Invalid directory given.", - "invalid_filename": "Invalid filename given.", - "invalid_params": "Invalid parameter given.", - "invalid_url": "Invalid URL given.", - "json_encode_error": "Could not format the response as JSON:", - "last_modified": "Last Modified", - "load_config_error": "Could not load configuration.", - "load_template_error": "Could not load templates.", - "load_text_error": "Could not load texts.", - "login": "Login", - "login_failed": "Login failed.", - "logout": "Log Off", - "method": "Method", - "move": "Move", - "move_error": "The following files could not be moved:", - "move_success": "Files moved.", - "nopermissions": "You lack the permissions to do that.", - "options": "Options", - "owner": "Owner", - "password": "Password", - "path_content": "Current directory", - "pattern_error_slashes": "Pattern cannot contain slashes.", - "permission_change_error": "Could not change permissions:", - "permission_change_success": "Permissions changed.", - "permission_parse_error": "Could not parse permissions.", - "permissions": "Permissions", - "refresh": "Refresh", - "remaining_tasks": "There are remaining tasks. Do you really want to reload?", - "rename": "Rename", - "rename_filename": "Rename file:", - "request": "Request", - "response": "Response", - "save": "Save", - "save_wo_close": "Save without Closing", - "search": "Search", - "search_pattern": "Pattern", - "select_destination": "Select Destination", - "size": "Size", - "soft_tabs": "Soft Tabs", - "tab_size": "Tab Size", - "tasks": "Tasks", - "toggle_nav": "Toggle navigation", - "upload": "Upload", - "upload_drop": "Drop files to upload", - "upload_file": "Upload File", - "upload_overwrite_confirm": "Upload anyway?", - "upload_overwrite_hint": "The following files will be overwritten:", - "upload_remote": "Remote Upload", - "upload_remote_url": "Remote Upload URL", + "url_not_allowed": "This URL is not allowed.", "username": "Username", "word_wrap": "Word Wrap" } @@ -2681,7 +2565,7 @@ function IFM(params) { this.formatDate = function( timestamp ) { let d = new Date( timestamp * 1000 ); - return d.toLocaleString(self.config.dateLocale); + return d.toLocaleString(navigator.language || "en-US"); }; this.getClipboardLink = function( relpath ) { @@ -3611,7 +3495,7 @@ f00bar;