-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
########################################################
// approve
########################################################
if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
if ( $total['options']['viewlevel'] > $total['loginlevel'] )
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']['self'] == 'on' )
{
// if ( $info['real_id'] != $total['loginid'] ) script_bk( ' ±ÇÇÑÀÌ ¾ø½À´Ï´Ù. ' ) ;
}
########################################################
// approve :: secret
########################################################
/*
if ( $total['options']['secret'] == 'on' && $info['secret_type'] == 'Y' )
{
if ( !empty($total['loginid']) && !empty($total['loginno']) && $total['loginlevel'] == $info['real_level'] && $total['loginno'] == $info['real_no'] && $total['loginid'] == $info['real_id'] )
{
// ÀÚ±â±ÛÀÌ¸é ºñ¹Ð¹øÈ£°¡ ÇÊ¿ä¾ø½À´Ï´Ù.
}
else
{
// ÇöÀç ±ÛÀÌ ´ä±ÛÀÏ °æ¿ì
// ¿øº»±ÛÀÇ ºñ¹Ð¹øÈ£³ª ÇöÀç ±ÛÀÇ ºñ¹Ð¹øÈ£ ¸ðµÎ »ç¿ë°¡´É
if ( $info['msg_level'] > 0 )
{
// ¿øº»±ÛÀÇ ºñ¹Ð¹øÈ£ °¡Á®¿À±â..
$tmp_pass = $exe->qry_fetch ( " from tbl_{$total[table]} where keycode='{$total[code]}' and sitecode='{$info_db[sitecode]}' " .
" and grp_id = '{$info[grp_id]}' and seq_id < '{$info[seq_id]}' and msg_level < '{$info[msg_level]}' order by seq_id desc limit 1 " , " numid , pass " ) ;
if ( $tmp_pass['pass'] != $_POST['pass'] && $info['pass'] != $_POST['pass'] )
script_re( $total['cmnnb'] . '&mode=pass&next_mode=view' , ' ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. \n ¡Ø ´ä±ÛÀÏ °æ¿ì ¿øº»±ÛÀÇ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼŵµ Á¢±ÙÇÒ ¼ö ÀÖ½À´Ï´Ù. ' ) ;
}
// ÇöÀç ±ÛÀÌ ÀϹݱÛÀÏ °æ¿ì
else
{
if ( $info['pass'] != $_POST['pass'] )
script_re( $total['cmnnb'] . '&mode=pass&next_mode=view' , ' ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.' ) ;
}
}
}
*/
########################################################
// update
########################################################
//$exe->qry_update( " read_count = read_count + 1 " , "tbl_{$total[table]}" , " numid='{$numid}' " ) ;
########################################################
// skin file
########################################################
$skins = $skin->skin ( array (
'frm' => 'FORM' ,
'comment' => 'COMMENT' ,
'o_frm' => 'MOVE RECORD'
) , $skinfile ) ;
########################################################
// button
########################################################
$total['btn_list'] = '<a href="' . $total['cmnall'] . '">' . $button_adminmode['btn_list'] . '</a>' ;
if ( $total['options']['level'] <= $total['loginlevel'] && $total['options']['maxlevel'] >= $total['loginlevel'])
{
$total['btn_write'] = '<a href="' . $total['cmnall'] . '&mode=write">' . $button_adminmode['btn_write'] . '</a>' ;
// ÀÚ±â±ÛÀÌ¸é ±×³É ¼öÁ¤/»èÁ¦ °¡´ÉÇÕ´Ï´Ù.
}
$total['btn_delete'] = '<a href="javascript: confirmmsg(\'»èÁ¦ÇÕ´Ï´Ù.\' , \'' . $total['cmnnb'] . '&mode=delete\'); ">' . $button_adminmode['btn_delete'] . '</a>' ;
$total['btn_modify'] = '<a href="' . $total['cmnnb'] . '&mode=modify">' . $button_adminmode['btn_modify'] . '</a>' ;
if ( $total['options']['reply'] == 'on' && $total['options']['replylevel'] <= $total['loginlevel'] && $info['record_type'] != 'Y' )
$total['btn_reply'] = '<a href="' . $total['cmnnb'] . '&mode=reply">' . $button_adminmode['btn_reply'] . '</a>' ;
########################################################
// get data
########################################################
$info['title'] = html_entity_decode($info['title']) ;
$info['title'] = '<span style="color:' . $info['title_color'] . '">' . $info['title'] . '</span>' ;
$info['name'] = html_entity_decode($info['name']) ;
$info['contents'] = html_entity_decode($info['contents']) ;
$info['read_count'] = number_format( $info['read_count']) ;
$info['bstate'] = $config[$total['code']][5][$info['bstate']] ;
// prev data
$prev_info = $exe->qry_fetch ( " from tbl_{$total[table]} where keycode='{$total[code]}' {$search_query[total]} and ( grp_id > {$info[grp_id]} or ( grp_id = {$info[grp_id]} and seq_id < {$info[seq_id]} )) and record_type != 'Y' order by grp_id asc , seq_id desc " , " numid , title ") ;
if ( !empty($prev_info['numid']))
$info['prev_record'] = str_foreach ( array ( 'move_type' => $button_adminmode['btn_move_up'] , 'title' => '<a href="' . $total['cmnall'] . '&mode=view&numid=' . $prev_info['numid'] . '">' . str_no_tag($prev_info['title']) . '</a>' ) , 'RS' , $skins['o_frm'] ) ;
// next data
$next_info = $exe->qry_fetch ( " from tbl_{$total[table]} where keycode='{$total[code]}' {$search_query[total]} and ( grp_id < {$info[grp_id]} or ( grp_id = {$info[grp_id]} and seq_id > {$info[seq_id]} )) and record_type != 'Y' order by grp_id desc , seq_id asc " , " numid , title ") ;
if ( !empty($next_info['numid']))
$info['next_record'] = str_foreach ( array ( 'move_type' => $button_adminmode['btn_move_down'] , 'title' => '<a href="' . $total['cmnall'] . '&mode=view&numid=' . $next_info['numid'] . '">' . str_no_tag($next_info['title']) . '</a>' ) , 'RS' , $skins['o_frm'] ) ;
########################################################
// comment
########################################################
if ( $total['options']['comment'] == 'on' )
{
$info['comment'] = str_foreach ( array ( 'numid' => $numid ) , 'INFO' , $skins['comment'] ) ;
}
########################################################
// use file
########################################################
if ( $total['options']['file'] == 'on' )
{
// ´Ù¿î·Îµå ±ÇÇÑ
if ( $total['options']['down_level'] <= $total['loginlevel'] )
{
$info['file_list'] = '' ;
$execute = $exe->qry_one( " from tbl_{$info_file[table]} where keycode='{$total[code]}' and parent_numid = '{$numid}' order by write_date asc " , " fileno , real_file_name, orig_file_name, file_ext , file_type " ) ;
while ( $rs = $exe->fetch ( $execute))
{
$info['file_list'].= '<option value="' . $rs['fileno'] . '">' . $rs['orig_file_name'] . '</option>' . chr(13) ;
}
if ( !empty($info['file_list']))
$info['file_list'] = '<div align="right" style="padding-top:3px;padding-bottom:3px;">
<select onchange=" if ( this.selectedIndex != 0 ) { location.href = \'/inc/file/down.php?num=\' + this.value ; } " class="scrolling">
<option value="">--÷ºÎÆÄÀÏ--</option>
' . $info['file_list'] . '
</select>
</div>' ;
}
}
########################################################
// use movie
########################################################
if ( $total['options']['movie'] == 'on' )
{
# ÷ºÎÇÑ µ¿¿µ»óÀÌ ÀÖÀ» ¶§
if ( file_info( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_video'] ) !== false ) {
if ( file_info( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] ) !== false )
{
$info['contents'] = '
<div align="center">
<table>
<tr>
<td><img src="/files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] . '" id="mov_image" style="cursor:hand" onClick="javascript:playercontrol(\'play\' , \'mov_image\' , \'mov_video\'); "><script language="javascript">_get_tag_script_embed (\'/files/' . $info_file['mov_dir'] . '/' . $info['mov_video'] . '\' , \'mov_video\' , \' style="display:none;" \' );</script></td>
</tr>
</table>
</div>
' . $info['contents'] ;
} else {
$info['contents'] = '
<div align="center">
<table>
<tr>
<td><script language="javascript">_get_tag_script_embed (\'/files/' . $info_file['mov_dir'] . '/' . $info['mov_video'] . '\' , \'mov_video\' , \' style="display:;" \' );</script></td>
</tr>
</table>
</div>
' . $info['contents'] ;
}
# µ¿¿µ»ó ¸µÅ©°¡ ÀÖÀ» ¶§
} else if ( !empty($info['mov_video_link'])) {
if ( file_info( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] ) !== false )
{
$info['contents'] = '
<div align="center">
<table>
<tr>
<td><img src="/files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] . '" id="mov_image" style="cursor:hand" onClick="javascript:playercontrol(\'play\' , \'mov_image\' , \'mov_video\'); "><script language="javascript">_get_tag_script_embed (\'' . $info['mov_video_link'] . '\' , \'mov_video\' , \' style="display:none;" \' );</script></td>
</tr>
</table>
</div>
' . $info['contents'] ;
} else {
$info['contents'] = '
<div align="center">
<table>
<tr>
<td><script language="javascript">_get_tag_script_embed (\'' . $info['mov_video_link'] . '\' , \'mov_video\' , \' style="display:;" \' );</script></td>
</tr>
</table>
</div>
' . $info['contents'] ;
}
# µ¿¿µ»ó ¹Ì¸®º¸±â À̹ÌÁö¸¸ ÀÖÀ» ¶§
} else if ( file_info( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] ) !== false ) {
$info['contents'] = '
<div align="center">
<table>
<tr>
<td><img src="/files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] . '" onclick=" alert(\'µ¿¿µ»óÀÌ ¾ø½À´Ï´Ù.\'); "></td>
</tr>
</table>
</div>
' . $info['contents'] ;
}
}
########################################################
// end
########################################################
$result = str_foreach ( $info , 'INFO' , $skins['frm'] ) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee