@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/guest_book.php
<? //echo $skinurl; $board_code = rand(1000, 9999); echo" <script type='text/javascript' language='javaScript' src='$skinurl/script/list.js'></script> <link href='$skinurl/style/style.css' rel='stylesheet' type='text/css' />"; if($type == "gmodify" && $id){ $row = $mysql->row("$_board[table]", "*", "where id='$id'"); $type = "modify"; if(!$_adm_key["admin"] && !$_adm_key["board"] && !$_adm_key["master"]){ if($row[pass] != $pass) $lib->alert_back("$_btxt[pass_nomatch]"); } } if(!$type) $type = "insert"; #### TITLE START #### echo" <script type='text/javascript'> <!-- function gformchk(){ var f = document.gform; if(!f.name.value){ alert('$_btxt[input_name] '); f.name.focus(); return false; } if(!f.pass.value){ alert('$_btxt[input_pass] '); f.pass.focus(); return false; } if(f.rand_code && !f.rand_code.value){ alert('$_btxt[input_code] '); f.rand_code.focus(); return false; } if(!f.content.value){ alert('$_btxt[input_content] '); f.content.focus(); return false; } f.submit(); } function geditchk(){ var f = document.gform; if(!f.name.value){ alert('$_btxt[input_name] '); f.name.focus(); return false; } if(!f.pass.value){ alert('$_btxt[input_pass] '); f.pass.focus(); return false; } if(!f.content.value){ alert('$_btxt[input_content] '); f.content.focus(); return false; } f.submit(); } //--> </script>"; $w_btn = "<input type='image' onclick='gformchk(); return false;' src='$skinurl/img/$btn/i_wok.gif' style='border:0;' tabindex='9' />"; if(!$_adm_key["admin"] && !$_adm_key["board"] && !$_adm_key["master"]){ if($_board[level_write] < $_mem_key[level] || !$_mem_key[level]){ $row[content] = $_level[$_board[level_write]]." ÀÌ»ó ±Û¾²±â°¡ °¡´ÉÇÕ´Ï´Ù."; $w_btn = "<input type='image' onclick=\"alert('$row[content]'); return false;\" src='$skinurl/img/$btn/i_wok.gif' style='border:0;' tabindex='9' />"; } } echo" <form name='gform' method='post' action='$_path[web]/insert.php'> <input type='hidden' name='db' value='$db' /> <input type='hidden' name='id' value='$id' /> <input type='hidden' name='type' value='$type' /> <input type='hidden' name='page' value='$page' /> <input type='hidden' name='column' value='$column' /> <input type='hidden' name='keyword' value='$keyword' /> <input type='hidden' name='sort' value='$sort' /> <input type='hidden' name='BACK_URL' value='$_SERVER[PHP_SELF]' /> <table align='center' border='0' $bgcolor_0 cellpadding='0' cellspacing='0' width='100%'> <tr> <td height='1' bgcolor='#CCCCCC'></td> </tr> <tr> <td height='1' bgcolor='$_board[board_color]'></td> </tr> <tr> <td height='3'></td> </tr> <tr> <td style='padding:2px'> <table cellpadding='0' cellspacing='0'> <tr> <td style='color:$_board[board_color]; font-size:11px; padding-left:5px; padding-right:5px'><b>$_btxt[name]</b></td> <td><input type='text' name='name' value='$row[name]' class='input' size='15' /></td> <td width='20'></td> <td style='color:$_board[board_color]; font-size:11px; padding-left:5px; padding-right:5px'><b>$_btxt[pass]</b></td> <td><input type='password' name='pass' value='$row[pass]' class='input' size='15' /></td>"; /**** ½ºÆÔ¹æÁö ÄÚµå ****/ if($type != "modify" && $_board[spam_code] == "Y"){ // °ü¸®ÀÚ || ȸ¿ø ·Î±×ÀÎÀÌ ¾Æ´Ò¶§ È®ÀÎÄÚµåÀÔ·Â if(!$_adm_key["admin"] && !$_adm_key["board"] && !$_adm_key["master"] && !$_mem_key["id"]){ echo" <td width='20'></td> <td style='color:$_board[board_color]; font-size:11px; padding-left:5px; padding-right:5px'><b>$_btxt[code]</b></td> <td> <input type='hidden' name='board_code' value='".base64_encode($board_code)."' /> <img src='$_path[web]/deal.php?mode=code&br=255&bg=255&bb=255&code=".base64_encode($board_code)."' alt='È®ÀÎÄÚµå : $board_code' /> <input type='text' name='rand_code' size='8' class='input' maxlength='4' /></td>"; } } /**** ½ºÆÔ¹æÁö ÄÚµå ****/ echo" </tr> </table> </td> </tr> <tr> <td colspan='4' style='padding:2px'> <table width='100%' cellpadding='0' cellspacing='0'> <tr> <td><textarea name='content' style='width:100%; height:100px' class='input' cols='' rows=''>$row[content]</textarea></td> <td width='70' valign='bottom' align='center'>"; if($type == "modify"){ echo" <input type='image' onclick='geditchk(); return false;' src='$skinurl/img/$btn/i_wok.gif' style='border:0px;' tabindex='9' /> <input type='image' onclick=\"location.replace('?db=$db↦amode=$amode&page=$page'); return false;\" src='$skinurl/img/$btn/i_cancle.gif' style='border:0;' tabindex='9' />"; } else { echo $w_btn; } echo" </td> </tr> </table> </td> </tr> <tr> <td height='3'></td> </tr> <tr> <td height='2' bgcolor='$_board[board_color]'></td> </tr> </table> </form> <br /><br /> <table align='center' border='1' $bgcolor_0 cellpadding='0' cellspacing='0' width='100%'>"; $row = $mysql->row("$_board[table]", "count(id)", "where db='$db' && mstp=0"); $total = $row[0]; $item = $_board[pagesize]; $pageitem = $_board[pagelimit]; if(!$page) $page = $_board[page]; $start = ($page - 1) * $item; $totalpage = ceil($total / $item); $pnum = $total - (($page-1) * $item); $res = $mysql->res("$_board[table]", "*", "where db='$db' && mstp=0 order by grp desc, stp asc limit $start, $item"); while($row = mysql_fetch_array($res)){ $id = $row[id]; echo" <tr bgcolor='$_board[board_color]'> <td height='2'></td> </tr> <tr align='center' bgcolor='#F6F6F6'> <td height='28'> <table border='0' width='100%' cellpadding='0' cellspacing='0'> <tr> <td width='80'> <b>No.".$pnum--."</b></td> <td width='60%'>$row[name] (".substr($row[wdate], 0, 16).")</td> <td width='*' align='right' style='padding-right:5px'>"; $_BBS->btn_print("modify_guest", "i_modify.gif"); $_BBS->btn_print("delete", "i_del.gif"); echo" </td> </tr> </table> </td> </tr> <tr bgcolor='#EEEEEE'> <td height='1'></td> </tr> <tr valign='top'> <td height='60' style='padding:8px'>".nl2br($row[content])."</td> </tr>"; // ´ñ±Û ºÎºÐ if($_board[commant_use] == "Y"){ echo" <tr> <td bgcolor='#F6F6F6' style='padding:8px'> <table width='100%' cellpadding='0' cellspacing='0' border='0'> <tr> <td bgcolor='#FFFFFF' style='padding:5px'>"; include"$_path[board]/skin/$_board[board_skin]/files/commant_guest.php"; echo" </td> </tr> </table> </td> </tr>"; } // ´ñ±Û ºÎºÐ echo" <tr> <td height='20'> </td> </tr>"; } // end while echo" <tr> <td height='1' $bgcolor_l2 colspan='13'></td> </tr> </table>"; // ´ñ±Û ½ºÅ©¸³Æ® if($_board[commant_use] == "Y"){ echo" <script type='text/javascript' language='javascript' src='$skinurl/script/memo_guest.js'></script> <script type='text/javascript'> <!-- function memoDel(id){ if(confirm('$_btxt[memo_delete] ')){ location.replace('$_path[web]/insert.php?db=$db&page=$page$search&parent=$id&type=memodelete&BACK_URL=$_SERVER[PHP_SELF]&id='+id); } } //--> </script>"; } // ´ñ±Û ½ºÅ©¸³Æ® // ÆäÀÌÁö ¸µÅ© echo" <p id='bbs-list-pagelink'>"; $query = $search; $lib->psk_pagelink_layer($totalpage, $_board[pagelimit], $page, "/admin/img/left_arr.gif", "/admin/img/right_arr.gif", $query); echo"</p>"; ?>