@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/board_move.php
<? include"$_SERVER[DOCUMENT_ROOT]/board/inc/config.php"; if($mode == "move"){ $sql = "select * from board where id='$id' "; $row = mysql_fetch_array(mysql_query($sql)); if($row[filename]){ $file = explode(",", $row[filename]); for($i=0; $i<sizeof($file); $i++){ @rename("$_SERVER[DOCUMENT_ROOT]/board/data/$old_db/$file[$i]", "$_SERVER[DOCUMENT_ROOT]/board/data/$new_db/$file[$i]"); } } $sql = "update board set db='$new_db' where id='$id' "; mysql_query($sql); echo" <script> alert('°Ô½Ã¹° À̵¿À» ¿Ï·á ÇÏ¿´½À´Ï´Ù. '); opener.location.replace('$path?db=$old_db'); self.close(); </script>"; exit; } $file = file("$_SERVER[DOCUMENT_ROOT]/board/data/$db.cfg"); $bdata = explode("|*|",$file[0]); echo" <html> <head> <title>°Ô½Ã¹° À̵¿</title> <style> table, tr, td {font-size:10pt} </style> <script> function fchk(){ if(!form.new_db.value){ alert('°Ô½Ã¹°À» À̵¿ÇÏ½Ç °Ô½ÃÆÇÀ» ¼±ÅÃÇØÁÖ¼¼¿ä'); form.new_db.focus(); return false; } form.submit(); } </script> </head> <body topmargin='30' leftmargin='20'> <table width='100%' height='100%' cellpadding='0' cellspacing='0' border='0'> <tr> <td valign='top'> <table width='100%' cellpadding='0' cellspacing='0' border='0'> <form name='form' method='post' action='?'> <input type='hidden' name='mode' value='move'> <input type='hidden' name='id' value='$id'> <input type='hidden' name='old_db' value='$db'> <input type='hidden' name='path' value='$path'> <tr height='24'> <td>¡Ø ¼±ÅÃÇϽŠ°Ô½Ã¹°À» <font color='#0000FF'>$bdata[1]</font> ¿¡¼</td> </tr> <tr height='24'> <td><select name='new_db' style='font-size:10pt'> <option value=''>:: °Ô½ÃÆÇ ¼±Åà ::</option>"; exec("ls $_SERVER[DOCUMENT_ROOT]/board/data/", $dir); while(list($key, $val) = each($dir)){ if(!is_dir("$_SERVER[DOCUMENT_ROOT]/board/data/$val") || $val == $db) continue; $file = file("$_SERVER[DOCUMENT_ROOT]/board/data/$val.cfg"); $exp=explode("|*|",$file[0]); echo"<option value='$val'>$exp[1]</option>"; } echo" </select>À¸·Î À̵¿ÇÕ´Ï´Ù.</td> </tr> <tr> <td> </td> </tr> <tr align='center'> <td> <input type='button' value=' È® ÀÎ ' onclick='fchk()' style='font-size:9pt'> <input type='button' value=' Ãë ¼Ò ' onclick='self.close()' style='font-size:9pt'> </td> </tr> </form> </table> </td> </tr> </table> <body> </html>"; ?>