diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/filebrowser.inc.php --- a/wp/wp-content/plugins/wp-filemanager/incl/filebrowser.inc.php Tue Oct 15 15:48:13 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,174 +0,0 @@ -

Please configure the Plugin

"; -} -else -{ - print "

Wordpress FileManager

"; -} -#else -#{ -# print get_option('wp_fileman_home'); -# print "
".get_linked_path($wp_fileman_path,$base_url)."
".$wp_fileman_path."
".$base_url; -#} -print ""; - print ""; - if ($AllowCreateFolder) print ""; - if ($AllowCreateFile) print ""; - if ($AllowUpload) print ""; - if ($phpfm_auth) print ""; - print ""; -print "
"; - -print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; -print "
"; - print "$StrIndexOf ".wp_fileman_get_linked_path($wp_fileman_path,$base_url).""; - print "
 "; - - - - if ($open = @opendir($home_directory.$wp_fileman_path)) - { - for($i=0;($directory = @readdir($open)) != FALSE;$i++) - if (is_dir($home_directory.$wp_fileman_path.$directory) && $directory != "." && $directory != ".." && !wp_fileman_is_hidden_directory($home_directory.$wp_fileman_path.$directory)) - $directories[$i] = array($directory,$directory); - closedir($open); - - if (isset($directories)) - { - sort($directories); - @reset($directories); - } - } - - print ""; - print ""; - print ""; - print ""; - if ($AllowRename) print ""; - if ($AllowDelete) print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - if (isset($directories)) foreach($directories as $directory) - { - print ""; - print ""; - print ""; - if ($AllowRename) print ""; - if ($AllowDelete) print ""; - print ""; - } - print ""; - print "
  $StrFolderNameShort$StrRenameShort$StrDeleteShort
$StrOpenFolder .  
$StrOpenFolder ..  
$StrOpenFolder ".htmlentities($directory[0])."$StrRenameFolder$StrDeleteFolder
 
"; - - print "
 "; - - - - if ($open = @opendir($home_directory.$wp_fileman_path)) - { - for($i=0;($file = @readdir($open)) != FALSE;$i++) - if (is_file($home_directory.$wp_fileman_path.$file) && !wp_fileman_is_hidden_file($home_directory.$wp_fileman_path.$file)) - { - $icon = wp_fileman_get_icon($file); - $filesize = filesize($home_directory.$wp_fileman_path.$file); - $permissions = decoct(fileperms($home_directory.$wp_fileman_path.$file)%01000); - $modified = filemtime($home_directory.$wp_fileman_path.$file); - $extension = ""; - $files[$i] = array( - "icon" => $icon, - "filename" => $file, - "filesize" => $filesize, - "permissions" => $permissions, - "modified" => $modified, - "extension" => $extension, - ); - } - closedir($open); - - if (isset($files)) - { - @usort($files, "wp_fileman_compare_filedata"); - @reset($files); - } - } - - print ""; - print ""; - print ""; - print ""; - print ""; - if ($AllowView) print ""; - if ($AllowEdit) print ""; - if ($AllowRename) print ""; - if ($AllowDownload) print ""; - if ($AllowDelete) print ""; - print ""; - if (isset($files)) foreach($files as $file) - { - $file['filesize'] = wp_fileman_get_better_filesize($file['filesize']); - $file['modified'] = date($ModifiedFormat, $file['modified']); - - print ""; - print ""; -/* if ($ShowExtension) print ""; - else - { - $f_nm = explode('.',htmlentities($file['filename'])); - print ""; - }*/ - $f_nm = explode('.',htmlentities($file['filename'])); - //print $f_nm[1]; - print ""; - print ""; - if ($AllowView && wp_fileman_is_viewable_file($file['filename'])) print ""; - else if ($AllowView) print ""; -// echo get_option('siteurl'); /wp-admin/admin-ajax.php?action=choice&width=150&height=100" title="Choice" - if ($AllowEdit && wp_fileman_is_editable_file($file['filename'])) print ""; -// if ($AllowEdit && is_editable_file($file['filename'])) print ""; - else if ($AllowEdit) print ""; - if ($AllowRename) print ""; -// if ($AllowRename) print ""; -// if ($AllowDownload) print ""; -// if ($AllowDownload) print ""; - if ($AllowDownload) print ""; - if ($AllowDelete) print ""; - print ""; - - } - print ""; - print "
  $StrFileNameShort$StrFileSizeShort$StrViewShort$StrEditShort$StrRenameShort$StrDownloadShort$StrDeleteShort
$StrFile ".htmlentities($file['filename'])." " . $f_nm[0] . " ".$f_nm[0]; - if ($ShowExtension) print "." . $f_nm[1]; - print "".$file['filesize']."$StrViewFile $StrEditFile$StrEditFile $StrRenameFile$StrRenameFile$StrDownloadFile$StrDownloadFile$StrDownloadFile$StrDeleteFile
 
"; - - - print "
"; -?>