update smarty check write permissions
update function isMobile
add missed file postcode.tpl