RFM Compatibilité PHP 8.1
This commit is contained in:
parent
2b5c4dc164
commit
4a021407a8
6
core/vendor/filemanager/config/config.php
vendored
6
core/vendor/filemanager/config/config.php
vendored
@ -300,7 +300,7 @@ $config = array(
|
|||||||
| default language file name
|
| default language file name
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'default_language' => "fr_FR",
|
'default_language' => 'fr_FR',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -454,9 +454,9 @@ $config = array(
|
|||||||
//**********************
|
//**********************
|
||||||
//Allowed extensions (lowercase insert)
|
//Allowed extensions (lowercase insert)
|
||||||
//**********************
|
//**********************
|
||||||
'ext_img' => array( 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff','svg', 'ico', 'webp' ), //Images
|
'ext_img' => array( 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff','svg', 'ico', 'webp', 'avif' ), //Images
|
||||||
'ext_file' => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'ics', 'gpx', 'kml', ''), //Files
|
'ext_file' => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'ics', 'gpx', 'kml', ''), //Files
|
||||||
'ext_video' => array( 'mov', 'mpeg', 'm4v', 'mp4', 'avi', 'mpg', 'wma', "flv", "webm" ), //Video
|
'ext_video' => array( 'mov', 'mpeg', 'm4v', 'mp4', 'avi', 'mpg', 'wma', 'flv', 'webm' ), //Video
|
||||||
'ext_music' => array( 'mp3', 'mpga', 'm4a', 'ac3', 'aiff', 'mid', 'ogg', 'wav' ), //Audio
|
'ext_music' => array( 'mp3', 'mpga', 'm4a', 'ac3', 'aiff', 'mid', 'ogg', 'wav' ), //Audio
|
||||||
'ext_misc' => array( 'zip', 'rar', 'gz', 'tar', 'iso', 'dmg', 'woff' ), //Archives et polices de caractères
|
'ext_misc' => array( 'zip', 'rar', 'gz', 'tar', 'iso', 'dmg', 'woff' ), //Archives et polices de caractères
|
||||||
|
|
||||||
|
2
core/vendor/filemanager/dialog.php
vendored
2
core/vendor/filemanager/dialog.php
vendored
@ -276,7 +276,7 @@ if (isset($_GET['editor'])) {
|
|||||||
$editor = $_GET['type'] == 0 ? null : 'tinymce';
|
$editor = $_GET['type'] == 0 ? null : 'tinymce';
|
||||||
}
|
}
|
||||||
|
|
||||||
$field_id = isset($_GET['field_id']) ? fix_get_params($_GET['field_id']) : null;
|
$field_id = isset($_GET['field_id']) ? fix_get_params($_GET['field_id']) : '';
|
||||||
$type_param = fix_get_params($_GET['type']);
|
$type_param = fix_get_params($_GET['type']);
|
||||||
$apply = null;
|
$apply = null;
|
||||||
|
|
||||||
|
@ -40756,7 +40756,7 @@ function _iterableToArray(iter) {
|
|||||||
}
|
}
|
||||||
// EXTERNAL MODULE: ../../node_modules/@babel/runtime-corejs3/core-js/instance/slice.js
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime-corejs3/core-js/instance/slice.js
|
||||||
var instance_slice = __webpack_require__(711);
|
var instance_slice = __webpack_require__(711);
|
||||||
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray.js
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime-corejs3/helpers/esm/unsupportÉditerableToArray.js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
6
core/vendor/filemanager/lang/fr_FR.php
vendored
6
core/vendor/filemanager/lang/fr_FR.php
vendored
@ -79,7 +79,7 @@ return array(
|
|||||||
'Show_url' => 'Afficher l\'URL',
|
'Show_url' => 'Afficher l\'URL',
|
||||||
'Extract' => 'Extraire ici',
|
'Extract' => 'Extraire ici',
|
||||||
'File_info' => 'Information',
|
'File_info' => 'Information',
|
||||||
'Edit_image' => 'Editer l\'image',
|
'Edit_image' => 'Éditer l\'image',
|
||||||
'Duplicate' => 'Dupliquer',
|
'Duplicate' => 'Dupliquer',
|
||||||
'Folders' => 'Dossiers',
|
'Folders' => 'Dossiers',
|
||||||
'Copy' => 'Copier',
|
'Copy' => 'Copier',
|
||||||
@ -114,8 +114,8 @@ return array(
|
|||||||
'Lang_Change' => 'Changer la langue',
|
'Lang_Change' => 'Changer la langue',
|
||||||
'File_Not_Found' => 'Le fichier est introuvable.',
|
'File_Not_Found' => 'Le fichier est introuvable.',
|
||||||
'File_Open_Edit_Not_Allowed' => 'Vous ne disposez pas des autorisations sur le fichier %s.', // %s = open or edit
|
'File_Open_Edit_Not_Allowed' => 'Vous ne disposez pas des autorisations sur le fichier %s.', // %s = open or edit
|
||||||
'Edit' => 'Editer',
|
'Edit' => 'Éditer',
|
||||||
'Edit_File' => 'Editer le contenu du fichier',
|
'Edit_File' => 'Éditer le contenu du fichier',
|
||||||
'File_Save_OK' => 'Fichier enregistré avec succès.',
|
'File_Save_OK' => 'Fichier enregistré avec succès.',
|
||||||
'File_Save_Error' => 'Une erreur s\'est produite lors de l\'enregistrement du fichier.',
|
'File_Save_Error' => 'Une erreur s\'est produite lors de l\'enregistrement du fichier.',
|
||||||
'New_File' => 'Nouveau fichier',
|
'New_File' => 'Nouveau fichier',
|
||||||
|
2
core/vendor/filemanager/lang/sv_SE.php
vendored
2
core/vendor/filemanager/lang/sv_SE.php
vendored
@ -79,7 +79,7 @@ return array(
|
|||||||
'Show_url' => 'visa sökväg', // show URL
|
'Show_url' => 'visa sökväg', // show URL
|
||||||
'Extract' => 'packa upp här', // extract here
|
'Extract' => 'packa upp här', // extract here
|
||||||
'File_info' => 'fil information', // file info
|
'File_info' => 'fil information', // file info
|
||||||
'Edit_image' => 'editera bild', // edit image
|
'Edit_image' => 'Éditera bild', // edit image
|
||||||
'Duplicate' => 'Duplicera', // Duplicate
|
'Duplicate' => 'Duplicera', // Duplicate
|
||||||
'Folders' => 'Folders', // Folders
|
'Folders' => 'Folders', // Folders
|
||||||
'Copy' => 'Kopiera', // Copy
|
'Copy' => 'Kopiera', // Copy
|
||||||
|
112
core/vendor/filemanager/plugin.min.js
vendored
112
core/vendor/filemanager/plugin.min.js
vendored
@ -1,111 +1 @@
|
|||||||
/**
|
tinymce.PluginManager.add("filemanager",(function(editor){function filemanager_onMessage(event){0===editor.settings.external_filemanager_path.toLowerCase().indexOf(event.origin.toLowerCase())&&"responsivefilemanager"===event.data.sender&&(tinymce.activeEditor.windowManager.getParams().setUrl(event.data.url),tinymce.activeEditor.windowManager.close(),window.removeEventListener?window.removeEventListener("message",filemanager_onMessage,!1):window.detachEvent("onmessage",filemanager_onMessage))}function filemanager(callback,value,meta){var width=window.innerWidth-30,height=window.innerHeight-60,width_reduce;(width>1800&&(width=1800),height>1200&&(height=1200),width>600)&&(width=width-(width-20)%138+10);urltype=2,"image"!==meta.filetype&&"image"!==meta.mediaType||(urltype=1),"media"!==meta.filetype&&"media"!==meta.mediaType||(urltype=3);var title="RESPONSIVE FileManager";void 0!==editor.settings.filemanager_title&&editor.settings.filemanager_title&&(title=editor.settings.filemanager_title);var akey="key";void 0!==editor.settings.filemanager_access_key&&editor.settings.filemanager_access_key&&(akey=editor.settings.filemanager_access_key);var sort_by="";void 0!==editor.settings.filemanager_sort_by&&editor.settings.filemanager_sort_by&&(sort_by="&sort_by="+editor.settings.filemanager_sort_by);var descending=0;void 0!==editor.settings.filemanager_descending&&editor.settings.filemanager_descending&&(descending=editor.settings.filemanager_descending);var fldr="";void 0!==editor.settings.filemanager_subfolder&&editor.settings.filemanager_subfolder&&(fldr="&fldr="+editor.settings.filemanager_subfolder);var crossdomain="";void 0!==editor.settings.filemanager_crossdomain&&editor.settings.filemanager_crossdomain&&(crossdomain="&crossdomain=1",window.addEventListener?window.addEventListener("message",filemanager_onMessage,!1):window.attachEvent("onmessage",filemanager_onMessage)),window.addEventListener("message",(function receiveMessage(event){"responsivefilemanager"===event.data.sender&&callback(event.data.url)}),!1);var dialogUrl=editor.settings.external_filemanager_path+"dialog.php?type="+urltype+"&descending="+descending+sort_by+fldr+crossdomain+"&lang="+editor.settings.language+"&akey="+akey;tinymce.majorVersion>4?tinymce.activeEditor.windowManager.openUrl({title:title,url:dialogUrl,width:width,height:height,resizable:!0,maximizable:!0,inline:1}):tinymce.activeEditor.windowManager.open({title:title,file:dialogUrl,width:width,height:height,resizable:!0,maximizable:!0,inline:1})}return editor.settings.file_picker_types="file image media",editor.settings.file_picker_callback=filemanager,!1}));
|
||||||
* plugin.js
|
|
||||||
*
|
|
||||||
* Copyright, Alberto Peripolli
|
|
||||||
* Released under Creative Commons Attribution-NonCommercial 3.0 Unported License.
|
|
||||||
*
|
|
||||||
* Contributing: https://github.com/trippo/ResponsiveFilemanager
|
|
||||||
*/
|
|
||||||
|
|
||||||
tinymce.PluginManager.add('filemanager', function(editor) {
|
|
||||||
|
|
||||||
editor.settings.file_picker_types = 'file image media';
|
|
||||||
editor.settings.file_picker_callback = filemanager;
|
|
||||||
|
|
||||||
function filemanager_onMessage(event){
|
|
||||||
if(editor.settings.external_filemanager_path.toLowerCase().indexOf(event.origin.toLowerCase()) === 0){
|
|
||||||
if(event.data.sender === 'responsivefilemanager'){
|
|
||||||
tinymce.activeEditor.windowManager.getParams().setUrl(event.data.url);
|
|
||||||
tinymce.activeEditor.windowManager.close();
|
|
||||||
|
|
||||||
// Remove event listener for a message from ResponsiveFilemanager
|
|
||||||
if(window.removeEventListener){
|
|
||||||
window.removeEventListener('message', filemanager_onMessage, false);
|
|
||||||
} else {
|
|
||||||
window.detachEvent('onmessage', filemanager_onMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function filemanager(callback, value, meta) {
|
|
||||||
var width = window.innerWidth-30;
|
|
||||||
var height = window.innerHeight-60;
|
|
||||||
if(width > 1800) width=1800;
|
|
||||||
if(height > 1200) height=1200;
|
|
||||||
if(width>600){
|
|
||||||
var width_reduce = (width - 20) % 138;
|
|
||||||
width = width - width_reduce + 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
// DEFAULT AS FILE
|
|
||||||
urltype=2;
|
|
||||||
if (meta.filetype === 'image' || meta.mediaType === 'image') { urltype=1; }
|
|
||||||
if (meta.filetype === 'media' || meta.mediaType === 'media') { urltype=3; }
|
|
||||||
|
|
||||||
var title="RESPONSIVE FileManager";
|
|
||||||
if (typeof editor.settings.filemanager_title !== "undefined" && editor.settings.filemanager_title) {
|
|
||||||
title=editor.settings.filemanager_title;
|
|
||||||
}
|
|
||||||
var akey="key";
|
|
||||||
if (typeof editor.settings.filemanager_access_key !== "undefined" && editor.settings.filemanager_access_key) {
|
|
||||||
akey=editor.settings.filemanager_access_key;
|
|
||||||
}
|
|
||||||
var sort_by="";
|
|
||||||
if (typeof editor.settings.filemanager_sort_by !== "undefined" && editor.settings.filemanager_sort_by) {
|
|
||||||
sort_by="&sort_by="+editor.settings.filemanager_sort_by;
|
|
||||||
}
|
|
||||||
var descending=0;
|
|
||||||
if (typeof editor.settings.filemanager_descending !== "undefined" && editor.settings.filemanager_descending) {
|
|
||||||
descending=editor.settings.filemanager_descending;
|
|
||||||
}
|
|
||||||
var fldr="";
|
|
||||||
if (typeof editor.settings.filemanager_subfolder !== "undefined" && editor.settings.filemanager_subfolder) {
|
|
||||||
fldr="&fldr="+editor.settings.filemanager_subfolder;
|
|
||||||
}
|
|
||||||
var crossdomain="";
|
|
||||||
if (typeof editor.settings.filemanager_crossdomain !== "undefined" && editor.settings.filemanager_crossdomain) {
|
|
||||||
crossdomain="&crossdomain=1";
|
|
||||||
|
|
||||||
// Add handler for a message from ResponsiveFilemanager
|
|
||||||
if(window.addEventListener){
|
|
||||||
window.addEventListener('message', filemanager_onMessage, false);
|
|
||||||
} else {
|
|
||||||
window.attachEvent('onmessage', filemanager_onMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener('message', function receiveMessage(event) {
|
|
||||||
window.removeEventListener('message', receiveMessage, false);
|
|
||||||
if (event.data.sender === 'responsivefilemanager') {
|
|
||||||
callback(event.data.url);
|
|
||||||
}
|
|
||||||
}, false);
|
|
||||||
|
|
||||||
var dialogUrl = editor.settings.external_filemanager_path+'dialog.php?type='+urltype+'&descending='+descending+sort_by+fldr+crossdomain+'&lang='+editor.settings.language+'&akey='+akey;
|
|
||||||
|
|
||||||
if (tinymce.majorVersion > 4) {
|
|
||||||
tinymce.activeEditor.windowManager.openUrl({
|
|
||||||
title: title,
|
|
||||||
url: dialogUrl,
|
|
||||||
width: width,
|
|
||||||
height: height,
|
|
||||||
resizable: true,
|
|
||||||
maximizable: true,
|
|
||||||
inline: 1,
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
tinymce.activeEditor.windowManager.open({
|
|
||||||
title: title,
|
|
||||||
file: dialogUrl,
|
|
||||||
width: width,
|
|
||||||
height: height,
|
|
||||||
resizable: true,
|
|
||||||
maximizable: true,
|
|
||||||
inline: 1,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
});
|
|
Loading…
Reference in New Issue
Block a user