-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/z_product.bk.240724/php/
File Upload :
Current File : //var/www/html/z_product.bk.240724/php/down.file.php

<?
	if ( empty($numid)) script_re( '?mode=cart' , 'À߸øµÈ Á¢±ÙÀÔ´Ï´Ù.') ;

	include_once( 'inc/cart.php') ;
	$seq = intval($_GET['seq']) < 1 || intval($_GET['seq']) > 4 ? 1 : intval($_GET['seq']) ;
	$info = $exe->qry_fetch(" from tbl_cart where numid = '{$numid}' " , " numid , file1 , file2 , file3 , file4 " ) ;
	if ( empty($info['numid'])) script_re ( '?mode=cart' , ' À߸øµÈ Á¢±ÙÀÔ´Ï´Ù ') ;
	if ( empty($info['file' . $seq])) script_re ( '?mode=cart' , ' ¾÷·ÎµåµÈ ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.  ') ;

	$file_path = $_SERVER['DOCUMENT_ROOT'] . '/files/order/' . $info['file' . $seq] ;
	if ( is_file ( $file_path ) )
	{
		$file_size = @filesize($file_path) ;
		header("Content-Type: file/unknown") ;
		header("Content-Length: " . $file_size . "");
		//header("Content-Type: {$f_rs[file_size]}") ;
		header("Content-Disposition: attachment; filename=" . $info['file' . $seq] ) ;
		header("Content-Transfer-Encoding: binary");
		header("Cache-Control: private");
		header("Pragma: no-cache");
		header("Expires: 0");

		$f_open = fopen( $file_path , "rb" ) ;
		fpassthru( $f_open ) ;
		exit ;
	} else
		script_re ( '?mode=cart', ' ÆÄÀÏÀ» ãÀ» ¼ö ¾ø½À´Ï´Ù. ') ;

	exit ;
?>

Copyright © 2017 || Recoded By Mr.Bumblebee