300000) { back("»çÁøÅ©±â´Â300,000 ¹ÙÀÌÆ®¸¦ ³ÑÀ»¼ö ¾øÀ¾´Ï´Ù."); } // echo "$photo_size"; $file_tail=substr(strrchr($photo_name,"."),1); //ÆÄÀÏ È®ÀåÀÚ ±¸Çϱâ. $file_tail=strtoupper($file_tail); if($file_tail != 'JPG' && $file_tail != 'GIF') { back("È®ÀåÀÚ°¡ JPG,GIF È­Àϸ¸ ¿Ã¸±¼ö ÀÖÀ¾´Ï´Ù."); } /***************************************************************** $photo_name=addslashes($photo_name); $photo_name=ereg_replace(" ","",$photo_name); $photo_name=ereg_replace("\|","",$photo_name); $photo_dir="./photo/".$photo_name; $exitst=file_exists("./photo/$photo_name"); if($exitst) { back("¼±ÅÃÇϽŠÆÄÀÏ°ú µ¿ÀÏÇÑ À̸§ÀÇ ÆÄÀÏÀÌ ÀÌ¹Ì Á¸ÀçÇÕ´Ï´Ù."); } *******************************************************************/ $photo_dir="./photo/".date("U").$s_id.".".$file_tail; // alert($photo_dir); } // eof if (isset($photo)) $line = explode("\n",$comment); $line_count = sizeof($line); $signdate = time(); ######### Á¦¸ñ°ú º»¹®ÀÇ ¹®ÀÚ¿­¿¡ Æ÷ÇÔµÈ Æ¯¼ö¹®ÀÚ¸¦ escape½ÃŲ´Ù. ########## $subject = htmlspecialchars($subject); if($comment_is_html=='N') { $comment=htmlspecialchars($comment); } ########## µ¥ÀÌÅͺ£À̽º¿¡ ÀԷ°ªÀ» »ðÀÔÇÑ´Ù. ########## if(isset($photo) && !empty($photo_name)) { //»çÁøÀ» ¿Ã·ÈÀ¸¸é $query = "update $boardid set subject='$subject',comment='$comment',signdate=$signdate,ip='$REMOTE_ADDR',line_count=$line_count,photo='$photo_dir' where uid=$uid"; } else { $query = "update $boardid set subject='$subject',comment='$comment',signdate=$signdate,ip='$REMOTE_ADDR',line_count=$line_count where uid=$uid"; } $result = mysql_query($query,$connect); if(!$result) { alert("$query"); back('Àμ­Æ® ¿¡·¯'); } if(isset($photo_name) && !empty($photo_name)) { //»çÁøÀ» ¿Ã·ÈÀ¸¸é if(!copy($photo,$photo_dir)) { back("ÆÄÀÏÀ» ÁöÁ¤ÇÑ µð·ºÅ丮¿¡ º¹»çÇϴµ¥ ½ÇÆÐÇßÀ¾´Ï´Ù."); } if(!unlink($photo)) { back("ÀÓ½ÃÆÄÀÏÀ» »èÁ¦Çϴµ¥ ½ÇÆÐÇß½À´Ï´Ù."); } } if($key_field) { goto_refresh_page("search.html?boardid=$boardid&where=$where&page=$page&key=$key&key_field=$key_field",0); } else { goto_refresh_page("list.html?boardid=$boardid&where=$where&page=$page",0); } } ?> ¼Ò±¸¸® ¹®È­Áöµµ - ¿ì¸®¼Ò½Ä °Ô½ÃÆÇ ±Û°íÄ¡±â
´ë/ÇÑ/¹Î/±¹
¹®/È­/Áö/µµ

¿ì¸®¼Ò½Ä ±Û°íÄ¡±â

method=post enctype=multipart/form-data>
Á¦¸ñ    > TEXT > HTML
³»¿ë
 

»çÁø÷ºÎ  

> >      &where=>¸ñ·Ïº¸±â





¼Ò±¸¸® ¹®È­Áöµµ ÀÚ¹ßÀûÀ¯·áÈ­ Âü¿©Çϱâ *__^ µµ/½Ã/¿©/Çà
¼­/¿ï/¿©/Çà