| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/repository/wp-content/plugins/wp-filemanager/incl/ |
Upload File : |
<?php
if (!@include_once(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/auth.inc.php"))
include_once(WP_CONTENT_DIR . "/plugins/wp-filemanager/incl/auth.inc.php");
if ($AllowDownload)
{
if (isset($_GET['action']) && $_GET['action'] == "download")
{
session_cache_limiter("public, post-check=50");
header("Cache-Control: private");
// echo "Download";
}
//echo "Download";
if (isset($session_save_path))
session_save_path($session_save_path);
if (isset($_GET['path']))
$wp_fileman_path = validate_path($_GET['path']);
if (!isset($wp_fileman_path))
$wp_fileman_path = FALSE;
if ($wp_fileman_path == "./" || $wp_fileman_path == ".\\" || $wp_fileman_path == "/" || $wp_fileman_path == "\\")
$wp_fileman_path = FALSE;
if (isset($_GET['filename']))
$filename = basename(stripslashes($_GET['filename']));
//echo "Download";
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 "<font color='#CC0000'>$StrAccessDenied</font>";
exit();
}
header("Content-Type: ".get_mimetype($filename));
header("Content-Length: ".filesize($fullpath));
if ($_GET['action'] == "download");
header("Content-Disposition: attachment; filename=$filename");
readfile($fullpath);
}
print "<table class='index' width=500 cellpadding=0 cellspacing=0>";
print "<tr>";
print "<td class='iheadline' height=21>";
print "<font class='iheadline'> $StrDownload \"". htmlspecialchars($filename)."\"</font>";
print "</td>";
print "<td class='iheadline' align='right' height=21>";
print "<font class='iheadline'><a href='$base_url&path=". htmlspecialchars(rawurlencode($wp_fileman_path))."'><img src='" . WP_CONTENT_URL . "/plugins/wp-filemanager/icon/back.gif' border=0 alt='$StrBack'></a></font>";
print "</td>";
print "</tr>";
print "<tr>";
print "<td valign='top' colspan=2>";
print "<center><br />";
print "$StrDownloadClickLink<br /><br />";
print "<a href='" . WP_CONTENT_URL . "/plugins/wp-filemanager/incl/libfile.php?".SID."&path=". htmlspecialchars(rawurlencode($wp_fileman_path))."&filename=". htmlspecialchars(rawurlencode($filename))."&action=download'>$StrDownloadClickHere <i>\"". htmlspecialchars($filename)."\"</i></a>";
print "<br /><br /></center>";
print "</td>";
print "</tr>";
print "</table>";
}
else
print "<font color='#CC0000'>$StrAccessDenied</font>";
?>