$val) fwrite($fp, "\$table['$key'] = \"$val\";\n"); foreach($_tmptable1 as $key => $val) fwrite($fp, "\$table['$key'] = \"$val\";\n"); fwrite($fp, "?>"); fclose($fp); @chmod($_tmptfile,0707); } else { if(is_file($table_db.'.done')) include $table_db.'.done'; } $maxgid = getDbCnt($_tmptable2['s_module'],'max(gid)',''); $QKEY = "gid,sys,hidden,mobile,name,id,tblnum,icon,d_regis"; $QVAL = "'".($maxgid+1)."','0','0','1','".getFolderName($g['path_module'].$module)."','$module','".count($table)."','kf-module','".$date['totime']."'"; getDbInsert($_tmptable2['s_module'],$QKEY,$QVAL); setrawcookie('market_action_result', rawurlencode('모듈이 설치 되었습니다.')); } echo json_encode($result); exit; ?>