-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/z_admin_cashtest/
File Upload :
Current File : /var/www/html/z_admin_cashtest/image-view.php

<?php

	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config.php' ;
	include_once('include/header_pop.html') ;

	$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 , apply_cashfile " ) ;
	$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 ( file_getimagesize( $file_path ) === true ) {
		echo '<script type="text/javascript"> location.replace("/files/' . $infoset_orderfile_dir . '/' . $f_rs['apply_cashfile_r'] . '"); </script>' ;
	} else {
		echo '<img src="image-load.php?num=' . $_GET['num'] . '"/>' ;
		echo '<script type="text/javascript"> self.print(); </script>' ;
	}

	include_once('include/footer_pop.html') ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee