@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux adweb87 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64
Current Path :
/
home
/
sanchung
/
public_html
/
board
/
skin
/
new01a_site
/
files
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/board/skin/new01a_site/files/read.php
<script> function ImageWin(img_name,width,height) { width = width+'+50'; height = height+'+50'; newWin=window.open('<?=$WEB_PATH?>/img.php?img='+img_name,'OrgImg','width='+width+',height='+height+',scrollbars=no,resizable=no'); } </script> <? include "$DOCUMENT_ROOT/$skinurl/files/color.php"; $SQL="update $tname1 set hit=hit+1 where id=$id"; $RS=mysql_query($SQL); $SQL="select * from $tname1 where id='$id' and db='$db'"; $RS=mysql_query($SQL); $Row=mysql_fetch_array($RS); $read_user = $Row[userid]; if($Row[notice] == 'Y') $admin_notice = "&admin_notice=Y"; $NOTICE = $Row[notice]; //°Ë»ö Á¶°Ç $part_array = @explode("|",$part); if($word){ $part_sql = " and "; while(list($k , $v) = each($part_array)){ if($v != "N"){ $part_sql .= " $v LIKE '%$word%' or"; } } } $part_sql = substr($part_sql, 0,-2); //ÆäÀÌ¡ º¯¼öµé $search = "&part=$part&word=$word&sort=$sort"; if($Row[html] == "H"){ $subject = str_replace("\"", "'",$Row[subject]); $content = stripslashes($Row[content]); //$content = htmlspecialchars($Row[content]); $name = $Row[name]; if(!ereg("(^(http://))",$Row[home])) $home = "http://".$Row[home]; else $home = $Row[home]; $email = $Row[email]; } else if($Row[html] == "HT"){ $subject = str_replace("\"", "'",$Row[subject]); $content = stripslashes($Row[content]); $content = nl2br($content); //$content = htmlspecialchars($Row[content]); $name = $Row[name]; if(!ereg("(^(http://))",$Row[home])) $home = "http://".$Row[home]; else $home = $Row[home]; $email = $Row[email]; }else{ $subject = htmlspecialchars($Row[subject]); $content = str_replace(" ", " ",htmlspecialchars($Row[content])); $content = nl2br($content); $name = htmlspecialchars($Row[name]); if(!ereg("(^(http://))",$Row[home])) $home = "http://".htmlspecialchars($Row[home]); else $home = htmlspecialchars($Row[home]); $email = htmlspecialchars($Row[email]); } //Email ó¸® if($email){ $name = "<a href='mailto:$email'><b>$name</b></a>"; } //°Ë»ö´Ü¾î »öÄ¥Çϱâ if($word){ reset($part_array); while(list($k , $v) = each($part_array)){ ${$v} = Search_Color($v,$word,$$v); } } //»õ±ÛÀ϶§ »¡°£»ö Ç¥½Ã if($new_option == "Y"){ if(substr($Row[wdate],0,10) == date("Y-m-d")){ $wdate = "<font color=red>".$Row[wdate]."</font>"; $new_gul = "<img src='$skinurl/img/new.gif' align='absmiddle'>"; }else{ $wdate = $Row[wdate]; $new_gul = ""; } }else{ $wdate = $Row[wdate]; } // BOARD NAME PRINT if($V_title){ echo" <table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'> <tr height=20> <td width='30%'><b><font size='2'>$board_name</font></b></td> <td width='70%' colspan='2' valign=bottom> </td> </tr> </table>"; } #### BODY START #### echo" <table align='center' border='0' cellpadding='0' cellspacing='0' width='100%' $bgcolor_0> <tr height='0'> <td $bgcolor_l1 colspan='3'></td> </tr> <tr height='23' $bgcolor_tb1> <td width='85' nowrap align='center'><b><font style='color:$bgcolor_tt1;'>Á¦¸ñ</td> <td width='10' nowrap> </td> <td width='100%'>"; //if($Row[stp]!=0) echo "Re:"; echo"<font style='color:$bgcolor_tt1;'>$subject $new_gul</td> </tr> <tr height='1'> <td $bgcolor_l1 colspan='3'></td> </tr> <tr height='30'> <td colspan='3'> <table width='100%' height='100%'> <tr> <td align='center' $bgcolor_tb2><FONT COLOR='$bgcolor_tt2'><B>ÀÛ¼ºÀÚ</B></FONT></td> <td> </td> <td>$Row[name] "; if($Row[email]) echo" [<a href='mailto:$Row[email]'>${Row[email]}</a>]"; echo"</td> <td align='center' $bgcolor_tb2><FONT COLOR='$bgcolor_tt2'><B>ÀÛ¼ºÀÏ</B></FONT></td> <td> </td> <td>$Row[wdate]</td> <td align='center' $bgcolor_tb2><FONT COLOR='$bgcolor_tt2'><B>Á¶È¸¼ö</B></FONT></td> <td> </td> <td>$Row[hit]</td> </tr> </table> </td> </tr>"; if($home_option == "Y"){ echo" <tr height='1'> <td $bgcolor_l2 colspan='3'></td> </tr> <tr height='30'> <td align='right'><img src='$skinurl/img/w_homepage.gif'></td> <td> </td> <td><a href='$Row[home]' target='_blank'>$Row[home]</a></td> </tr>"; } if($file_option == "Y"){ if($Row[filename]){ $do_file = explode(",",$Row[filename]); echo" <tr height='1'> <td bgcolor='#E5E5E5' colspan='3'></td> </tr> <tr height='30'> <td align='center' $bgcolor_tb2><FONT COLOR='$bgcolor_tt2'><B>÷ºÎÆÄÀÏ</B></FONT></td> <td> </td> <td>"; for($jj=0; $jj<count($do_file); $jj++){ if($jj != 0) echo" | "; echo"<a href='$WEB_PATH/down.php?db=$db&filename=$do_file[$jj]'>$do_file[$jj]</a>"; } echo" </td> </tr>"; } } echo" <tr height='1'> <td colspan='3' $bgcolor_l2></td> </tr> <tr height='200'> <td style='word-break:break-all' colspan='3' valign='top' align='center'> <table border='0' cellpadding='5' cellspacing='0' width='96%' style='table-layout:fixed;'> <tr> <td style='word-break:break-all' width='100%'>"; $ad_file = explode(",",$Row[filename]); for($i=0; $i<count($ad_file); $i++){ if(eregi("jpg|gif|png|bmp",$ad_file[$i])){ $ImgInfo = getimagesize("$BOARD_PATH/data/$db/$ad_file[$i]"); if($ImgInfo[0] > 500) $width=500; else $width=$ImgInfo[0]; echo "<img src='$WEB_PATH/data/$db/$ad_file[$i]' width = $width border=0>"; echo "<br><br>»çÁøÅ©±â $ImgInfo[0] x $ImgInfo[1] <a href=\"javascript:ImageWin('$WEB_PATH/data/$db/$ad_file[$i]','$ImgInfo[0]','$ImgInfo[1]');\"><font color=red>¿øº»»çÁøº¸±â</font></a> <br><br></center>"; } } if($Row[media] != "" || $board_shape == "media"){ if($Row[media]) $mediafile = "$WEB_PATH/data/$db/$Row[media]"; else if($Row[filename]){ $file_type = explode(".", $Row[filename]); $mediafile = "$WEB_PATH/data/$db/$Row[filename]"; } echo "<center> <DIV style='OVERFLOW: hidden; WIDTH: 320px; HEIGHT: 310px'> <OBJECT id=PreviewPlayer style='WIDTH: 320px; HEIGHT: 310px' type=application/x-oleobject standby='Loading Windows Media Player components...' classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95> <PARAM NAME='AutoSize' VALUE='0'> <PARAM NAME='AutoStart' VALUE='0'> <PARAM NAME='AllowScan' VALUE='-1'> <PARAM NAME='AllowChangeDisplaySize' VALUE='0'> <PARAM NAME='AutoRewind' VALUE='-1'> <PARAM NAME='Filename' VALUE='$mediafile'> <PARAM NAME='ShowControls' VALUE='-1'> <PARAM NAME='ShowAudioControls' VALUE='0'> <PARAM NAME='ShowDisplay' VALUE='0'> <PARAM NAME='ShowStatusBar' VALUE='-1'> <PARAM NAME='ShowTracker' VALUE='-1'> </OBJECT></DIV><br><br></center>"; } $mediaa = explode(".",$Row[filename]); if($mediaa[1]=="wmv" || $mediaa[1]=="asf" || $mediaa[1]=="avi" || $mediaa[1]=="wma" || $mediaa[1]=="wav"){ if($Row[media]) $mediafile = "$WEB_PATH/data/$db/$Row[media]"; else if($Row[filename]){ $file_type = explode(".", $Row[filename]); $mediafile = "$WEB_PATH/data/$db/$Row[filename]"; } echo "<center> <DIV style='OVERFLOW: hidden; WIDTH: 320px; HEIGHT: 310px'> <OBJECT id=PreviewPlayer style='WIDTH: 320px; HEIGHT: 310px' type=application/x-oleobject standby='Loading Windows Media Player components...' classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95> <PARAM NAME='AutoSize' VALUE='0'> <PARAM NAME='AutoStart' VALUE='1'> <PARAM NAME='AllowScan' VALUE='-1'> <PARAM NAME='AllowChangeDisplaySize' VALUE='0'> <PARAM NAME='AutoRewind' VALUE='-1'> <PARAM NAME='Filename' VALUE='$mediafile'> <PARAM NAME='ShowControls' VALUE='-1'> <PARAM NAME='ShowAudioControls' VALUE='0'> <PARAM NAME='ShowDisplay' VALUE='0'> <PARAM NAME='ShowStatusBar' VALUE='-1'> <PARAM NAME='ShowTracker' VALUE='-1'> </OBJECT></DIV><br><br></center>"; } // if($Row[html] == "Y") echo ($content); // else echo nl2br(autolink($content)); echo"$content </td> </tr> </table> </td> </tr>"; #### IP VIEW START #### if($ip_read == "Y"){ echo" <tr height='30'> <td colspan='3' align='right'>IP Address : $Row[ip]</td> </tr>"; } #### IP VIEW END #### #### MEMO START #### if($memo_option == "Y" && $NOTICE == "N"){ echo" <tr height='1'> <td colspan='3' $bgcolor_l2></td> </tr> </table>"; #### MEMO LIST START #### echo" <table border='0' cellpadding='2' cellspacing='0' width='100%'>"; $SQL="select * from $tname1 where grp=$Row[grp] and loc=$Row[loc] and stp=$Row[stp] and mstp > 0 order by mstp asc"; $RS = mysql_query($SQL); $i = 0; while($Row = mysql_fetch_Array($RS)){ $subject = htmlspecialchars($Row[subject]); $content = htmlspecialchars($Row[content]); $name = htmlspecialchars($Row[name]); $email = htmlspecialchars($Row[email]); //Email ó¸® if($email){ $name = "<a href='mailto:$email'><b><a style=\"cursor:hand\">$name</b></a>"; } if(($i%2)==0){ $color="White"; }else{ $color="#F7F7F7"; } //»õ±ÛÀ϶§ »¡°£»ö Ç¥½Ã if($new_option == "Y"){ if(substr($Row[wdate],0,10) == date("Y-m-d")){ $wdate = "<font color=red>".substr($Row[wdate],0,10)."</font>"; $new_gul = "<img src='$skinurl/img/new.gif' align='absmiddle'>"; }else{ $wdate = substr($Row[wdate],0,10); } }else{ $wdate = substr($Row[wdate],0,10); } echo" <tr onMouseOver=\"this.style.backgroundColor='#F7F7F7'\" onMouseOut=\"this.style.backgroundColor='$DEFAULT_BG'\" height='25'> <td width='100' nowrap align='right'>$new_gul $name : </td> <td width='5' nowrap></td> <td width='100%'><img src='$skinurl/img/m_list.gif' align='absmiddle'>$content</td> <td width='5' nowrap></td> <td width='80' nowrap>$wdate</td> <td width='20' nowrap><a href='$PHP_SELF?db=$db&page=$page$search&id=$Row[id]&parent=$id&type=memodelete'><img src='$skinurl/img/reply-close.gif' border=0 alt='¸Þ¸ð»èÁ¦'></a> </td> </tr> <tr> <td colspan='6' background='$skinurl/img/2x2dot.gif'></td> </tr>"; } echo" <tr height='10'> <td colspan='6'></td> </tr> </table>"; #### MEMO LIST END #### if($NOTICE == "N"){ ########## MEMO FORM ############### echo" <Script Language='JavaScript' Src='$skinurl/script/memo.js'></Script> <table border='0' cellpadding='1' cellspacing='0' width='100%'> <form name='form' method='post' onSubmit='return CheckMemo()' action='$WEB_PATH/insert.php'> <input type='hidden' name='db' value='$db'> <input type='hidden' name='page' value='$page'> <input type='hidden' name='part' value='$part'> <input type='hidden' name='word' value='$word'> <input type='hidden' name='id' value='$id'> <input type='hidden' name='type' value='memoinsert'> <input type='hidden' name='sort' value='$sort'> <input type='hidden' name='BACK_URL' value='$PHP_SELF'> <tr valign='top'> <td colspan=3 height=30><table cellpadding='0' cellspacing='0'><tr><td width='40'> </td><td><img src='$skinurl/img/memo_ttle.gif'></td></tr></table></td> </tr> <tr> <td width='90' nowrap align='right'><img src='$skinurl/img/w_name.gif'></td> <td width='5' nowrap> </td>"; ?> <td width='100%'> <table cellpadding='0' cellspacing='0'> <tr> <td><input type='text' name='name' size='15' value="<?=${$db."_NAME_C"}?>" class="skin3_input" ></td> <td width='27'></td> <? echo" <td><img src='$skinurl/img/w_pass.gif'></td> <td><input type='password' name='pass' size='15' maxlength='15' class='skin3_input'></td> </tr> </table> </td> </tr> <tr> <td align='right'><img src='$skinurl/img/w_mail.gif'></td>"; ?> <td> </td> <td><input type="text" name="email" size="47" value="<?=${$db."_MAIL_C"}?>" class="skin3_input"></td> </tr> <? echo" <tr> <td align='right'><img src='$skinurl/img/w_memo.gif'></td> <td> </td> <td><textarea rows='4' class='skin3_input' name='content' style=\"width:85%; height:60; background-image:url('$skinurl/text_line.gif'); line-height:130%;\"></textarea> <input type='image' src='$skinurl/img/$btn/i_wok.gif' border='0' style='border:0;' onClick='CheckMemo(); return false;'></td> </tr> </form> </table> <BR><BR>"; ########## COMMANT ############### #### MEMO END #### } }else{ echo" </table>"; } //¿¬¼Ó º¸±â¿¡¼´Â »ç¿ë ¾ÈÇÔ if($type != "bsk"){ if($read_type_option == "N"){ //Á¦¸ñ·¹À̾î ÀÚ¹Ù½ºÅ©¸³Æ® echo " <DIV ID=\"overDiv\" STYLE=\"position: absolute; z-index: 50; width: 260; visibility: hidden\"></DIV> <Script Language=\"javaScript\" Src=\"$WEB_PATH/script/layer.js\"></Script> "; } //ÀÌÀü´ÙÀ½ÀÌ ¿É¼ÇÀÌ ÀÖ´Ù¸é if($move_option == "Y"){ $part_array = @explode("|",$part); if($word){ $part_sql = " and ("; while(list($k , $v) = each($part_array)){ //echo $v."<br>"; if($v != "N"){ $part_sql .= " $v LIKE '%$word%' or"; } } $part_sql = substr($part_sql, 0,-2); $part_sql .= ")"; } //ÆäÀÌ¡ º¯¼öµé $search = "&part=$part&word=$word&sort=$sort&view_id=$view_id&Admin_mode=$Admin_mode"; //ºÐ·ù $car_array = @explode(",",$car_array); if($car_option == "Y"){ //ºÐ·ù Á¤·Ä if($sort){ $SORT = " and sort='$sort' "; }else{ $SORT = " and sort = '$car_array[0]' "; $sort = $car_array[0]; } } //[ÀÌÀü][´ÙÀ½] if($db == "diary" || $db == "letter"){ if($view_id != ""){ if($word){ $SQL = "select count(*) from $tname1 where db='$db' and name2 = '$view_id' $part_sql $SORT and mstp = 0"; }else{ $SQL = "select count(*) from $tname1 where db='$db' and name2 = '$view_id' and mstp = 0 $SORT "; } }else { if($word){ $SQL = "select count(*) from $tname1 where db='$db' and mode = 'Y' $part_sql $SORT and mstp = 0"; }else{ $SQL = "select count(*) from $tname1 where db='$db' and mode = 'Y' and mstp = 0 $SORT "; } } } else { if($word){ $SQL = "select count(*) from $tname1 where db='$db' $part_sql $SORT and mstp = 0"; }else{ $SQL = "select count(*) from $tname1 where db='$db' and mstp = 0 $SORT "; } } $RS = mysql_query($SQL); $Row = mysql_fetch_array($RS); $total = $Row[0]; $totalpage = ceil($total/$pagesize); $start = ($page-1) * $pagesize; $pagesize_ = $pagesize + 1; if($db == "diary" || $db == "letter"){ if($view_id != ""){ if($word){ $SQL = "select * from $tname1 where db='$db' $part_sql $SORT and mstp = 0 and name2 = '$view_id' order by grp DESC,stp ASC "; $SQL .= "limit $start,$pagesize_"; }else{ $SQL = "select * from $tname1 where db='$db' and mstp = 0 and name2 = '$view_id' $SORT order by grp DESC,stp ASC limit $start,$pagesize_"; } }else { if($word){ $SQL = "select * from $tname1 where db='$db' $part_sql $SORT and mstp = 0 and mode = 'Y' order by grp DESC,stp ASC "; $SQL .= "limit $start,$pagesize_"; }else{ $SQL = "select * from $tname1 where db='$db' and mstp = 0 and mode = 'Y' $SORT order by grp DESC,stp ASC limit $start,$pagesize_"; } } }else { if($word){ $SQL = "select * from $tname1 where db='$db' $part_sql $SORT and mstp = 0 order by grp DESC,stp ASC "; $SQL .= "limit $start,$pagesize_"; }else{ $SQL = "select * from $tname1 where db='$db' and mstp = 0 $SORT order by grp DESC,stp ASC limit $start,$pagesize_"; } } //echo $SQL."<br>"; $RS = mysql_query($SQL); $to = mysql_num_rows($RS); for($h = 0 ; $h < $to ; $h++){ mysql_data_seek($RS, $h); $Row = mysql_fetch_Array($RS); if($id == $Row[0]){ //´ÙÀ½ $u = $h + 1; @mysql_data_seek($RS, $u); $N_Row = @mysql_fetch_Array($RS); //echo $N_Row[0]."1<br>"; //ÀÌÀü $q = $h - 1; if($q >= 0){@mysql_data_seek($RS, $q);$P_Row = @mysql_fetch_Array($RS);} //echo $P_Row[0]."2<br>"; } } echo" <table border='0' cellpadding='1' cellspacing='0' width='100%'> <tr> <td align=center>"; ###### PREV CONTENT ###### if($P_Row[0]){ echo" <table align=center border=0 cellpadding=0 cellspacing=0 width=100%> <tr> <td width=100% height=1 background='$skinurl/img/2x2dot.gif' colspan=6></td> </tr> <tr height='24' onMouseOver=\"this.style.backgroundColor='#F7F7F7'\" onMouseOut=\"this.style.backgroundColor='#FCF8F4'\" bgcolor='#FCF8F4'> <td width=40 nowrap align=center><img src='$skinurl/img/prev.gif'></td> <td width=100% style=word-break:break-all>"; //¸Þ¸ðÀϰæ¿ì ÇØ´ç ¸Þ¸ðÀÇ ¼ö·® if($memo_option == "Y"){ $SQLM = "select count(id) from $tname1 where db='$db' and grp='$P_Row[grp]' and stp='$P_Row[stp]' and loc='$P_Row[loc]' and mstp!=0"; $RSM = mysql_query($SQLM); $RowM = mysql_fetch_Array($RSM); if($RowM[0] != 0){ //$memo_num = " <img src='$skinurl/img/m_list.gif' align=absmiddle> <font size=\"1\"><b>($RowM[0])</b></font>"; $memo_num = " <font size='1' color='#002279'>[$RowM[0]]</font>"; }else{ $memo_num = ""; } } if($P_Row[html] == "Y"){ $subject = $P_Row[subject]; $content = $P_Row[content]; $name = $P_Row[name]; $home = $P_Row[home]; $email = $P_Row[email]; } else { $subject = htmlspecialchars($P_Row[subject]); $content = htmlspecialchars($P_Row[content]); $name = htmlspecialchars($P_Row[name]); $home = htmlspecialchars($P_Row[home]); $email = htmlspecialchars($P_Row[email]); $content = str_replace(chr("13"),"<BR>",$content); } //°Ë»ö´Ü¾î »öÄ¥Çϱâ if($word){ reset($part_array); $part_array_count = count($part_array); for($i = 0 ; $i < $part_array_count ; $i ++){ ${$part_array[$i]} = Search_Color($part_array[$i],$word,${$part_array[$i]}); } } //Email ó¸® if($email) $name = "<a href='mailto:$email'><b><a style='cursor:hand'>$name</b></a>"; //ÆÄÀÏÀÎÁö ¹®¼ÀÎÁö if($P_Row[filename]){ echo "<p><img src=$skinurl/img/file_icon.gif align=absmiddle> "; }else{ echo "<p><img src=$skinurl/img/text.gif align=absmiddle> "; } //Á¦¸ñ ·¹À̾î if($subject_layer == "Y"){ $P_layer = " onMouseOver=\"drs('content_$P_Row[id]'); return true;\" onMouseOut=\"nd(); return true;\" "; if($read_type_option == "N"){ echo "<input type=hidden name='content_$P_Row[id]' value='".cutting($content,$layer_limit)."'>\n\n"; } } //´äº¯Ç¥½Ã if($P_Row[loc]!=0){ for($h = 0;$h < $P_Row[loc];$h++) echo " "; echo "<img src=$skinurl/img/icon_re.gif> "; } echo "<a href=$PHP_SELF?db=$db&page=$page$search&id=$P_Row[id]&type=read $P_layer>".cutting($subject,$list_subject_limit)."</a> $memo_num $new_gul</p>"; //»õ±ÛÀ϶§ »¡°£»ö Ç¥½Ã if($new_option == "Y"){ if(substr($P_Row[wdate],0,10) == date("Y-m-d")){ $wdate = "<font color=red>".substr($P_Row[wdate],0,10)."</font>"; $new_gul = "<img src='$skinurl/new.gif' alt='»õ±Û'>"; }else{ $wdate = substr($P_Row[wdate],0,10); } }else{ $wdate = substr($P_Row[wdate],0,10); } echo" </td> <td width=80 nowrap> $name</td> <td width=80 nowrap align=center>$wdate</td> <td width=40 nowrap align=center>$P_Row[hit]</td> </tr> </table>"; } ?> <? ###### NEXT CONTENT ###### if($N_Row[0]){ echo" <table align=center border=0 cellpadding=0 cellspacing=0 width=100%> <tr height='1'> <td background='$skinurl/img/2x2dot.gif' colspan=6></td> </tr> <tr height='24' onMouseOver=\"this.style.backgroundColor='#F7F7F7'\" onMouseOut=\"this.style.backgroundColor='#FCF8F4'\" bgcolor='#FCF8F4'> <td width=40 nowrap align=center><img src='$skinurl/img/next.gif' align='absmiddle'></td> <td width=100% style=word-break:break-all>"; //¸Þ¸ðÀϰæ¿ì ÇØ´ç ¸Þ¸ðÀÇ ¼ö·® if($memo_option == "Y"){ $SQLM = "select count(id) from $tname1 where db='$db' and grp='$N_Row[grp]' and stp='$N_Row[stp]' and loc='$N_Row[loc]' and mstp!=0"; $RSM = mysql_query($SQLM); $RowM = mysql_fetch_Array($RSM); if($RowM[0] != 0){ //$memo_num = " <img src='$skinurl/img/m_list.gif' align=absmiddle> <font size=\"1\"><b>($RowM[0])</b></font>"; $memo_num = " <font size='1' color='#002279'>[$RowM[0]]</font>"; }else{ $memo_num = ""; } } if($N_Row[html] == "Y"){ $subject = $N_Row[subject]; $content = $N_Row[content]; $name = $N_Row[name]; $home = $N_Row[home]; $email = $N_Row[email]; }else{ $subject = htmlspecialchars($N_Row[subject]); $content = htmlspecialchars($N_Row[content]); $name = htmlspecialchars($N_Row[name]); $home = htmlspecialchars($N_Row[home]); $email = htmlspecialchars($N_Row[email]); $content = str_replace(chr("13"),"<BR>",$content); } //°Ë»ö´Ü¾î »öÄ¥Çϱâ if($word){ reset($part_array); $part_array_count = count($part_array); for($i = 0 ; $i < $part_array_count ; $i ++){ ${$part_array[$i]} = Search_Color($part_array[$i],$word,${$part_array[$i]}); } } //Email ó¸® if($email){ $name = "<a href='mailto:$email'><b><a style=\"cursor:hand\">$name</b></a>"; } if($N_Row[filename]) echo "<p><img src=$skinurl/img/file_icon.gif align=absmiddle> "; else echo "<p><img src=$skinurl/img/text.gif align=absmiddle> "; //Á¦¸ñ ·¹À̾î if($subject_layer == "Y"){ $N_layer = " onMouseOver=\"drs('content_$N_Row[id]'); return true;\" onMouseOut=\"nd(); return true;\" "; if($read_type_option == "N") echo "<input type=hidden name='content_$N_Row[id]' value='".cutting($content,$layer_limit)."'>\n\n"; } //´äº¯Ç¥½Ã if($N_Row[loc]!=0){ for($h=0;$h < $N_Row[loc];$h++) echo " "; echo "<img src=$skinurl/img/icon_re.gif> "; } echo "<a href=$PHP_SELF?db=$db&page=$page$search&id=$N_Row[id]&type=read $N_layer>".cutting($subject,$list_subject_limit)."</a> $memo_num $new_gul</p>"; //»õ±ÛÀ϶§ »¡°£»ö Ç¥½Ã if($new_option == "Y"){ if(substr($N_Row[wdate],0,10) == date("Y-m-d")){ $wdate = "<font color=red>".substr($N_Row[wdate],0,10)."</font>"; $new_gul = "<img src='$skinurl/img/new.gif' alt='»õ±Û'>"; }else{ $wdate = substr($N_Row[wdate],0,10); } }else{ $wdate = substr($N_Row[wdate],0,10); } echo" </td> <td width=80 nowrap> $name</td> <td width=80 nowrap align=center>$wdate</td> <td width=40 nowrap align=center>$N_Row[hit]</td> </tr> </table>"; } ?> <!-- ÀÌÀü ´ÙÀ½ --> </td> </tr> <? } ?> <table> <? } ?> <? #### BUTTON START #### echo" <table border='0' cellpadding='1' cellspacing='0' width='100%'> <tr height='1'> <td colspan='2' $bgcolor_l2></td> </tr> <tr height='28'> <td width='50%'>"; if($reply_option == "Y") echo"<input type='image' src='$skinurl/img/$btn/i_reply.gif' style='border:0;' align='absbottom' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=reinsert&id=$id$admin_notice'\"></a>"; if($adminwrite_option == "Y"){ if($B_ADMIN_KEY == "ADMIN_GRADE"){ echo" <input type='image' src='$skinurl/img/$btn/i_modify.gif' style='border:0px;' align='absbottom' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=modify&id=$id'\"> <input type='image' src='$skinurl/img/$btn/i_del.gif' style='border:0px;' align='absbottom' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=delete&id=$id'\">"; } } else { echo" <input type='image' src='$skinurl/img/$btn/i_modify.gif' style='border:0px;' align='absbottom' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=modify&id=$id'\"> <input type='image' src='$skinurl/img/$btn/i_del.gif' style='border:0px;' align='absbottom' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=delete&id=$id'\">"; } echo" </td> <td width='50%' align='right'> <input type='image' src='$skinurl/img/$btn/i_list.gif' style='border:0;' align='absbottom' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search'\">"; if($adminwrite_option == "Y"){ if($B_ADMIN_KEY == "ADMIN_GRADE") echo" <input type='image' src='$skinurl/img/$btn/i_write.gif' style='border:0px;' align='absbottom' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=insert&id=$id'\">"; } else { echo" <input type='image' src='$skinurl/img/$btn/i_write.gif' style='border:0px;' align='absbottom' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=insert&id=$id'\">"; } echo" </td> </tr> <tr height='25'> <td colspan='2'> </td> </tr> </table>"; #### BUTTON END #### // echo microtime(); ?>