Remove 'getmicrotime' function and replace it with 'microtime'
Use new Smarty3 API
Do not set whole smarty plugins dir ectoryarray; just add the extra directory
Add missing quotes to included filenames of templates
Use correct template dir