diff --git a/plugins/box/filesmanager/filesmanager.admin.php b/plugins/box/filesmanager/filesmanager.admin.php index ea3e657..eb000b8 100755 --- a/plugins/box/filesmanager/filesmanager.admin.php +++ b/plugins/box/filesmanager/filesmanager.admin.php @@ -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'); diff --git a/plugins/box/filesmanager/filesmanager.plugin.php b/plugins/box/filesmanager/filesmanager.plugin.php index 8579a8c..bb40dda 100644 --- a/plugins/box/filesmanager/filesmanager.plugin.php +++ b/plugins/box/filesmanager/filesmanager.plugin.php @@ -26,7 +26,4 @@ if (Session::exists('user_role') && in_array(Session::get('user_role'), array('a // Include Admin Plugin::admin('filesmanager', 'box'); -} - -// Add Plugin Javascript -Javascript::add('plugins/box/filesmanager/js/filesmanager.js', 'backend'); +} \ No newline at end of file diff --git a/plugins/box/filesmanager/js/filesmanager.js b/plugins/box/filesmanager/js/filesmanager.js deleted file mode 100644 index 724ffcc..0000000 --- a/plugins/box/filesmanager/js/filesmanager.js +++ /dev/null @@ -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(); -}); \ No newline at end of file