-=[ Mr. Bumblebee ]=-
_Indonesia_
<?
if ( empty($_POST['title'])) script_re ( $total['cmnall'] , ' ÇʼöÇ׸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä ' ) ;
if ( empty($_POST['price1'])) script_re ( $total['cmnall'] , ' ÇʼöÇ׸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä ' ) ;
// upload img
if ( !empty($_FILES['img1']['name'])) {
/*
$simg = new resizeimageV2 ;
$simg->option_fixed = 'N' ;
$simg->width = $total['options']['w'] ;
$simg->height = $total['options']['h'] ;
$simg->upload_dir = 'files/' . $total['table'] . '/' . $total['options']['dir'] ;
$simg->resize( $_FILES['img1'] ) ;
$upimg = $simg->result_file_name ;
*/
$upimg = file_upload( $_FILES['img1']['tmp_name'] , $_FILES['img1']['name'] , 'files/' . $total['table'] . '/' . $total['options']['dir'] ) ;
}
$gubun = $_POST['gubun'] ;
if ( !empty($gubun)) {
$gubun = ( $gubun == 'B' ) ? 'B' : 'A' ;
}
$action = array(
'keycode' => $total['code'] ,
'title' => str_convert($_POST['title']) ,
'price1' => ( is_numeric($_POST['price1']) ? $_POST['price1'] : 0 ) ,
'price2' => ( is_numeric($_POST['price2']) ? $_POST['price2'] : 0 ) ,
'price3' => ( is_numeric($_POST['price3']) ? $_POST['price3'] : 0 ) ,
'gubun' => $gubun ,
'seq' => ( is_numeric($_POST['seq']) ? $_POST['seq'] : 1 ) ,
'img1' => $upimg
) ;
$exe->qry_insert($action , "tbl_{$total[table]}");
script_re ( $total['cmnurl'] , 'µî·ÏµÇ¾ú½À´Ï´Ù.') ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee