-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
######################################################
// approve check
######################################################
if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
$info = $exe->qry_fetch ( " from tbl_{$total[table]} where keycode='{$total[code]}' and numid='{$numid}' " , " * " ) ;
if ( empty($info['numid'])) script_re( $total['cmnall'] , ' »èÁ¦µÇ¾ú°Å³ª ¾ø´Â µ¥ÀÌÅÍÀÔ´Ï´Ù. ' ) ;
if ( $total['options']['reply'] != 'on' || $total['options']['replylevel'] > $total['loginlevel'] || $info['record_type'] == 'Y' )
script_re($total['cmnnb'] . '&mode=view' , ' »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
if ( empty($_POST['title']) || empty($_POST['name']))
script_re( $total['cmnnb'] . '&mode=reply' , ' Çʼö»çÇ×À» ÀÔ·ÂÇØÁÖ¼¼¿ä ' ) ;
if ( $total['options']['self'] == 'on' )
{
// if ( $info['real_id'] != $total['loginid'] ) script_bk( ' ±ÇÇÑÀÌ ¾ø½À´Ï´Ù. ' ) ;
}
######################################################
// base construct
######################################################
$exe->qry_update( " seq_id = seq_id + 1 " , "tbl_{$total[table]}" , " keycode='{$info[keycode]}' and grp_id = '{$info[grp_id]}' and seq_id > '{$info[seq_id]}' and category_code='{$info[category_code]}' and category_numid = '{$info[category_numid]}' " ) ;
$action = array (
'keycode' => $total['code'] ,
'write_date' => $total['now'] ,
'ip' => $total['ip'] ,
'real_id' => $total['loginid'] ,
'real_no' => $total['loginno'] ,
'real_level' => $total['loginlevel'] ,
'self_numid' => $info['real_no'] ,
'grp_id' => $info['grp_id'] ,
'seq_id' => $info['seq_id'] + 1 ,
'msg_level' => $info['msg_level'] + 1 ,
'text_type' => $_POST['text_type'] ,
'title' => str_convert($_POST['title']) ,
'title_color' => $_POST['title_color'] ,
'title_link' => $_POST['title_link'] ,
'name' => str_convert($_POST['name']) ,
'email' => $_POST['email'] ,
'pass' => $_POST['pass'] ,
'contents' => str_convert($_POST['contents']) ,
//
'category_code' => '' ,
) ;
######################################################
// use record (notice or common)
######################################################
// if ( $total['options']['record'] == 'on' && $total['options']['record_level'] <= $total['loginlevel'] )
// $action['record_type'] = ( $_POST['record_type'] == 'Y' )?'Y':'N' ;
######################################################
// use secret
######################################################
if ( $total['options']['secret'] == 'on' )
$action['secret_type'] = ( $_POST['secret_type'] == 'Y' )?'Y':'N' ;
######################################################
// use category
######################################################
if ( $total['options']['category'] == 'on' )
{
# $action['category_code'] = $info['category_code'] ;
# $action['category_numid'] = $info['category_numid'] ;
}
######################################################
// use head
######################################################
if ( $total['options']['head'] == 'on' )
{
$action['head_code'] = $info['head_code'] ;
$action['head_contents'] = $info['head_contents'] ;
}
######################################################
// action
######################################################
$numid = $exe->qry_insert ( $action , " tbl_{$total[table]} " ) ;
######################################################
// use file
######################################################
if ( $total['options']['file'] == 'on' ) {
$exe->qry_update( " parent_numid = '{$numid}' , temp_code = null " , "tbl_{$info_file[table]}" , " keycode='{$total[code]}' and temp_code='{$_POST[temp_code]}' " ) ;
$file_count = mysql_affected_rows() ;
$f_rs = $exe->qry_fetch ( " from tbl_{$info_file[table]} where parent_numid = '{$numid}' and keycode='{$total[code]}' and up_type = 'THUMB' order by fileno asc limit 1 " , " real_file_name ") ;
$thum_filename = "" ;
if ( !empty($f_rs['real_file_name'])) $thum_filename = "'{$info_thumb[head]}" . substr($f_rs['real_file_name'], 0 , strrpos($f_rs['real_file_name'] , '.') ) . ".{$info_thumb[ext]}'" ;
else $thum_filename = "null" ;
$exe->qry_update( " attachfile_count = {$file_count} , prev_image = {$thum_filename}" , ' tbl_' . $config[$code][1] , ' keycode=\'' . $code . '\' and numid=\'' . $numid . '\' ' ) ;
}
######################################################
// end
######################################################
script_re($total['cmnall'] . '&mode=view&numid=' . $numid ) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee