Bug Fix $ Security update

File Upload Security Update:
-Check filename chars and lenght
-Folder .htaccess update

function.php and view.php bug fix