$my['level'] || strpos('_'.$d['bbs']['perm_g_view'],'['.$my['mygroup'].']')) { $markup_file = 'permcheck'; //잠김페이지 전달 (테마 내부 _html/permcheck.html) $result['hidden'] = 1; } } //첨부파일 권한체크 if (!$my['admin'] && !strstr(','.($d['bbs']['admin']?$d['bbs']['admin']:'.').',',','.$my['id'].',')) { if ($d['bbs']['perm_l_down'] > $my['level'] || (strpos($d['bbs']['perm_g_down'],'['.$my['mygroup'].']')!== false)) { $result['hidden_attach'] = 1; } } $d['bbs']['isperm'] = true; if ($d['bbs']['isperm'] && ($d['bbs']['hitcount'] || !strpos('_'.$_SESSION['module_'.$m.'_view'],'['.$uid.']'))) { if ($R['point2']) { // $g['main'] = $g['dir_module'].'mod/_pointcheck.php'; $markup_file = 'pointcheck'; $d['bbs']['isperm'] = false; } else { getDbUpdate($table[$m.'data'],'hit=hit+1','uid='.$uid); $_SESSION['module_'.$m.'_view'] .= '['.$uid.']'; } } // 최종 결과값 추출 (sys.class.php) $skin=new skin($markup_file); $result['article']=$skin->make(); } else { //글쓰기 수정모드 일때 $result['subject'] = $R['subject']; $result['content'] = getContents($R['content'],$R['html']); $result['hidden'] = $R['hidden']; $result['notice'] = $R['notice']; $result['category'] = $R['category']; $result['tag'] = $R['tag']; $result['adddata'] = $R['adddata']; $result['theme'] = $theme; if($R['upload']) { $result['attachNum'] = _getAttachNum($R['upload'],'modify'); $result['theme_attachFile'] = $theme_attachFile; } } if ($R['oneline']) { $TMPL['comment'] = $R['comment'].'+'.$R['oneline']; $result['total_comment'] = $R['comment'].'+'.$R['oneline']; // 댓글,한줄의견 등록시 현재댓글수를 내려주기 위함 } else { $TMPL['comment'] = $R['comment']; $result['total_comment'] = $R['comment']; // 댓글,한줄의견 등록시 현재댓글수를 내려주기 위함 } $result['bname']=$B['name']; echo json_encode($result); exit; ?>