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;