@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
/
files
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/board/skin/new01a/files/list.php
<? include "$DOCUMENT_ROOT/$skinurl/files/color.php"; if($$B_ADMIN_KEY){ $ladmin = "<a href='/board/logout.php?url=$PHP_SELF'><img src='/board/logout.gif' border='0'></a>"; } else { $ladmin = "<a href='$PHP_SELF?type=board_admin&db=$db'><img src='$skinurl/img/$btn/admin_login.gif' border='0'></a>"; } //echo $read_type_option; if($part[0] == "N" && $part[1] == "N" && $part[2] == "N"){ $part = array("N","subject","N"); } //°Ë»ö Á¶°Ç if($search_ == "Y"){ $part = @implode("|",$part); } $part_array = @explode("|",$part); if($word) $part_sql = " and $keyword like '%$word%' "; //ÆäÀÌ¡ º¯¼öµé $search = "&part=$part&key=$key&word=$word&sort=$sort&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]; } } //SQL ½Ã°£ ÃøÁ¤ $SQL_TIME[] = microtime(); if($word){ $SQL = "select count(*) from $tname1 where db='$db' and notice != 'Y' $part_sql $SORT and mstp = 0"; }else{ $SQL = "select count(*) from $tname1 where db='$db' and notice != 'Y' and mstp = 0 $SORT "; } if($Admin_mode == "admin"){ if($word){ $SQL = "select count(*) from $tname1 where db='$db' and notice != 'Y' and $part_sql $SORT and mstp = 0"; }else{ $SQL = "select count(*) from $tname1 where db='$db' and notice != 'Y' and mstp = 0 $SORT "; } } //echo $SQL."<br>"; //$N_SQL = "select * from $tname1 where db='$db' and mstp = 0 and notice = 'Y' order by grp DESC,stp ASC limit $start,$pagesize"; $RS = mysql_query($SQL); $Row = mysql_fetch_array($RS); $total = $Row[0]; $totalpage = ceil($total/$pagesize); $start = ($page-1) * $pagesize; $j = $total-($page-1)*$pagesize; //////////////////////////////////////////////////////////////////////////////////////////////////// //echo $j; // number// //echo $page; if($word){ $SQL = "select * from $tname1 where db='$db' $part_sql $SORT and mstp = 0 and notice != 'Y' order by grp DESC,stp ASC "; $SQL .= "limit $start,$pagesize"; }else{ $SQL = "select * from $tname1 where db='$db' and mstp = 0 and notice != 'Y' $SORT order by grp DESC,stp ASC limit $start,$pagesize"; } //echo $SQL; if($Admin_mode == "admin"){ if($word){ $SQL = "select * from $tname1 where db='$db' $part_sql $SORT and mstp = 0 and notice != 'Y' order by grp DESC,stp ASC "; $SQL .= "limit $start,$pagesize"; }else{ $SQL = "select * from $tname1 where db='$db' and mstp = 0 and notice != 'Y' $SORT order by grp DESC,stp ASC limit $start,$pagesize"; } //echo "$SQL"; } //echo $SQL; $RS = mysql_query($SQL); $SQL_TIME[] = microtime(); if($subject_layer == "Y"){ //Á¦¸ñ·¹À̾î ÀÚ¹Ù½ºÅ©¸³Æ® echo" <DIV ID='overDiv' STYLE='position: absolute; z-index: 50; width: 260; visibility: hidden'></DIV> <Script Language='javaScript' Src='$skinurl/script/layer.js'></Script>"; } echo" <Script Language='javaScript' Src='$skinurl/script/list.js'></Script> <link href='$skinurl/style/style.css' rel='stylesheet' type='text/css'> <table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'> <form name=formsort method=post action='$PHP_SELF'> <tr valign='top' height='15'> <td width='50%'><p>"; if($v_title != 0) echo "<b><font size=\"2\">$board_name</font></b>"; if($sort) echo "<font color=red><b> -> $sort</b></font> <br>"; echo " </td> <td width=\"50%\" align=right> "; if($car_option == "Y" && $db != 'st_board'){ echo " <input type=\"hidden\" name=\"db\" value=\"$db\"> <input type=\"hidden\" name=\"sort\" value=\"$sort\"> <input type=\"hidden\" name=\"part\" value=\"$part\"> <input type=\"hidden\" name=\"word\" value=\"$word\"> "; echo "ºÐ·ù ¼±Åà : <Select name=sort onChange='this.form.submit();'>"; $car_array_size = count($car_array); for($i = 0 ; $i < $car_array_size ; $i++){ if($sort == $car_array[$i]) echo"<option SELECTED>$car_array[$i]</option>\n"; else echo"<option>$car_array[$i]</option>\n"; } echo "</Select>"; } echo" </td>"; if($$B_ADMIN_KEY && $welcome_email=="Y") echo"<td><a href=\"javascript:reply_Text('$db')\"><img src='$skinurl/img/reply_text.gif' border='0'></a> </td>"; echo" <td>$ladmin </td> </tr> </form> </table>"; //$DEFAULT_COLOR = $bgcolora; #### TITLE START #### echo" <table align='center' border='0' $bgcolor_0 cellpadding='0' cellspacing='0' width='100%'> <form name=formbsk method=post action='$PHP_SELF'> <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='bsk'> <input type='hidden' name='sort' value='$sort'> <input type='hidden' name='del_ids'> <tr height='0'> <td colspan='13' $bgcolor_l1></td> </tr> <tr align='center' height='23' $bgcolor_tb1>"; if($checkbox_option == "Y"){ ## ¿¬¼Óº¸±â ¿É¼Ç echo" <td width='30' nowrap class='title'><a href='javascript:selectAll();'>V</a></td> <td class=title nowrap width='1'><img src='$skinurl/img/slice1.gif'></td>"; } echo " <td nowrap width='45'><b><font style='color:$bgcolor_tt1;'>¹øÈ£</td> <td nowrap width='1'></td> <td width='100%'><b><font style='color:$bgcolor_tt1;'>Á¦¸ñ</td>"; if($ttle_name == "Y"){ echo" <td nowrap width='1'></td> <td nowrap width='90'><b><font style='color:$bgcolor_tt1;'>ÀÛ¼ºÀÚ</td>"; } if($ttle_date == "Y"){ echo" <td nowrap width='1'></td> <td nowrap width='80'><b><font style='color:$bgcolor_tt1;'>ÀÛ¼ºÀÏ</td>"; } if($ttle_hit == "Y"){ echo" <td nowrap width='1'></td> <td nowrap width='50'><b><font style='color:$bgcolor_tt1;'>Á¶È¸¼ö</td>"; } if($$B_ADMIN_KEY){ echo" <td nowrap width='1'></td> <td nowrap width='40'><a href='javascript:deleteAll()'><b><font style='color:$bgcolor_tt1;'>üũ</a></td>"; } echo" </tr>"; #### TITLE END #### #### LIST START #### //////////// °øÁö±Û Ãâ·Â ///////////////////// $N_i = 0; $N_SQL = "select * from $tname1 where db='$db' and mstp = 0 and notice = 'Y' order by grp DESC,stp ASC limit $start,$pagesize"; $N_RS = mysql_query($N_SQL); while($Row = mysql_fetch_Array($N_RS)){ //Html Å×±×ó¸® if($Row[html] == "Y"){ $subject = cutting($Row[subject], $list_subject_limit); $name = $Row[name]; $email = $Row[email]; $content = $Row[content]; }else{ $subject = cutting(htmlspecialchars($Row[subject]), $list_subject_limit); $name = htmlspecialchars($Row[name]); $email = htmlspecialchars($Row[email]); $content = str_replace(chr("13"),"<BR>",$Row[content]); } //Email ó¸® if($email){ $name = "<a style='cursor:hand'><a href='mailto:$email'><b>$name</b></a></a>"; } //¸Þ¸ðÀϰæ¿ì ÇØ´ç ¸Þ¸ðÀÇ ¼ö·® if($memo_option == "Y"){ $SQLM = "select count(id) from $tname1 where db='$db' and grp='$Row[grp]' and stp='$Row[stp]' and loc='$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'>[$RowM[0]]</font>"; } else $memo_num = ""; } //»õ±ÛÀ϶§ »¡°£»ö Ç¥½Ã if($new_option == "Y"){ if(substr($Row[wdate],0,10) == date("Y-m-d")){ $wdate = "<font color=red>".substr($Row[wdate],0,10)."</font>"; if($new_icon=="1") $new_gul = "<img src='/board/img/new1.gif' alt='»õ±Û'>"; if($new_icon=="2") $new_gul = "<img src='/board/img/new2.gif' alt='»õ±Û'>"; if($new_icon=="3") $new_gul = "<img src='/board/img/new3.gif' alt='»õ±Û'>"; }else{ $wdate = substr($Row[wdate],0,10); $new_gul = ""; } }else{ $wdate = substr($Row[wdate],0,10); } echo " <tr height='24' onMouseOver=\"this.style.backgroundColor='$bgcolor_o1'\" onMouseOut=\"this.style.backgroundColor='$bgcolor_o2'\" $bgcolor_list>"; if($checkbox_option == "Y"){ ## ¿¬¼Óº¸±â üũ¹Ú½º echo " <td width='30' nowrap align='center'><input type=checkbox name=Check_Box[] value='$Row[id]'></td> <td></td>"; } echo " <td align='center'><font style='color:red;'><b>:::</b></font></td> <td></td> <td style='word-break:break-all'> <b><a href='$PHP_SELF?db=$db&page=$page$search&id=$Row[id]&type=read' $layer>$subject</a> $memo_num $new_gul</b></td> <td></td>"; if($ttle_name == "Y"){ echo" <td align=center>$name</td> <td></td>"; } if($ttle_date == "Y"){ echo" <td align='center'>$wdate</td> <td></td>"; } if($ttle_hit == "Y"){ echo" <td align='center'>$Row[hit]</td> <td></td>"; } if($$B_ADMIN_KEY){ echo" <td align='center'><input type='checkbox' name='del_box[]' value='$Row[id]' style='border:0px'></td>"; } echo" </tr> <tr> <td height='1' $bgcolor_l2 colspan='13'></td> </tr>"; $N_i++; } ////////////////////// °øÁö±Û Ãâ·Â ³¡ ///////////////////////////////// $i=1; if($total != 0){ while($Row = mysql_fetch_Array($RS)){ //Html Å×±×ó¸® if($Row[html] == "Y"){ $subject = cutting($Row[subject], $list_subject_limit); $name = $Row[name]; $email = $Row[email]; $content = $Row[content]; }else{ $subject = cutting(htmlspecialchars($Row[subject]), $list_subject_limit); $name = htmlspecialchars($Row[name]); $email = htmlspecialchars($Row[email]); $content = str_replace(chr("13"),"<BR>",$Row[content]); } //Email ó¸® if($email){ $name = "<a style='cursor:hand'><a href='mailto:$email'><b>$name</b></a></a>"; } //±Ûº¸±âÀϰæ¿ì ÇØ´ç±Û Ä¥Çϱâ if($type != "bsk"){ if($id == $Row[id]){ $color = "#EEEEEE"; }else{ $color = "#FFFFFF"; } } //°Ë»ö´Ü¾î »öÄ¥Çϱâ 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]}); } //¸Þ¸ðÀϰæ¿ì ÇØ´ç ¸Þ¸ðÀÇ ¼ö·® if($memo_option == "Y"){ $SQLM = "select count(id) from $tname1 where db='$db' and grp='$Row[grp]' and stp='$Row[stp]' and loc='$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]]</b></font>"; }else{ $memo_num = ""; } } //»õ±ÛÀ϶§ »¡°£»ö Ç¥½Ã if($new_option == "Y"){ if(substr($Row[wdate],0,10) == date("Y-m-d")){ $wdate = "<font color=red>".substr($Row[wdate],0,10)."</font>"; if($new_icon=="1") $new_gul = "<img src='/board/img/new1.gif' alt='»õ±Û'>"; if($new_icon=="2") $new_gul = "<img src='/board/img/new2.gif' alt='»õ±Û'>"; if($new_icon=="3") $new_gul = "<img src='/board/img/new3.gif' alt='»õ±Û'>"; }else{ $wdate = substr($Row[wdate],0,10); $new_gul = ""; } }else{ $wdate = substr($Row[wdate],0,10); } if(($i%2)==0) $color=$bgcolor_list_over; else $color=$bgcolor_list_out; if(($i%2)==0) $bgcolor_list=$bgcolor_list1; else $bgcolor_list=$bgcolor_list2; $i++; echo " <tr height='25' onMouseOver=\"this.style.backgroundColor='$color'\" onMouseOut=\"this.style.backgroundColor='$color'\" $bgcolor_list>"; if($checkbox_option == "Y"){ ## ¿¬¼Óº¸±â ¿É¼Ç echo" <td align='center'><input type=checkbox name=Check_Box[] value='$Row[id]' style='border:0px'></td> <td></td>"; } echo " <td align='center'>$j</td> <td></td> <td style='word-break:break-all'>"; $file_exist = ""; $te_file = explode(",", $Row[filename]); for($jj=0; $jj<sizeof($te_file); $jj++){ if(!$te_file[$jj]) continue; $file_exist = $te_file[$jj]; } if($file_exist) echo" <img src=$skinurl/img/file_icon.gif align=absmiddle> \n"; else echo" \n"; //Á¦¸ñ ·¹À̾î if($subject_layer == "Y"){ $layer = "onMouseOver=\"drs('content_$Row[id]'); return true;\" onMouseOut='nd(); return true;' "; echo"<input type=hidden name='content_$Row[id]' value=".cutting($content,$layer_limit).">\n\n"; } $parent_open = ""; if($Row[loc]!=0){ $par_sql = "select open from $tname1 where id='$Row[grp]'"; $par_row = mysql_fetch_array(mysql_query($par_sql)); $parent_open = $par_row[open]; $up_sql = "update $tname1 set open='$par_row[open]' where grp='$Row[grp]'"; mysql_query($up_sql) or die(mysql_error()); for($h=0; $h<$Row[loc];$h++) echo " "; echo"<img src=$skinurl/img/icon_re.gif>"; if($content_open == "Y" && $parent_open == "N") echo"<img src='$skinurl/img/tel.gif'> "; } else { if($content_open == "Y" && $Row[open] == "N") echo"<img src='$skinurl/img/tel.gif'> "; } if($admin_read == "Y") echo"<img src='$skinurl/img/tel.gif'> "; if($Row[mode] == "N") echo"<img src='$skinurl/img/tel.gif'> "; if($Row[id] == $id) $subject = "<font style='color:#FF0000'>$subject</font>"; else $subject = $subject; echo "<a href='$PHP_SELF?db=$db&page=$page$search&id=$Row[id]&type=read' $layer>$location$subject</a> $memo_num $new_gul</td> <td></td>"; if($ttle_name == "Y"){ echo" <td align=center>$name</td> <td></td>"; } if($ttle_date == "Y"){ echo" <td align='center'>$wdate</td> <td></td>"; } if($ttle_hit == "Y"){ echo" <td align='center'>$Row[hit]</td> <td></td>"; } if($$B_ADMIN_KEY){ echo" <td align='center'><input type='checkbox' name='del_box[]' value='$Row[id]' style='border:0px'></td>"; } echo" </tr> <tr> <td height='1' $bgcolor_l2 colspan='13'></td> </tr>"; $j--; } } else { echo " <tr height='30' $bgcolor_list1> <td colspan=13 align=center align='center'>µî·Ï(°Ë»ö)µÈ °Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù.</td> </tr> <tr> <td height='1' $bgcolor_l2 colspan='13'></td> </tr>"; } echo " <!-- ¸®½ºÆ® Ãâ·Â --> <tr height='1' $bgcolor_l2> <td colspan='13'></td> </tr> </form> </table>"; #### PAGE & VIEW START #### echo" <table border='0' width='100%' cellpadding='0' cellspacing='0'> <tr> <td height='10' colspan='3'></td> </tr> <tr>"; if($checkbox_option == "Y") echo"<td width='50' nowrap><a href=javascript:goBasket(2);><B>view</B></a></td>"; else echo"<td width='50' nowrap> </td>"; echo " <td width='100%' align='center'>"; PAGE_FUN($totalpage, $total, $page, $search, $pagelimit, $db); echo " </td> <td width='50' nowrap> </td> </tr> </table>"; #### PAGE & VIEW END #### //echo $adminwrite_option; #### SEARCH START #### echo" <table border='0' width='100%' cellpadding='0' cellspacing='0'> <tr height='5'> <td colspan='2'></td> </tr> <tr> <td width='40%'>"; if($adminwrite_option == "N" || $$B_ADMIN_KEY) echo"<input type='image' src='$skinurl/img/$btn/i_write.gif' style='border:0;' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=insert'\" align='absmiddle'>"; if($$B_ADMIN_KEY){ echo" <input type='image' src='$skinurl/img/$btn/i_del.gif' style='border:0;' onClick=\"Delete_Ch('$PHP_SELF','$BOARD_ADMIN')\" align='absmiddle'> <input type='image' src='$skinurl/img/$btn/i_modify.gif' style='border:0;' onClick=\"Edit_Ch('$PHP_SELF','$$B_ADMIN_KEY')\" align='absmiddle'></td>"; } if($search_option == "Y" ){ #### SEARCH OPTION START echo " <form name='SearchForm' method='post' onSubmit='return CheckSearch()' action='$PHP_SELF'> <input type='hidden' name='db' value='$db'> <input type='hidden' name='sort' value='$sort'> <input type='hidden' name='part[0]' value='N'> <input type='hidden' name='part[1]' value='subject'> <input type='hidden' name='part[2]' value='N'> <input type='hidden' name='search_' value='Y'> <td width='60%' colspan='2' align='right'> <table cellpadding='0' border='0' cellspacing='0'> <tr height='20'> <td width='65' valign='bottom'> <select name='keyword' style='font-size:8pt;'></select></td> <td width='161'><input type='text' size='25' name='word' style='border:1px solid #AAAAAA; height:18'></td> <td width='70' align='center'><input type='image' src='$skinurl/img/$btn/i_search.gif' style='border:0px;'></td> </tr> </table> </td> </form> <script>search_List('$home_option')</script>"; } #### SEARCH OPTION END echo" </tr> </table>"; #### SEARCH END #### #### SPEED CHECK START #### if($speed_option == "Y"){ echo" <table border='0' width='100%' cellpadding='0' cellspacing='0'> <tr height=35> <td width='50%'> "; //Page Loading [ 0.14 Sec ] SQL Time [ 0.06 Sec ] $total_time[] = microtime(); // ¼Óµµ üũ echo"<font size=2>Page Loading [".get_microtime($total_time[0], $total_time[1])." Sec] / SQL Time [".get_microtime($SQL_TIME[0], $SQL_TIME[1])." Sec]</font></td> </tr> </table>"; } #### SPEED CHECK END #### ?>