-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/inc/comment/act/
File Upload :
Current File : /var/www/html/inc/comment/act/act.delete.php

<?php

########################################################
// approve
########################################################

	if ( empty($numid)) script_bk();
	if ( empty($c_numid)) script_bk();

	$info = $exe->qry_fetch ( " from tbl_{$info_comment[table]} where keycode='{$total[code]}' and numid='{$c_numid}' " , " * " ) ;
	if ( empty($info['numid'])) script_bk();

	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 if ( $total['loginlevel'] > 90 )
		{
			// °ü¸®ÀÚ´Â »èÁ¦ÇÒ ¼ö ÀÖ½À´Ï´Ù.
		}
		else
		{
			script_re( $total['cmnnb'] . '&mode=pass&next_mode=' . $total['mode'] . '&c_numid=' . $c_numid , ' ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. ' ) ;
		}
	}

########################################################
// act
########################################################

	$exe->qry_delete( " tbl_{$info_comment[table]} " , " keycode='{$info[keycode]}' and numid = '{$info[numid]}' " ) ;
	$exe->qry_update( ' comment_count = comment_count - 1 ' , ' tbl_' . $config[$total['code']][1] , ' keycode=\'' . $total['code'] . '\' and numid=\'' . $numid . '\' ' ) ;

########################################################
// end
########################################################

	script_re($total['cmnnb'] ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee