first
This commit is contained in:
29
modules/member/action/a.member_photo_delete.php
Normal file
29
modules/member/action/a.member_photo_delete.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
if (!$my['uid'])
|
||||
{
|
||||
getLink('','','정상적인 접근이 아닙니다.','');
|
||||
}
|
||||
|
||||
if (is_file($g['path_file'].'avatar/'.$my['photo']))
|
||||
{
|
||||
unlink($g['path_file'].'avatar/'.$my['photo']);
|
||||
}
|
||||
getDbUpdate($table['s_mbrdata'],"photo=''",'memberuid='.$my['uid']);
|
||||
|
||||
// getLink('','parent.','삭제되었습니다.','');
|
||||
?>
|
||||
|
||||
<script>
|
||||
parent.$('[data-role="avatar"]').attr('src',parent.rooturl + '/files/avatar/0.svg');
|
||||
parent.$('[data-role="avatar-wrapper"]').removeClass('active')
|
||||
setTimeout(function(){
|
||||
parent.$.notify({message: '아바타가 삭제되었습니다.'},{type: 'default'});
|
||||
}, 500);
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
exit;
|
||||
?>
|
||||
Reference in New Issue
Block a user