-=[ Mr. Bumblebee ]=-
_Indonesia_
<?
if ( empty($numid)) script_re( $total['cmnall'] , 'À߸øµÈ Á¢±ÙÀÔ´Ï´Ù.') ;
$info = $exe->qry_fetch(" from tbl_{$total[table]} where numid = '{$numid}' " , " numid , n_state " ) ;
if ( empty($info['numid'])) script_re ( $total['cmnall'] , ' ÁÖ¹®Á¤º¸¸¦ Àоî¿À´Âµ¥ ½ÇÆÐÇÏ¿´½À´Ï´Ù. ') ;
if ( $info['n_state'] == 'ÁÖ¹®ÀÓ½Ã' ) script_re ( $total['cmnall'] , ' ÁÖ¹®Á¤º¸¸¦ Àоî¿À´Âµ¥ ½ÇÆÐÇÏ¿´½À´Ï´Ù. ') ;
$gsrs = $exe->qry_fetch(" from tbl_{$total[table]}_gs where numid = '{$_GET[gs_no]}' " , " numid , file1 , file2 , file3 , file4 ") ;
if ( empty($gsrs['numid'])) script_re ( $total['cmnnb'] . '&mode=view' , ' ÁÖ¹®Á¤º¸¸¦ Àоî¿À´Âµ¥ ½ÇÆÐÇÏ¿´½À´Ï´Ù. ') ;
if ( empty($gsrs['file' . $_GET['seq']])) script_re ( $total['cmnnb'] . '&mode=view' , ' ¾÷·ÎµåµÈ ÆÄÀÏÀÌ ¾ø½À´Ï´Ù. ') ;
$file_path = $_SERVER['DOCUMENT_ROOT'] . '/files/order/' . $gsrs['file' . $_GET['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=" . $gsrs['file' . $_GET['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 ( $total['cmnnb'] . '&mode=view' , ' ÆÄÀÏÀ» ãÀ» ¼ö ¾ø½À´Ï´Ù. ') ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee