-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/admin-1/
File Upload :
Current File : //var/www/html/admin-1/image-load.php

<?php

	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config.php' ;

	$num = ( empty($_POST['num']))?$_GET['num']:$_POST['num'] ;
	if (empty($num)) exit ;
	if ( empty($info_admin['loginno'])) exit ;

	$f_rs = $exe->qry_fetch( " from tbl_{$config[ODR][1]} where orderScode='{$num}' " , " numid , apply_cashfile_r " ) ;
	$file_path = $_SERVER['DOCUMENT_ROOT'] . '/files/' . $infoset_orderfile_dir . '/' . $f_rs['apply_cashfile_r'] ;
	$ext = strtoupper ( substr($f_rs['apply_cashfile_r'], strrpos($f_rs['apply_cashfile_r'] , '.')+1 ) ) ;

	#if ( $ext == 'JPEG' || $ext == 'JPG' )
	#	@Header("Content-type : image/jpg");
	#else if ( $ext == 'GIF' )
	#	@Header("Content-type : image/gif");
	#else if ( $ext == 'PNG' )
	#	@Header("Content-type : image/png");
	#else if ( $ext == 'bmp' )
	#	@Header("Content-type : image/wbmp");

	$f_open = fopen ( $file_path , "r") ;
	fpassthru( $f_open) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee