@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
/
admin
/
_setup
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_setup/ip.php
<? include"$_SERVER[DOCUMENT_ROOT]/admin/_lib/admin_check.php"; if(!$motion) $motion = "ip_insert"; if($motion == "ip_edit") { $row = $mysql->row("adw_ip_list", "*", "where id='$id'"); } echo" <script type='text/javascript'> <!-- function checkit(){ var f = document.form1; if(!valcheck(f.ip, 1, '¾ÆÀÌÇǸ¦ ÀÔ·ÂÇϼ¼¿ä ')) return false; if(!valcheck(f.memoa, 1, '¸Þ¼¼Áö¸¦ ÀÔ·ÂÇϼ¼¿ä ')) return false; } function delChk(id){ if(confirm('»èÁ¦ ÇϽðڽÀ´Ï±î? ')){ location.replace('./_setup/proc.php?motion=ip_delete&page=$page&id='+id); } } //--> </script> <form method='post' name='form1' action='./_setup/proc.php' onsubmit='return checkit()'> <input type='hidden' name='id' value='$id' /> <input type='hidden' name='motion' value='$motion' /> <input type='hidden' name='page' value='$page' /> <table id='d-table' summary='ȨÆäÀÌÁö Á¢¼ÓÀ» Â÷´ÜÇÒ ¾ÆÀÌÇÇ, Â÷´Ü ÀÌÀ¯¸¦ ¼³Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù.'> <caption class='blind'>Â÷´Ü ¾ÆÀÌÇÇ ¼³Á¤</caption> <tr> <th height='30' scope='row'><label for='ip'>¾ÆÀÌÇÇ</label></th> <td><input type='text' id='ip' name='ip' class='input' value='$row[ip]' /></td> </tr> <tr> <th height='30' scope='row'><label for='memoa'>¸Þ¼¼Áö</label></th> <td><input type='text' id='memoa' name='memoa' class='input' size='70' value='$row[memoa]' /></td> </tr> </table> <p id='bottom-btn'><input type='submit' value='Àú Àå' class='submit' /></p> </form> <table id='l-table' summary='Â÷´Ü¼³Á¤µÈ ¾ÆÀÌÇÇ, ¸Þ¼¼Áö, Àڴܳ¯Â¥, ¼öÁ¤/»èÁ¦¸¦ ÇÒ ¼ö Àִ ǥÀÔ´Ï´Ù.'> <caption class='blind'>Â÷´Ü µî·ÏµÈ ¾ÆÀÌÇǸñ·Ï</caption> <thead> <tr> <th width='7%' scope='col'>No</th> <th width='18%' scope='col'>IP</th> <th width='*' scope='col'>¸Þ¼¼Áö</th> <th width='20%' scope='col'>µî·ÏÀÏ</th> <th width='15%' scope='col'>¼öÁ¤ / »èÁ¦</th> </tr> </thead> <tbody>"; if(!$item) $item = 10; if(!$pageitem) $pageitem = 5; if(!$page) $page = 1; $start = ($page - 1) * $item; if($word) $addwhere = " where $part like '%$word%' "; $row = $mysql->row("adw_ip_list", "count(id)", "$addwhere"); $total = $row[0]; $totalpage = ceil($total / $item); $pnum = $total - (($page-1) * $item); $res = $mysql->res("adw_ip_list", "*", "$addwhere order by id desc limit $start, $item"); while($row = mysql_fetch_array($res)) { echo " <tr> <td>".$pnum--."</td> <td>$row[ip]</td> <td>$row[memoa]</td> <td>$row[wdate]</td> <td><a href='$_SERER[PHP_SELF]?amode=ip&id=$row[id]&motion=ip_edit'>¼öÁ¤</a> / <a href='./_setup/proc.php?motion=ip_delete&page=$page&id=$row[id]' onclick=\"delChk('$row[id]'); return false;\">»èÁ¦</a></td> </tr>"; } if(!$total){ echo" <tr> <td colspan='5'>µî·ÏµÈ ¾ÆÀÌÇǰ¡ ¾ø½À´Ï´Ù.</td> </tr>"; } echo " </tbody> </table> <p id='page-link'>"; $fquery = "amode=$amode"; $lib->psk_pagelink_layer($totalpage, $pageitem, $page, "./img/left_arr.gif", "./img/right_arr.gif", $fquery); echo" </p>"; ?>