-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/zbk_admin.bk.200925/php/board/
File Upload :
Current File : /var/www/html/zbk_admin.bk.200925/php/board/act.category.del.php

<?php

	if( $total['options']['category'] == 'on' )
	{
		if (empty($bnum)) script_re($total[cmnall] . '&mode=category', ' »èÁ¦ÇÒ °Ô½ÃÆÇÀÌ ¼±ÅõÇÁö ¾Ê¾Ò½À´Ï´Ù. ');
		$execute = $exe->qry_one(" from tbl_{$total[table]} where keycode='{$total[code]}' and category_numid={$bnum} " , " numid ");
		while ($rs = $exe->fetch($execute)) {
			if ($total['options']['file'] == 'on' ) {  // use File Upload
				$fileExe = $exe->qry_one("from tbl_{$info_file[table]} WHERE keycode='{$total[code]}' and parent_numid='{$rs[numid]}' " , " real_file_name , file_type " );
				while ($fileRs = $exe->fetch($fileExe))
				{
					#if (mysql_num_rows($fileExe) < 1) continue;
					$file_path = "files/{$total[table]}/{$fileRs[real_file_name]}";
					if ( file_info($file_path) !== false) {
						if ( strpos($fileExe['file_type'], 'image') !== false ) // use Image Preview
							file_delete('files/' . $total['table'] . $info_thumb['directory'] . '/' . $info_thumb['head'] . substr($fileRs['real_file_name'],0,-3) . $info_thumb['ext'] );
						file_delete($file_path);
					}
				}
				$exe->qry_delete( " tbl_{$info_file[table]} ", " keycode='{$total[code]}' and parent_numid='{$rs[numid]}' " );
			}
			if ($total['options']['comment'] == 'on' )  // use comment
				$exe->qry_delete( " tbl_{$info_comment[table]} ", " keycode='{$total[code]}' and parent_numid='{$rs[numid]}' " );
		}
		$exe->qry_delete( " tbl_{$total[table]} ", " keycode='{$total[code]}' and category_numid='{$bnum}' " );
		$exe->qry_delete( " tbl_{$total[table]}_category ", " keycode='{$total[code]}' and numid='{$bnum}' " );
		script_re($total['cmnall'] . '&mode=category' , ' »èÁ¦µÇ¾ú½À´Ï´Ù. ');
	}
	else
		script_re($total['cmnall'], ' Áö¿øÇÏÁö ¾Ê´Â ±â´ÉÀÔ´Ï´Ù. ');
?>

Copyright © 2017 || Recoded By Mr.Bumblebee