@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
/
_file
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_file/file_write.php
<? include"$_SERVER[DOCUMENT_ROOT]/admin/_lib/admin_check.php"; if($_GET[amode] == "file_modify"){ $row = $mysql->row("adw_file_manager", "*", "where num='$num'"); $mode = "modify"; // »ó´Ü $file_top = "./updata/file/$row[code]_top.php"; $fp = fopen($file_top, "r"); $top_content = fread($fp, filesize($file_top)); fclose($fp); // ³»¿ë $file_body = "./updata/file/$row[code].php"; $fp = fopen($file_body, "r"); $contents = fread($fp, filesize($file_body)); fclose($fp); // ÇÏ´Ü $file_bottom = "./updata/file/$row[code]_bottom.php"; $fp = fopen($file_bottom, "r"); $bottom_content = fread($fp, filesize($file_bottom)); fclose($fp); } else { $mode = "regist"; } echo" <script> <!-- function goods_check(){ var form = document.form; if(!valcheck(form.name, 1, 'ÆäÀÌÁö¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä ')) return false; form.content.value = bodyGet(); //alert(form.content.value); form.submit(); } --> </script> <table width='100%' cellpadding='0' cellspacing='0' border='0'> <tr height='30'> <td><FONT style='COLOR:#000000;'><b>ÆäÀÌÁöµî·Ï</b></td> </tr> <tr> <td style='color:#FF6666'>¡Ø ÆäÀÌÁö Ãâ·Â ¼ø¼´Â »ó´ÜÀÎŬ·çµå->»ó´Ü³»¿ë->º»¹®³»¿ë->Çϴܳ»¿ë->ÇÏ´ÜÀÎŬ·çµå ¼øÀ̸ç, ÇÊ¿äÇϽŠºÎºÐ¸¸ ÀÔ·ÂÇϼ¼¿ä<br> ¡Ø ÀÎŬ·çµå´Â Àý´ë°æ·Î(/) ºÎÅÍ ÀÔ·ÂÇϼ¼¿ä. ¿¹) /inc/top_include.php</td> </tr> <tr> <td> <table width='100%' cellSpacing=1 cellPadding=1 border=0 bgcolor='#e6e6e6'> <colgroup> <col width='20%' bgcolor='#f6f6f6' style='padding-left:15' align='left'></col> <col width='80%' bgcolor='#F6F6F6' style='padding-left:10'></col> </colgroup> <FORM NAME='form' METHOD='POST' ACTION='./_file/proc.php' enctype='multipart/form-data'> <input type='hidden' name='mode' value='$mode'> <input type='hidden' name='num' value='$row[num]'> <input type='hidden' name='code' value='$row[code]'> <input type='hidden' name='content'> <textarea name='oldcontents' style='display:none'>".htmlspecialchars($contents)."</textarea> <tr height='30'> <th>ÆäÀÌÁö¸í</th> <td bgcolor='#ffffff'><input type='text' size='30' class=input1 name='name' value='$row[name]'></td> </tr> <tr height='30'> <th>»ó´ÜÀÎŬ·çµå</th> <td bgcolor='#ffffff'><input type='text' size='50' class=input1 name='top_include' value='$row[top]'></td> </tr> <tr height='130'> <th>»ó´Ü³»¿ë</th> <td bgcolor='#ffffff'> <table width='100%' cellpadding='0' cellspacing='0'> <tr> <td style='color:#FF6666; font-weight:bold'>¼Ò½º ùÁÙºÎÅÍ »ó´Ü body ű×(bodyÆ÷ÇÔ)±îÁö ÀÔ·ÂÇØÁÖ¼¼¿ä [php ÀԷ°¡´É]</td> </tr> <tr> <td><textarea name='top_content' style='width:98%; height:100'>$top_content</textarea> </tr> </table> </td> </tr> <tr height='150'> <td colspan='2' style='padding:10px; padding-top:5px' bgcolor='#ffffff'> <table width='100%' cellpadding='0' cellspacing='0'> <tr> <td style='color:#FF6666; font-weight:bold'>¡Ø º»¹®³»¿ëÀº ¹Ýµå½Ã body ÅÂ±× ¾ÈÂÊÀÇ ³»¿ëºÎºÐ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä [php ÀԷ°¡´É]<br> ¡Ø º»¹®³»¿ë ù ÁÙÀº php¼Ò½º¸¦ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. [ÀÔ·ÂÇÏ¼Å¾ß ÇÒ °æ¿ì »ó´Ü³»¿ë ¿¡ ÀÔ·ÂÇϼ¼¿ä]</td> </tr> <tr> <td>"; $e_height = 350; $folder = "file"; include"./editer/index.php"; echo" </td> </tr> </table> </td> </tr> <tr height='130'> <th>Çϴܳ»¿ë</th> <td bgcolor='#ffffff'> <table width='100%' cellpadding='0' cellspacing='0'> <tr> <td style='color:#FF6666; font-weight:bold'>ÇÏ´Ü body ű×(bodyÆ÷ÇÔ)ºÎÅÍ ¼Ò½º ¸¶Áö¸·ÁÙ ±îÁö ÀÔ·ÂÇØÁÖ¼¼¿ä [php ÀԷ°¡´É]</td> </tr> <tr> <td><textarea name='bottom_content' style='width:98%; height:100'>$bottom_content</textarea> </tr> </table> </td> </tr> <tr height='30'> <th>ÇÏ´ÜÀÎŬ·çµå</th> <td bgcolor='#ffffff'><input type='text' size='50' class=input1 name='bottom_include' value='$row[bottom_include]'></td> </tr> </form> </table> </td> </tr> <TR height='50'> <TD align=center> <INPUT TYPE=button value=' È® ÀÎ ' onclick='goods_check()' style='font-size:9pt'> <INPUT TYPE=button value=' ¸®½ºÆ® ' onClick=\"location.href=('$_SERVER[PHP_SELF]?amode=file_list&page=$page');\" style='font-size:9pt'></TD> </TR> </TABLE> "; ?>