use time() instead of mktime()

As of PHP 5.1, when called with no arguments, mktime() throws an E_STRICT notice: use the time() function instead.