-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/z_admin_cashtest/php/admin/
File Upload :
Current File : /var/www/html/z_admin_cashtest/php/admin/act.delete.php

<?php

	function delete_board ( $numid )
	{
		global $exe , $_POST , $total , $info_db , $config , $info_file , $info_thumb , $info_comment ;
		if ( empty($numid)) return false ;
		$info = $exe->qry_fetch ( " from tbl_{$total[table]} where keycode='{$total[code]}' and numid='{$numid}' " , " numid , level " ) ;
		if ( empty($info['numid'])) return false ;
		if ( $info['level'] == 99 ) {
			$count = $exe->qry_fetch ( " from tbl_{$total[table]} where keycode='{$total[code]}' and level = '{$info[level]}' " , " COUNT(*) as cntnum " , "cntnum" ) ;
			if ( $count < 2 ) return false ;
		}
		$exe->qry_delete( " tbl_{$total[table]} " , " keycode='{$total[code]}' and numid='{$numid}' ") ;
		return true ;
	}

# approve
	if ( is_array($_POST['chk_numid']))
	{
		foreach ( $_POST['chk_numid'] as $val )
		{
			if ( emptY($val)) continue ;
			$return = delete_board ( $val ) ;
		}
	}
	else
	{
		if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
		if ( $return = delete_board ( $numid )) {
		} else {
			script_re($total['cmnall'] , ' ¸¶½ºÅͰü¸®ÀÚ´Â ÃÖ¼Ò ÇÑ ¸í ÀÌ»ó µî·ÏµÇ¾îÀÖ¾î¾ßÇÕ´Ï´Ù. ' ) ;
		}
	}

# end
	script_re($total['cmnall'] ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee