mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 18:30:20 +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',
|
||||
'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
|
||||
'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
|
||||
$image_types = array('jpg', 'png', 'bmp', 'gif', 'tif');
|
||||
|
@@ -27,6 +27,3 @@ if (Session::exists('user_role') && in_array(Session::get('user_role'), array('a
|
||||
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