File/program/version.php

Description

'version.php' defines internal and external version numbers

The following constants are defined in this file:

  • WAS_VERSION - the internal version number, e.g. 2008020100
  • WAS_RELEASE - the external version number, e.g. 1.0 or 1.0.0
  • WAS_RELEASE_DATE - the date that the distribution files were generated
  • WAS_ORIGINAL - indicates the original (TRUE) or a modified version (FALSE) of this program
WAS_VERSION is used to see if the database version matches the program version. A difference between the two versions indicates an incomplete update. The version number is of the form yyyymmddxx where yyyymmdd is a date and the number xx is an auxiliary number that may or may not carry an extra meaning. WAS_VERSION is always greater than WAS_VERSION in a previous release of Website@School.

WAS_RELEASE is a free-format human-readable string indicating the the version of the program. It could take the form major.minor or major.minor.patchlevel.

WAS_RELEASE_DATE is the date on which the distribution package was generated. This date is set by editing this file version.php 'on the fly' from the makedist.sh script (see /devel/tools/makedist.sh).

WAS_ORIGINAL is a flag which indicates the original version (value TRUE) or a modified version (value FALSE) of the program. The License Agreement for Website@School states:

"In accordance with section 7(c) modified versions of the Program must clearly be marked in reasonable ways as different from the original version without misrepresenting the origin of the Program. This must be done by adding the phrase "Based on Website@School" to the Appropriate Legal Notices."

By defining WAS_ORIGINAL to FALSE, the phrase 'Powered by Website@School' in the interactive user interfaces will morph into 'Based on Website@School' automagically. The file '/program/about.html' should still be edited, though.

Constants
WAS_ORIGINAL = TRUE (line 76)

A boolean flag indicating this is either the original (TRUE) or a modified (FALSE) version of Website@School

WAS_RELEASE = 1.0.0 (line 68)

The external version number, like 1.0 or 1.0.0

WAS_RELEASE_DATE = 2016-06-29 (line 72)

Date of distribution file generation in ISO 8601 format: yyyy-mm-dd OR yyyy-mm-ddThh:mm:ss+0000

WAS_VERSION = 2016062900 (line 64)

The internal version number, like 2008012873 or 2008020100 (31 bits will work until the year 2147)

  • usedby: error_exit() - indicate internal version in 'cryptic' message

Documentation generated on Tue, 28 Jun 2016 19:12:40 +0200 by phpDocumentor 1.4.0