mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-01 10:50:37 +02:00
Files Manager Improvements #94
This commit is contained in:
@@ -17,7 +17,7 @@ class FilesmanagerAdmin extends Backend
|
|||||||
$forbidden_types = array('html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
|
$forbidden_types = array('html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
|
||||||
'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
|
'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
|
||||||
'shtml', 'jhtml', 'pl', 'py', 'cgi', 'sh', 'ksh', 'bsh', 'c', 'htaccess', 'htpasswd',
|
'shtml', 'jhtml', 'pl', 'py', 'cgi', 'sh', 'ksh', 'bsh', 'c', 'htaccess', 'htpasswd',
|
||||||
'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl');
|
'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl', 'empty');
|
||||||
|
|
||||||
// Array of image types
|
// Array of image types
|
||||||
$image_types = array('jpg', 'png', 'bmp', 'gif', 'tif');
|
$image_types = array('jpg', 'png', 'bmp', 'gif', 'tif');
|
||||||
|
@@ -26,7 +26,4 @@ if (Session::exists('user_role') && in_array(Session::get('user_role'), array('a
|
|||||||
// Include Admin
|
// Include Admin
|
||||||
Plugin::admin('filesmanager', 'box');
|
Plugin::admin('filesmanager', 'box');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add Plugin Javascript
|
|
||||||
Javascript::add('plugins/box/filesmanager/js/filesmanager.js', 'backend');
|
|
@@ -1,18 +0,0 @@
|
|||||||
if (typeof $.monstra == 'undefined') $.monstra = {};
|
|
||||||
|
|
||||||
$.monstra.filesmanager = {
|
|
||||||
|
|
||||||
init: function() {
|
|
||||||
this.showImage();
|
|
||||||
},
|
|
||||||
|
|
||||||
showImage: function() {
|
|
||||||
$('.image').find('a').on('click', function() {
|
|
||||||
$('#previewLightbox').lightbox('show').find('img').attr('src', $(this).attr('rel'));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$(document).ready(function(){
|
|
||||||
$.monstra.filesmanager.init();
|
|
||||||
});
|
|
Reference in New Issue
Block a user