Provide get_uptime_sec in a common include file

so it is available to anything that cares.
Call get_uptime_sec from functions.inc.php

to avoid code duplication
Merge pull request #787 from phil-davis/master

Provide get_uptime_sec in a common include file