diff --git a/i_entrance/manage/deletePost.php b/i_entrance/manage/deletePost.php index a80bdee6..d30a9899 100644 --- a/i_entrance/manage/deletePost.php +++ b/i_entrance/manage/deletePost.php @@ -39,8 +39,8 @@ if($dt == $rf) { $response['result'] = 'FAIL'; } else { $DB->Update('MEMBER', "PICTURE='', IMGSVR=0", "NO='{$SESSION->NoMember()}'"); - if(file_exists($dest)){ - @unlink($dest); + if(file_exists(__DIR__.'/'.$dest)){ + @unlink(__DIR__.'/'.$dest); } for($i=0; $i < $_serverCount; $i++) { diff --git a/i_entrance/manage/iconPost.php b/i_entrance/manage/iconPost.php index cc88251f..79f4b20d 100644 --- a/i_entrance/manage/iconPost.php +++ b/i_entrance/manage/iconPost.php @@ -78,8 +78,8 @@ if(!is_uploaded_file($image['tmp_name'])) { $response['msg'] = '업로드에 실패했습니다!'; $response['result'] = 'FAIL'; } else { - if(file_exists($old_path)){ - @unlink($old_path); + if(file_exists(__DIR__.'/'.$old_path)){ + @unlink(__DIR__.'/'.$old_path); } $pic = "{$newPicName}?={$rf}"; $DB->Update('MEMBER', "PICTURE='{$pic}', IMGSVR=1", "NO='{$SESSION->NoMember()}'");