Replaced non existing variable $now with mktime().
Fixes #167
Merge pull request #168 from chixor/master

Replaced non existing variable $now with mktime().