Update for func.php

additional logic for wrintig the timezone to config file.
Fixed "unreachable" statement in ls()