| Server IP : 121.121.20.254 / Your IP : 216.73.216.41 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/StockAdjust/wp-content/plugins/wp-all-import/classes/ |
Upload File : |
<?php
class PMXI_Download
{
static public function zip($file_name)
{
header('Content-type: application/zip');
header("Content-Disposition: attachment; filename=\"".basename($file_name)."\"");
readfile($file_name);
die;
}
static public function xls($file_name)
{
header("Content-Type: application/vnd.ms-excel; charset=UTF-8");
header("Content-Disposition: attachment; filename=\"".basename($file_name)."\"");
readfile($file_name);
die;
}
static public function csv($file_name)
{
header("Content-Type: text/plain; charset=UTF-8");
header("Content-Disposition: attachment; filename=\"".basename($file_name)."\"");
readfile($file_name);
die;
}
static public function xml($file_name)
{
header("Content-Type: application/xhtml+xml; charset=UTF-8");
header("Content-Disposition: attachment; filename=\"".basename($file_name)."\"");
readfile($file_name);
die;
}
}