diff -r d255fe9cd479 -r 00ac8f60d73f wp/wp-content/plugins/wp-filemanager/incl/libfile.php
--- a/wp/wp-content/plugins/wp-filemanager/incl/libfile.php Tue Oct 15 15:48:13 2019 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-";
-print_r($_GET);
-echo "";*/
-/*if ($AllowDownload || $AllowView)
-{
-//echo "Download Allowed";
-/* if (is_file("../../../" . $home_directory . $wp_fileman_path.$filename))
- {
- echo "File Found";
- }
- else
- {
- echo "Path : " . $home_directory . " & ".$wp_fileman_path . " & " .$filename;
- }
- */
- /*if (isset($_GET['filename']) && isset($_GET['action']) && is_file($home_directory.$wp_fileman_path.$filename) || is_file("../../../".$home_directory.$wp_fileman_path.$filename))
- {
-// echo "file found";
- if (is_file($home_directory.$wp_fileman_path.$filename) && !strstr($home_directory, "./") && !strstr($home_directory, ".\\"))
- $fullpath = $home_directory.$wp_fileman_path.$filename;
- else if (is_file("../../../".$home_directory.$wp_fileman_path.$filename))
- $fullpath = "../../../".$home_directory.$wp_fileman_path.$filename;
-//echo $fullpath;
- if (!$AllowDownload && $AllowView && !is_viewable_file($filename))
- {
- print "$StrAccessDenied";
- exit();
- }
- header("Content-Type: ".get_mimetype($filename));
- header("Content-Length: ".filesize($fullpath));
- if ($_GET['action'] == "download");
- header("Content-Disposition: attachment; filename=$filename");
- readfile($fullpath);
- }
- else
- print "$StrDownloadFail";
-}*/
-?>
\ No newline at end of file