-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/html/php/board/
File Upload :
Current File : /var/www/html/html/php/board/skn.modify.php

<?php

# approve
	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 ( empty($_POST['pass']) || $_POST['pass'] != $info['pass'] )
	{
		if ( !empty($total['loginid']) && !empty($total['loginno']) && $total['loginlevel'] == $info['real_level'] && $total['loginno'] == $info['real_no'] && $total['loginid'] == $info['real_id'] )
		{
			// ÀÚ±â±ÛÀÌ¸é ºñ¹Ð¹øÈ£ ÀÔ·ÂÀÌ ÇÊ¿ä¾øÀ½...
		}
		else
			script_re( $total['cmnnb'] . '&mode=pass&next_mode=' . $total['mode'] , ' ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. ' ) ;
	}

	if ( $config[$total['code']][4]['self'] == 'on' )
	{
		if ( $info['real_id'] != $total['loginid'] ) script_bk( ' ±ÇÇÑÀÌ ¾ø½À´Ï´Ù. ' ) ;
	}

# skin file
	$skins = $skin->skin (	array (
											'frm'			=> 'FORM' ,
											'rec'			=> 'RECORD' ,
											'sec'			=> 'SECRET' ,
											'file'			=> 'FILE' ,
											'slt'			=> 'SELECT' ,
											'hed'			=> 'HEAD' ,
											'mov'			=> 'MOVIE' ,
										) , $skinfile ) ;

# get data
	$info['mode'] = 'update' ;

	$info['email'] = explode('@' , $info['email']) ;
	$info['email1'] = $info['email'][0] ;
	$info['email2'] = $info['email'][1] ;

	if ( $config[$total['code']][4]['WYSIWYG'] == 'on' ) $info['text_type'] = 'html' ;

	$EDITOR = createTextEditor();
	$EDITOR->Value      = str_mode($info['contents'] , 'HTML' ) ;
	$info['contents'] = $EDITOR->Create();	

# use record
	if ( $config[$total['code']][4]['record'] == 'on' && $config[$total['code']][4]['record_level'] <= $total['loginlevel'] )
		$info['frm_record'] = str_foreach ( array ( 'record_type' => $info['record_type'] ) , 'INFO' , $skins['rec'] ) ;

# use secret
	if ( $config[$total['code']][4]['secret'] == 'on' )
		$info['frm_secret'] = str_foreach ( array ( 'secret_type' => ($info['secret_type'] == 'Y')?'checked':'' ) , 'INFO' , $skins['sec'] ) ;

# use file upload
	if ( $config[$total['code']][4]['file'] == 'on' )
	{
		$file_list = '' ;
		$nowsize = 0 ;
		$execute = $exe->qry_one( " from tbl_{$info_file[table]} where keycode='{$total[code]}' and parent_numid = '{$numid}' order by write_date asc " , " fileno , file_size, orig_file_name " ) ;
		while ( $rs = $exe->fetch ( $execute))
		{
			$nowsize+= $rs['file_size'] ;
			$file_list.= '<option value="' . $rs['fileno'] . '">' . $rs['orig_file_name'] . '</option>' ;
		}
		$info['frm_file'] = str_foreach ( array ( 'nowsize' => $nowsize , 'temp_code' => time() . str_rand(10) , 'filelist' => $file_list ) , 'INFO' , $skins['file'] ) ;
	}

# movie
	if ( $config[$total['code']][4]['movie'] == 'on' )
	{
		$info['enctype'] = ' enctype="multipart/form-data" ' ;

		if ( file_info ( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_video'] ) !== false )
			$mov_video = '<input type="checkbox" name="del_mov_video" value="Y"> ÆÄÀÏ »èÁ¦' ;
		if ( file_info ( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] ) !== false )
			$mov_image = '<input type="checkbox" name="del_mov_image" value="Y"> ÆÄÀÏ »èÁ¦' ;

		$info['frm_movie'] = str_foreach ( array ( 'mov_image'	=> $mov_image , 'mov_video'	=> $mov_video ) , 'INFO' , $skins['mov'] ) ;
	}

# use head
	if ( $config[$total['code']][4]['head'] == 'on' )
	{
		$info['frm_head'] = str_foreach ( array ( 'hd_type' => $config[$total['code']][4]['hd_type'] ,
												  'hd_name' => $config[$total['code']][4]['hd_name'] ,
												  'hd_required' => ( $config[$total['code']][4]['hd_required'] == 'on')?' required emsg=" ºÐ·ù¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä "':'' ,
												  'head_numid' => $info['head_contents'] ) , 'INFO' , $skins['hed'] ) ;
	}

# end	
	
	
	$result = str_foreach ( $info , 'INFO' , $skins['frm'] ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee