diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index 0f6e0e955b..618af329a7 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -753,7 +753,8 @@ function filemanager_file_explorer($real_directory, $relative_directory, $data[4] .= ''; if (($editor) && (!$readOnly)) { - if (($typefile == 'sh') || ($typefile == 'pl') || ($typefile == 'vbs')) { + if (($typefile != 'bin') && ($typefile != 'pdf') && ($typefile != 'png') && ($typefile != 'jpg') && + ($typefile != 'iso') && ($typefile != 'docx') && ($typefile != 'doc')) { $data[4] .= "" . html_print_image('images/edit.png', true, array("style" => 'margin-top: 2px;', 'title' => __('Edit file'))) . ""; } }