View file modules/user/delete_avatar.php
<? /********************************** * @package: PerfCMS * * @year: 2012 * * @author: Artas * * @link: http://perfcms.pp.ua * **********************************/ if(file_exists(ROOT.'/files/avatars/'.$user['nick'].'.png')) { unlink(ROOT.'/files/avatars/'. $user['nick'] .'.png'); } go('/user/avatar/'); ?>