Update credits and mailmap
Update version to 1.3.0-beta.1
Disable admin_checks if admin folder doesn't exist

Fixes #17958
Fix 17959: Upgrade unattended produces a warning
Documentation: fix typo and syntax in user management

Fixes #17964
Don't expand reporters by default in update page

For performance reasons with update issue pages, we should revert
back to 1.2.x behavior where we don't populate the combobox of
reporters by default.  This is in order to reduce database load and
improve performance for instances with large number of reporters.

This change is also designed to make sure that search engine crawlers
don't expand such list and hence avoiding the database load.

In the future, we should use jquery auto-complete or similar control.
We could also possibly add a configuration option or cache a session
variable that determines whether to expand the list by default.  This
can be useful for instances with small number of reporters.

Fixes #17944
New API current_user_set()

The function sets the $g_cache_current_user_id global variable, and
clears the user preferences cache ($g_cache_current_user_pref) if
necessary.

Using this new API to set the current user as opposed to working with
$g_cache_current_user_id makes sure we always get the correct data from
get_user_pref().

Resolves an issue where the order (as well as the number) of bugnotes in
email notifications is based on the user who triggered the action,
instead of the email's recipient.

Fixes #17925 (porting 559ba4e43a2dc6c9f8fd6491f6279379734ac549)
Fix #17751: add 'UTC' to timezone selection list

Also fixes the list for timezones containing a '/' in the name (e.g.
Argentina/xxx)
Fix timezone initialization in core.php

Prior to this, core.php would trigger a PHP warning on PHP >= 5.3 when
date_default_timezone_get() is not able to determine the timezone and
defaults to UTC (e.g. when php.ini date.timezone is not set).

The timezone is determined in the following order
  1. user preferences
  2. MantisBT configuration ($g_default_timezone)
  3. php.ini setting (date.timezone)
  4. UTC (set by date_default_timezone_get())

Fixes #17747
Revised admin check for $g_default_timezone

- Clarification of messages, added links to PHP documentation
- When default timezone is null, issue warning instead of failure and
  indicate defaulting to UTC
Update documentation for $g_default_timezone
Additional timezone init fixes

Implements additional fixes submitted by grangeway in PR #387

- Set installer_db_now() timezone to UTC
- Remove timezone_identifiers_list() existence checks
  These checks are obsolete, there were implemented to cover RHEL/CentOS
  under PHP 5.1 and we now require 5.3.
- Travis: set timezone to UTC

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Set default timezone in install.php
Improve Timezone initialization, default to UTC

Fixes https://github.com/mantisbt/mantisbt/pull/382
Upgrade PHPMailer to 5.2.7

This is a prerequisite to fix issue #16894, for which we need the revised
validateAddress() method with selection of validation pattern.

See changelog.md for full details
Allow choice of email validation method

Following implementation of 50d235ad101f61a6c6888316e827fd225ad4b9cd the
validation of email addresses was done by PHPMailer::validateAddress()
instead of filter_var() with FILTER_SANITIZE_EMAIL to allow RFC5322-
compliant emails like 'user@domain' that are rejected by PHP's method
which only accepts 'user@domain.tld'.

However, these 'top-level-domain-only' addresses are often considered as
invalid by SMTP servers but there is a strong use-case for them in
intranet environments.

To enable both scenarios, this commit introduces new constants for
$g_validate_email, allowing the admin to pick whether they want
validation using the PHP method (default) or strict RFC5322.

Backwards compatibility is maintained because EMAIL_VALIDATE_PHP == ON,
and validation can still be disabled with OFF.

Fixes #16894
Added logging to email_is_valid()
Upgrade PHPMailer to 5.2.8

This implements the HTML5-spec email validation pattern, which is what
we will be using with validateAddress() as per discussion in pull
request https://github.com/mantisbt/mantisbt/pull/172.

See changelog.md for full details
Add HTML5 email validation method (as default)

As per grangeway's suggestion in pull request
https://github.com/mantisbt/mantisbt/pull/172, we are now using an HTML5
specification-compliant regex to validate e-mail addresses by default
instead of PHP method.

Issue #16894
Upgrade PHPMailer to 5.2.9

See changelog.md for full details

Fixes #17717