1) $view_result=mysql_query("select * from $t_board"."_$id where division='$data[division]' and headnum='$data[headnum]' order by headnum desc,arrangenum"); $_dbTime += getmicrotime()-$_dbTimeStart; } // 간단한 답글의 데이타를 가지고옴;; $_dbTimeStart = getmicrotime(); $view_comment_result=mysql_query("select * from $t_comment"."_$id where parent='$no' order by no asc"); $_dbTime += getmicrotime()-$_dbTimeStart; // zboard.php에서 인크루드시 대상 위치를 zboard.php로 설정 if(!$_view_included) $target="view.php"; else $target="zboard.php"; // 비밀글이고 패스워드가 틀리고 관리자가 아니면 에러 표시 if($data[is_secret]&&!$is_admin&&$data[ismember]!=$member[no]&&$member[level]>$setup[grant_view_secret]) { if($member[no]) { $secret_check=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where headnum='$data[headnum]' and ismember='$member[no]'")); if(!$secret_check[0]) error("비밀글을 열람할 권한이 없습니다"); } else { $secret_check=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where headnum='$data[headnum]' and password=password('$password')")); if(!$secret_check[0]) { head(); $a_list=""; $a_view=""; $prev_subject=$prev_data[subject]=stripslashes($prev_data[subject])." ".$prev_comment_num; $prev_name=$prev_data[name]=stripslashes($prev_data[name]); $prev_data[email]=stripslashes($prev_data[email]); $temp_name = get_private_icon($prev_data[ismember], "2"); if($temp_name) $prev_name=""; if($setup[use_formmail]&&check_zbLayer($prev_data)) { $prev_name = "$prev_name"; } else { if($prev_data[ismember]) $prev_name="$prev_name"; else $prev_name="
$prev_name
"; } $prev_hit=stripslashes($prev_data[hit]); $prev_vote=stripslashes($prev_data[vote]); $prev_reg_date="".date("Y/m/d",$prev_data[reg_date]).""; if(!isBlank($prev_email)||$prev_data[ismember]) { if(!$setup[use_formmail]) $a_prev_email=""; else $a_prev_email=""; $prev_name=$a_prev_email.$prev_name.""; } $prev=""; $prev_icon=get_icon($prev_data); // 이름앞에 붙는 아이콘 정의;; $prev_face_image=get_face($prev_data); // 스팸 메일러 금지용 $prev_mail=$prev_data[email]=""; $a_prev_email=""; $next_comment_num="[".$next_data[total_comment]."]"; // 간단한 답글 수 if($next_data[total_comment]==0) $next_comment_num=""; $next_subject=$next_data[subject]=stripslashes($next_data[subject])." ".$next_comment_num; $next_name=$next_data[name]=stripslashes($next_data[name]); $next_data[email]=stripslashes($next_data[email]); $temp_name = get_private_icon($next_data[ismember], "2"); if($temp_name) $next_name=""; if($setup[use_formmail]&&check_zbLayer($next_data)) { $next_name = "$next_name"; } else { if($next_data[ismember]) $next_name="$next_name"; else $next_name="
$next_name
"; } $next_hit=stripslashes($next_data[hit]); $next_vote=stripslashes($next_data[vote]); $next_reg_date="".date("Y/m/d",$next_data[reg_date]).""; if(!isBlank($next_email)||$next_data[ismember]) { if(!$setup[use_formmail]) $a_next_email=""; else $a_next_email=""; $next_name=$a_next_email.$next_name.""; } $next_icon=get_icon($next_data); // 이름앞에 붙는 아이콘 정의;; $next_face_image=get_face($next_data); // 스팸 메일러 금지용 $next_mail=$next_data[email]=""; $a_next_email=""; } else $a_email="-2000000000) $a_reply=""; else $a_reply=""; /**************************************************************************************** * 실제 출력 부분 ***************************************************************************************/ // 헤더 출력 if(!$_view_included)head(); // 상단 현황 부분 출력 if(!$_view_included) { $_skinTimeStart = getmicrotime(); include "$dir/setup.php"; $_skinTime += getmicrotime()-$_skinTimeStart; } // 내용보기 출력 $_skinTimeStart = getmicrotime(); include $dir."/view.php"; $_skinTime += getmicrotime()-$_skinTimeStart; // 코멘트 출력;; if($setup[use_comment]) { while($c_data=mysql_fetch_array($view_comment_result)) { $comment_name=stripslashes($c_data[name]); $temp_name = get_private_icon($c_data[ismember], "2"); if($temp_name) $comment_name=""; $c_memo=trim(stripslashes($c_data[memo])); $c_reg_date="".date("Y/m/d",$c_data[reg_date]).""; if($c_data[ismember]) { if($c_data[ismember]==$member[no]||$is_admin||$member[level]<=$setup[grant_delete]) $a_del=""; else $a_del=" $comment_name"; } else { if($c_data[ismember]) $comment_name="$comment_name"; else $comment_name="
$comment_name
"; } $_skinTimeStart = getmicrotime(); include $dir."/view_comment.php"; $_skinTime += getmicrotime()-$_skinTimeStart; flush(); } if($member[level]<=$setup[grant_comment]) { $_skinTimeStart = getmicrotime(); include "$dir/view_write_comment.php"; $_skinTime += getmicrotime()-$_skinTimeStart; } } // 위, 아래글 출력, 코멘트, 버튼 출력 $_skinTimeStart = getmicrotime(); include $dir."/view_foot.php"; $_skinTime += getmicrotime()-$_skinTimeStart; // 관련글을 출력 if($check_ref[0]>1) { $_skinTimeStart = getmicrotime(); include "$dir/view_list_head.php"; $_skinTime += getmicrotime()-$_skinTimeStart; while($data=mysql_fetch_array($view_result)) { // 데이타 정렬 list_check($data); if($data[no]==$no) $number=""; else $number=" "; // 목록을 출력하는 부분 $_skinTimeStart = getmicrotime(); include $dir."/view_list_main.php"; $_skinTime += getmicrotime()-$_skinTimeStart; } $_skinTimeStart = getmicrotime(); include "$dir/view_list_foot.php"; $_skinTime += getmicrotime()-$_skinTimeStart; } // layer 출력 if($zbLayer&&!$_view_included) { $_skinTimeStart = getmicrotime(); echo "\n"; $_skinTime += getmicrotime()-$_skinTimeStart; unset($zbLayer); } // 마지막 부분 출력 if(!$_view_included) foot(); /*************************************************************************** * 마무리 부분 include **************************************************************************/ if(!$_view_included) { $_skinTimeStart = getmicrotime(); include "_foot.php"; $_skinTime += getmicrotime()-$_skinTimeStart; } ?>