-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
########################################################
// approve
########################################################
if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
$info = $exe->qry_fetch ( " from tbl_{$total[table]} where keycode='{$total[code]}' and numid='{$numid}' " ,
" numid , pass , real_level , real_no , real_id , keycode , mov_video , mov_image , main_image " ) ;
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'] , ' ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. ' ) ;
}
}
########################################################
// use file upload
########################################################
if ( $config[$total['code']][4]['file'] == 'on' )
{
$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 , file_type " ) ;
while ( $rs = $exe->fetch ( $execute))
{
file_delete ( 'files/' . $total['table'] . '/' . $rs['real_file_name'] ) ;
if ( strpos($rs['file_type'], 'image') !== false ) // use Image Preview
file_delete('files/' . $total['table'] . $info_thumb['directory'] . '/' . $info_thumb['head'] . substr($rs['real_file_name'],0,-3) . $info_thumb['ext'] );
}
}
######################################################
// use movie
######################################################
if ( $config[$code][4]['movie'] == 'on' )
{
if ( file_info ( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] ) !== false )
file_delete( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_image'] ) ;
if ( file_info ( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_video'] ) !== false )
file_delete( 'files/' . $info_file['mov_dir'] . '/' . $info['mov_video'] ) ;
}
########################################################
// use title(special) image
########################################################
if ( $config[$total['code']][4]['title_image'] == 'on' )
{
file_delete( 'files/' . $total['table'] . '/' . $info['main_image'] ) ;
}
########################################################
// act
########################################################
$exe->qry_delete( " tbl_{$info_file[table]} " , " keycode='{$info[keycode]}' and parent_numid = '{$info[numid]}' " ) ;
$exe->qry_delete( " tbl_{$info_comment[table]} " , " keycode='{$info[keycode]}' and parent_numid = '{$info[numid]}' " ) ;
$exe->qry_delete( " tbl_{$total[table]} " , " keycode='{$info[keycode]}' and numid = '{$info[numid]}' " ) ;
########################################################
// end
########################################################
script_re($total['cmnall'] ) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee