/***************************************************************************
* °øÅë ÆÄÀÏ include
**************************************************************************/
if(!$_view_included) {include "_head.php";}
/***************************************************************************
* °Ô½ÃÆÇ ¼³Á¤ üũ
**************************************************************************/
// »ç¿ë±ÇÇÑ Ã¼Å©
if($setup[grant_view]<$member[level]&&!$is_admin) Error("»ç¿ë±ÇÇÑÀÌ ¾ø½À´Ï´Ù","login.php?id=$id&page=$page&page_num=$page_num&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&no=$no&s_url=".urlencode($REQUEST_URI));
// if($setup[grant_view]<$member[level]&&!$is_admin) Error("Á¤½Ä Á¦Ç°»ç¿ëÀںеéÀÌ »ç¿ëÀÚ µî·ÏÀ» ÇÑ ÈÄ
¾÷µ¥ÀÌÆ®°¡ °¡´ÉÇÕ´Ï´Ù.
°í°´µî·Ï(ȸ¿ø°¡ÀÔ)ÈÄ »ç¿ëÇϽñ⠹ٶø´Ï´Ù","../member/member_join.html");
// »ç¿ë±ÇÇÑ Ã¼Å©
// if($setup[grant_list]<$member[level] && !$is_admin) movepage("login.php?id=$id&page=$page&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&no=$no");
// if($setup[grant_write]<$member[level] && !$is_admin) movepage("login.php?id=$id&page=$page&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&no=$no");
// ÇöÀç ¼±ÅÃµÈ µ¥ÀÌŸ°¡ ÀÖÀ»¶§, Áï $no °¡ ÀÖÀ»¶§ µ¥ÀÌŸ °¡Á®¿È
unset($data);
$_dbTimeStart = getmicrotime();
$data=mysql_fetch_array(mysql_query("select * from $t_board"."_$id where no='$no'"));
$_dbTime += getmicrotime()-$_dbTimeStart;
if(!$data[no]) Error("¼±ÅÃÇϽŠ°Ô½Ã¹°ÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù","cmiboard.php?$href$sort");
// ÀÌÀü±Û°ú ÀÌÈıÛÀÇ µ¥ÀÌŸ¸¦ ±¸ÇÔ;
if(!$setup[use_alllist]) {
$_dbTimeStart = getmicrotime();
if($data[prev_no]) $prev_data=mysql_fetch_array(mysql_query("select * from $t_board"."_$id where no='$data[prev_no]'"));
if($data[next_no]) $next_data=mysql_fetch_array(mysql_query("select * from $t_board"."_$id where no='$data[next_no]'"));
$_dbTime += getmicrotime()-$_dbTimeStart;
}
// ¸ðµç ¸ñ·Ï º¸±â°¡ ¾Æ´Ò¶§ °ü·Ã±ÛÀ» ¸ðµÎ Àоî¿È;;
if(!$setup[use_alllist]) {
$_dbTimeStart = getmicrotime();
$check_ref=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where division='$data[division]' and headnum='$data[headnum]'"));
if($check_ref[0]>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;
// cmiboard.php¿¡¼ ÀÎÅ©·çµå½Ã ´ë»ó À§Ä¡¸¦ cmiboard.php·Î ¼³Á¤
if(!$_view_included) $target="view.php";
else $target="cmiboard.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="ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© Áֽʽÿä";
$input_password="";
if(eregi(":\/\/",$dir)||eregi("\.\.",$dir)) $dir="./";
include $dir."/ask_password.php";
foot();
exit();
} else {
$secret_str = $setup[no]."_".$no;
$HTTP_SESSION_VARS['zb_s_check'] = $secret_str;
}
}
}
// ÇöÀç±ÛÀÇ HIT¼ö¸¦ ¿Ã¸²;;
if(!eregi($setup[no]."_".$no,$HTTP_SESSION_VARS["zb_hit"])) {
$_dbTimeStart = getmicrotime();
mysql_query("update $t_board"."_$id set hit=hit+1 where no='$no'");
$_dbTime += getmicrotime()-$_dbTimeStart;
$hitStr=",".$setup[no]."_".$no;
// 4.0x ¿ë ¼¼¼Ç ó¸®
$zb_hit=$HTTP_SESSION_VARS["zb_hit"].$hitStr;
session_register("zb_hit");
}
// ÀÌÀü±Û Á¤¸®
if($data[prev_no]&&!$setup[use_alllist]) {
$prev_comment_num="[".$prev_data[total_comment]."]"; // °£´ÜÇÑ ´ä±Û ¼ö
if($prev_data[total_comment]==0) $prev_comment_num="";
$a_prev="";
$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="";
}
// ´ÙÀ½±Û Á¤¸®
if($data[next_no]&&!$setup[use_alllist]) {
$a_next="";
$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="";
}
// ÇöÀç ¼±ÅÃµÈ ±ÛÀ» Á¤¸®ÇÔ
list_check($data,1);
/****************************************************************************************
* º¯¼ö ¼³Á¤
***************************************************************************************/
// ±Ûº¸±â¿¡¼ ¾²´Â º¯¼ö ¼öÁ¤
$subject=$data[subject];
/****************************************************************************************
* ¹öư Á¤¸®
***************************************************************************************/
// ¸ÞÀÏÁÖ¼Ò°¡ ÀÖÀ¸¸é À̸§¿¡ ¸ÞÀÏ ¸µÅ©
if(!isBlank($email)||$data[ismember]) {
if(!$setup[use_formmail]) $a_email="";
else $a_email="";
} else $a_email=""; else $a_write="-2000000000) $a_reply=""; else $a_reply=""; else $a_list="";
// »èÁ¦¹öư
if(($is_admin||$member[level]<=$setup[grant_delete]||$data[ismember]==$member[no]||!$data[ismember])&&!$data[child]) $a_delete=""; else $a_delete=""; else $a_modify=""; else $a_download1=""; else $a_download2=""; else $a_download3=""; else $a_download4=""; else $a_download5=""; else $a_download6=""; else $a_download7=""; else $a_download8=""; else $a_download9=""; else $a_download10=""; else $a_download11=""; else $a_download12=""; else $a_download13=""; else $a_download14=""; else $a_download15=""; else $a_download16=""; else $a_download17=""; else $a_download18=""; else $a_download19=""; else $a_download20=""; else $a_download21=""; else $a_download22=""; else $a_download23=""; else $a_download24=""; else $a_download25=""; else $a_download26=""; else $a_download27=""; else $a_download28=""; else $a_download29=""; else $a_download30=""; else $a_download31=""; else $a_download32=""; else $a_download33=""; else $a_download34=""; else $a_download35=""; else $a_download36=""; else $a_download37=""; else $a_download38=""; else $a_download39=""; else $a_download40=""; else $a_download41=""; else $a_download42=""; else $a_download43=""; else $a_download44=""; else $a_download45=""; else $a_download46=""; else $a_download47=""; else $a_download48=""; else $a_download49=""; else $a_download50=""; else $a_download51=""; else $a_download52=""; else $a_download53=""; else $a_download54=""; else $a_download55="";
else $a_vote = "";}
if(!$sitelink2) {$hide_sitelink2_start="";}
// ÆÄÀÏ ´Ù¿î·Îµå¸¦ ³ªÅ¸³ª°Ô ÇÏ´Â º¯¼ö;;
if(!$file_name1) {$hide_download1_start="";}
if(!$file_name2) {$hide_download2_start="";}
if(!$file_name3) {$hide_download3_start="";}
if(!$file_name4) {$hide_download4_start="";}
if(!$file_name5) {$hide_download5_start="";}
if(!$file_name6) {$hide_download6_start="";}
if(!$file_name7) {$hide_download7_start="";}
if(!$file_name8) {$hide_download8_start="";}
if(!$file_name9) {$hide_download9_start="";}
if(!$file_name10) {$hide_download10_start="";}
if(!$file_name11) {$hide_download11_start="";}
if(!$file_name12) {$hide_download12_start="";}
if(!$file_name13) {$hide_download13_start="";}
if(!$file_name14) {$hide_download14_start="";}
if(!$file_name15) {$hide_download15_start="";}
if(!$file_name16) {$hide_download16_start="";}
if(!$file_name17) {$hide_download17_start="";}
if(!$file_name18) {$hide_download18_start="";}
if(!$file_name19) {$hide_download19_start="";}
if(!$file_name20) {$hide_download20_start="";}
if(!$file_name21) {$hide_download21_start="";}
if(!$file_name22) {$hide_download22_start="";}
if(!$file_name23) {$hide_download23_start="";}
if(!$file_name24) {$hide_download24_start="";}
if(!$file_name25) {$hide_download25_start="";}
if(!$file_name26) {$hide_download26_start="";}
if(!$file_name27) {$hide_download27_start="";}
if(!$file_name28) {$hide_download28_start="";}
if(!$file_name29) {$hide_download29_start="";}
if(!$file_name30) {$hide_download30_start="";}
if(!$file_name31) {$hide_download31_start="";}
if(!$file_name32) {$hide_download32_start="";}
if(!$file_name33) {$hide_download33_start="";}
if(!$file_name34) {$hide_download34_start="";}
if(!$file_name35) {$hide_download35_start="";}
if(!$file_name36) {$hide_download36_start="";}
if(!$file_name37) {$hide_download37_start="";}
if(!$file_name38) {$hide_download38_start="";}
if(!$file_name39) {$hide_download39_start="";}
if(!$file_name40) {$hide_download40_start="";}
if(!$file_name41) {$hide_download41_start="";}
if(!$file_name42) {$hide_download42_start="";}
if(!$file_name43) {$hide_download43_start="";}
if(!$file_name44) {$hide_download44_start="";}
if(!$file_name45) {$hide_download45_start="";}
if(!$file_name46) {$hide_download46_start="";}
if(!$file_name47) {$hide_download47_start="";}
if(!$file_name48) {$hide_download48_start="";}
if(!$file_name49) {$hide_download49_start="";}
if(!$file_name50) {$hide_download50_start="";}
if(!$file_name51) {$hide_download51_start="";}
if(!$file_name52) {$hide_download52_start="";}
if(!$file_name53) {$hide_download53_start="";}
if(!$file_name54) {$hide_download54_start="";}
if(!$file_name55) {$hide_download55_start="";}
// ȨÆäÀÌÁö¸¦ ³ªÅ¸³ª°Ô ÇÏ´Â º¯¼ö
if(!$data[homepage]) {$hide_homepage_start="";}
// E-MAIL À» ³ªÅ¸³ª°Ô ÇÏ´Â º¯¼ö
if(!$data[email]) {$hide_email_start="";}
// ÄÚ¸àÆ®¸¦ ¾È º¸ÀÌ°Ô ÇÏ´Â º¯¼ö;;
if(!$setup[use_comment])
{$hide_comment_start="";}
// ȸ¿ø·Î±×ÀÎÀÌ µÇ¾î ÀÖÀ¸¸é ÄÚ¸àÆ® ºñ¹Ð¹øÈ£¸¦ ¾È ³ªÅ¸³ª°Ô;;
if($member[no]) {
$c_name=$member[name]; $hide_c_password_start="";
$temp_name = get_private_icon($member[no], "2");
if($temp_name) $c_name="
";
$temp_name = get_private_icon($member[no], "1");
if($temp_name) $c_name="
".$c_name;
} else $c_name="";
/****************************************************************************************
* ½ÇÁ¦ Ãâ·Â ºÎºÐ
***************************************************************************************/
// Çì´õ Ãâ·Â
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=" ";
// À̸§¾Õ¿¡ ºÙ´Â ¾ÆÀÌÄÜ Á¤ÀÇ;;
$c_face_image=get_face($c_data);
if($is_admin) $show_ip=" title='$c_data[ip]' "; else $show_ip="";
if($setup[use_formmail]&&check_zbLayer($c_data)) {
$comment_name = "$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;
}
?>