-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
# approve
if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
$info = $exe->qry_fetch ( " from tbl_{$total[table]} where numid='{$numid}' " , " * " ) ;
if ( empty($info['numid'])) script_re( $total['cmnall'] , ' »èÁ¦µÇ¾ú°Å³ª ¾ø´Â µ¥ÀÌÅÍÀÔ´Ï´Ù. ' ) ;
# base construct
$action = array (
'title' => $_POST['title']
) ;
$class_resizeimage = new resizeimageV2 ;
$i = 1 ;
if ( !empty($_FILES['file' . $i]['name'])) {
file_delete ( 'files/' . $total['table'] . '/L/' . $info['imagefile' . $i] );
file_delete ( 'files/' . $total['table'] . '/S/' . $info['imagefile' . $i] );
// large image
$class_resizeimage->upload_dir = 'files/' . $total['table'] . '/L' ;
$class_resizeimage->width = $total['options']['lw'] ;
$class_resizeimage->height = $total['options']['lh'] ;
$class_resizeimage->resize( $_FILES['file' . $i] ) ;
// small image
$class_resizeimage->upload_dir = 'files/' . $total['table'] . '/S' ;
$class_resizeimage->width = $total['options']['sw'] ;
$class_resizeimage->height = $total['options']['sh'] ;
$class_resizeimage->resize( $_FILES['file' . $i] ) ;
$action['imagefile' . $i] = $class_resizeimage->result_file_name ;
} elseif ( $_POST['del_file' . $i] == 'Y' ) {
file_delete ( 'files/' . $total['table'] . '/L/' . $info['imagefile' . $i] );
file_delete ( 'files/' . $total['table'] . '/S/' . $info['imagefile' . $i] );
$action['imagefile' . $i] = '' ;
}
# action
$exe->qry_update ( $action , " tbl_{$total[table]} " , " numid='{$numid}' " ) ;
# end
script_re($total['cmnnb'] . '&mode=view' ) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee