Various code cleanups #2

Merged
merged 3 commits into from Oct 21, 2011
Commits on Oct 18, 2011
  1. @scottmac

    time() is always UTC

    scottmac committed Oct 18, 2011
    Summary:
    Fix warning caused when no timezone is set, PHP always returs time() as UTC.
    
    Test Plan:
    Ran tests, everything still passes.
    Switched timezone on computer between UK and EST. Everything still passes.
  2. @scottmac

    Add BSD license to header

    scottmac committed Oct 18, 2011
    Summary:
    In case the seperate license file gets lost, add the license to the header
  3. @scottmac

    Set sensible defaults for a Windows of times

    scottmac committed Oct 18, 2011
    Summary:
    Fix E_NOTICE error about undefined variables
    Set a default of -1, current and future otp for comparison