changed the link of attachments in obtainfiles.php and a  bit of changes in studentfiles.php