-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
# approve
if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
$info = $exe->qry_fetch ( " from tbl_{$total[table]}_event where numid='{$numid}' " , " * " ) ;
if ( empty($info['numid'])) script_re( $total['cmnall'] , ' »èÁ¦µÇ¾ú°Å³ª ¾ø´Â µ¥ÀÌÅÍÀÔ´Ï´Ù. ' ) ;
# base construct
$action = array (
'c1_no' => $_POST['category1'] ,
'c2_no' => $_POST['category2'] ,
'c3_no' => $_POST['category3'] ,
'title' => $_POST['title'] ,
'display_type' => $_POST['display_type'] ,
'begindate' => $_POST['begindate'] ,
'enddate' => $_POST['enddate'] ,
'link1' => $_POST['link1'] ,
'link2' => $_POST['link2'] ,
'link3' => $_POST['link3'] ,
'link4' => $_POST['link4'] ,
'link5' => $_POST['link5']
) ;
if ( !empty($_FILES['file1']['name'])) {
file_delete ( 'files/' . $total['options']['dir'] . '/' . $info['imagefile'] );
$action['imagefile'] = file_upload($_FILES['file1']['tmp_name'] , $_FILES['file1']['name'] , 'files/' . $total['options']['dir'] . '' ) ;
} elseif ( $_POST['del_file1'] == 'Y' ) {
file_delete ( 'files/' . $total['options']['dir'] . '/' . $info['imagefile'] );
$action['imagefile'] = '' ;
}
# action
$exe->qry_update ( $action , " tbl_{$total[table]}_event " , " numid='{$numid}' " ) ;
# end
script_re($total['cmnnb'] . '&mode=view' ) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee