업로드 파일명 코드 변경

This commit is contained in:
chicpro
2015-11-10 14:26:17 +09:00
parent 2c866ef2bb
commit 7324ab1060
3 changed files with 13 additions and 2 deletions

View File

@ -2914,6 +2914,17 @@ function get_safe_filename($name)
return $name;
}
// 파일명 치환
function replace_filename($name)
{
@session_start();
$ss_id = session_id();
$usec = get_microtime();
$ext = array_pop(explode('.', $name));
return sha1($ss_id.$_SERVER['REMOTE_ADDR'].$usec).'.'.$ext;
}
// 아이코드 사용자정보
function get_icode_userinfo($id, $pass)
{