@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/faq-.php
<? if(!$item) $item = $pagesize; if(!$pageintm) $pageitem = $pagelimit; if(!$page) $page = 1; $start = ($page - 1) * $item; if($word) $addwhere = " && $keyword like '%$word%' "; $sql = "select count(id) from $tname1 where db='$db' && notice='N' $addwhere"; $res = mysql_query($sql); $row = mysql_fetch_array($res); $total = $row[0]; $totalpage = ceil($total / $item); $pnum = $total - (($page-1) * $item); $sql = "select * from $tname1 where db='$db' && notice='N' $addwhere order by grp DESC, stp ASC limit $start, $item"; $res = mysql_query($sql); $cnt = mysql_num_rows($res); echo" <Script Language='javaScript' Src='$skinurl/script/list.js'></Script> <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><a href='$PHP_SELF?type=board_admin&db=$db'><img src='$skinurl/img/admin_login.gif' border='0'></a> </td> </tr> </form> </table>"; #### TITLE START #### echo" <table align='center' border='0' bgcolor='$DEFAULT_BG' 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='2'> <td colspan='13' bgcolor='#DBDADA'></td> </tr> <tr align='center' height='27' bgcolor='$DEFAULT_COLOR'>"; 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 class=title nowrap width='45'>NO</td> <td class=title nowrap width='1'><img src='$skinurl/img/slice1.gif'></td> <td class=title width='100%'>SUBJECT</td>"; if($ttle_name == "Y"){ echo" <td class=title nowrap width='1'><img src='$skinurl/img/slice1.gif'></td> <td class=title nowrap width='90'>NAME</td>"; } if($ttle_date == "Y"){ echo" <td class=title nowrap width='1'><img src='$skinurl/img/slice1.gif'></td> <td class=title nowrap width='80'>DATE</td>"; } if($ttle_hit == "Y"){ echo" <td class=title nowrap width='1'><img src='$skinurl/img/slice1.gif'></td> <td class=title nowrap width='50'>HIT</td>"; } if($$B_ADMIN_KEY == "ADMIN_GRADE"){ echo" <td class=title nowrap width='1'><img src='$skinurl/img/slice1.gif'></td> <td class=title nowrap width='40'><a href='javascript:deleteAll()'>SEL</a></td>"; } echo" </tr>"; #### TITLE END #### #### NOTICE PRINT S #### $n_sql = "select * from $tname1 where db='$db' && notice = 'Y' order by grp DESC, stp ASC"; $n_res = mysql_query($n_sql); $n_cnt = mysql_num_rows($n_res); $ppp = 1; $tcnt = $cnt + $n_cnt;; while($row = mysql_fetch_Array($n_res)){ //»õ±ÛÀ϶§ »¡°£»ö Ç¥½Ã 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' 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='#F7F7F7'\" onMouseOut=\"this.style.backgroundColor='$DEFAULT_COLOR'\" bgcolor='$DEFAULT_COLOR'>"; 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'></td> <td></td> <td style='word-break:break-all'>[°øÁö] <a href=\"javascript:content_view('$ppp','$tcnt')\">".cutting($row[subject], $list_subject_limit)."</a> $new_gul</td> <td></td>"; if($ttle_name == "Y"){ echo" <td align=center>$row[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 == "ADMIN_GRADE"){ echo" <td align='center'><input type='checkbox' name='del_box[]' value='$row[id]' style='border:0px'></td>"; } echo" </tr>"; echo" <tr id='faqview$ppp' style='display:none'> <td colspan='13' align='center'> <table width='98%' cellpadding='0' cellspacing='0'> <tr height='1' bgcolor='#E7E7E7'> <td></td> </tr> <tr> <td style='padding:5px; padding-bottom:15px'>"; if($row[html] == "HT") echo nl2br($row[content]); else if($row[html] == "H") echo $row[content]; else echo nl2br($row[content]); echo" </td> </tr> </table></td> </tr> <tr> <td height='1' bgcolor='#AAAAAA' colspan='13'></td> </tr>"; $ppp++; } #### NOTICE PRINT S #### #### CONTENT PRINT S #### while($row = mysql_fetch_Array($res)){ //»õ±ÛÀ϶§ »¡°£»ö Ç¥½Ã 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); $new_gul = ""; } } else { $wdate = substr($row[wdate],0,10); } if(($ppp%2) == 0) $color="#FBFBFB"; else $color="$DEFAULT_BG"; echo " <tr height='25' onMouseOver=\"this.style.backgroundColor='#FBFBFB'\" onMouseOut=\"this.style.backgroundColor='$color'\" bgcolor=$color>"; 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'>".$pnum--."</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> "; else echo " <img src=$skinurl/img/list-icon.gif align=absmiddle> "; if($keyword == "subject" && $word) $subject = ereg_replace("$word", "<font color='#FF0000'>$word</font>", $row[subject]); else $subject = $row[subject]; $subject = cutting($subject, $list_subject_limit); echo "<a href=\"javascript:content_view('$ppp', '$tcnt')\">$subject</a></td> <td></td>"; if($ttle_name == "Y"){ echo" <td align=center>$row[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 == "ADMIN_GRADE"){ echo" <td align='center'><input type='checkbox' name='del_box[]' value='$row[id]' style='border:0px'></td>"; } echo" </tr>"; echo" <tr id='faqview$ppp' style='display:none'> <td colspan='13' align='center'> <table width='98%' cellpadding='0' cellspacing='0'> <tr height='1' bgcolor='#E7E7E7'> <td></td> </tr> <tr> <td style='padding:5px; padding-bottom:15px'>"; if($row[html] == "HT") echo nl2br($row[content]); else if($row[html] == "H") echo $row[content]; else echo nl2br($row[content]); echo" </td> </tr> </table></td> </tr> <tr> <td height='1' bgcolor='#E5E5E5' colspan='13'></td> </tr>"; $ppp++; } #### CONTENT PRINT E #### #### µî·Ï °Ô½Ã¹°ÀÌ ¾øÀ»¶§ S #### if(!$total){ echo " <tr height='30' onMouseOver=\"this.style.backgroundColor='#F7F7F7'\" onMouseOut=\"this.style.backgroundColor='$color'\" bgcolor=$color> <td colspan=13 align=center align='center'>µî·Ï(°Ë»ö)µÈ °Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù.</td> </tr> <tr> <td height='1' bgcolor='#E5E5E5' colspan='13'></td> </tr>"; } #### µî·Ï °Ô½Ã¹°ÀÌ ¾øÀ»¶§ E #### echo " <!-- ¸®½ºÆ® Ãâ·Â --> <tr height='2' bgcolor='#E5E5E5'> <td colspan='13'></td> </tr> </form> </table>"; #### PAGE LINK #### echo" <table border='0' width='100%' cellpadding='0' cellspacing='0'> <tr height='30'> <td align='center'>"; $fquery = "lcode=$lcode&mcode=$mcode&scode=$scode&name=$name&made=$mdae&price1=$price1&item=$item"; psk_Bpagelink($totalpage, $pageitem, $page, "$skinurl/img/prev.gif", "$skinurl/img/next.gif", $fquery); echo"</td> </tr> </table>"; #### PAGE LINK #### #### SEARCH START #### echo" <table border='0' width='100%' cellpadding='0' cellspacing='0'> <tr height='5'> <td colspan='2'></td> </tr> <tr> <td width='30%'>"; if($$B_ADMIN_KEY == "ADMIN_GRADE"){ echo" <input type='image' src='$skinurl/img/i_write.gif' style='border:0; width:50; height:18' onClick=\"window.location.href='$PHP_SELF?db=$db&page=$page$search&type=insert'\" align='absmiddle'> <input type='image' src='$skinurl/img/i_del.gif' style='border:0; width:50; height:18' onClick=\"Delete_Ch('$PHP_SELF','$$B_ADMIN_KEY')\" align='absmiddle'> <input type='image' src='$skinurl/img/i_modify.gif' style='border:0; width:50; height:18' onClick=\"Edit_Ch('$PHP_SELF','$$B_ADMIN_KEY')\" align='absmiddle'>"; } echo"</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='70%' 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/i_search.gif' style='border:0px; width:65; height:18'></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 #### ?>