@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
/
files
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/board/skin/new02a/files/webzine.php
<? include "$DOCUMENT_ROOT/$skinurl/files/color.php"; if($B_ADMIN_KEY1) { $$B_ADMIN_KEY = "ADMIN_GRADE"; session_register($B_ADMIN_KEY); } else { } 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(!$keyword) $keyword = "subject"; if($word) $part_sql = " and $keyword like '%$word%' "; //ÆäÀÌ¡ º¯¼öµé $search = "&db=$db&amode=board_view&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'>"; #### LIST START #### if($total != 0){ while($Row = mysql_fetch_Array($RS)){ if($Row[html] == "H"){ $subject = str_replace("\"", "'",$Row[subject]); $content = stripslashes($Row[content]); $name = $Row[name]; } else if($Row[html] == "HT"){ $subject = str_replace("\"", "'",$Row[subject]); $content = stripslashes($Row[content]); $content = nl2br($content); $name = $Row[name]; }else{ $subject = htmlspecialchars($Row[subject]); $content = str_replace(" ", " ",htmlspecialchars($Row[content])); $content = nl2br($content); $name = htmlspecialchars($Row[name]); } //»õ±Û ¾ÆÀÌÄÜ if($new_option == "Y"){ if(substr($Row[wdate],0,10) == date("Y-m-d")){ $new_gul = "<img src='$skinurl/img/new$new_icon.gif' align='absmiddle'>"; }else{ $new_gul = ""; } } echo " <tr height='30'> <td> <b style='font-size:15px'>$Row[subject]</b> $new_gul"; if($$B_ADMIN_KEY || $_COOKIE[ADMIN_LOGIN]){ echo" <input type='checkbox' name='del_box[]' value='$Row[id]' style='border:0px'>"; } echo" </td> </tr> <tr height='26'> <td style='font-size:11px; color:#666666'> $Row[name] $Row[wdate]</td> </tr> <tr height='1' $bgcolor_l2> <td></td> </tr> <tr height='20'> <td> </td> </tr> <tr> <td style='padding-left:3'>"; $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] > 600) $width=600; else $width=$ImgInfo[0]; echo "<center><img src='$WEB_PATH/data/$db/$ad_file[$i]' width='$width' border=0></center><br><br>"; } } echo" $content </td> </tr>"; } } else { echo " <tr height='30' $bgcolor_list1> <td align=center align='center'>µî·Ï(°Ë»ö)µÈ °Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù.</td> </tr> <tr> <td height='1'></td> </tr>"; } echo " <!-- ¸®½ºÆ® Ãâ·Â --> <tr> <td> </td> </tr> <tr> <td height='1' $bgcolor_l2 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> <td width='100%' align='center'>"; // $lib->PAGE_FUN1($totalpage, $total, $page, $search, $pagelimit, $db, $btn); $query = "db=$db&amode=board_view&part=$part&key=$key&word=$word&sort=$sort"; $lib->psk_pagelink($totalpage, $pagelimit, $page, "/admin/img/left_arr.gif", "/admin/img/right_arr.gif", $query); echo " </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 || $_COOKIE[ADMIN_LOGIN]){ 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 #### ?>