-=[ Mr. Bumblebee ]=-
_Indonesia_

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

<?php

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

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

	if ( $config[$total['code']][4]['comment'] != 'on' || $config[$total['code']][4]['cmt_level'] > $total['loginlevel'] )
		script_bk();

	if ( emptY($_POST['name']) || empty($_POST['pass']))
		script_bk();
	
	if ( $total['useAutoWD'] == 'Y' ) { 
		if ( emptY($_POST['oncode']) || empty($_POST['incode']))
			script_bk( ' º¸¾È Äڵ带 ÀÔ·ÂÇÏÁö ¾ÊÀ¸¼Ì½À´Ï´Ù. ' ) ;
	
		if ( strlen($_POST['oncode']) == 7 ) {
			$view_code = md5($_POST['oncode']);
			$view_code = substr($view_code , 2, 5 );
			$view_code = strtoupper( $view_code) ;
			if ( $_POST['incode'] != $view_code ) script_bk( ' Äڵ尡 ¸ÂÁö ¾Ê½À´Ï´Ù. ' ) ;
		} else script_bk( ' À¯È¿ÇÑ Äڵ尡 ¾Æ´Õ´Ï´Ù. ' ) ;	
	}

######################################################
// construct
######################################################

	$action = array (
		'keycode'			=> $total['code'] ,
		'write_date'		=> $total['now'] ,
		'ip'				=> $total['ip'] ,
		'real_id'			=> $total['loginid'] ,
		'real_no'			=> $total['loginno'] ,
		'real_level'		=> $total['loginlevel'] ,
		'parent_numid'		=> $numid ,
		'name'				=> str_convert($_POST['name']) ,
		'pass'				=> $_POST['pass'] ,
		'contents'			=> str_convert($_POST['contents']) ,
		'emotion'			=> $_POST['emotion'] ,
	) ;

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

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

	script_re($total['cmnnb']) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee