Merge branch 'hotfix/kb'
Merge branch 'release/v1.7-RC3'
Merge branch 'release/v1.7-RC4'
Merge branch 'release/1.7-RC5'
Merge branch 'release/v1.7-RC6'
Merge branch 'release/1.7.0'
Make phone ext optional for XML API

Previously, the @ext attribute for the phone number field was assumed to be
included. An XML payload without the @ext attribute would have been
corrupted to include only the first digit of the phone number, which would
fail validation.

This patch correctly handles the XML payload without the @ext attribute for
the phone number. Subsequently, the <phone_ext> element is now also valid
(and optional as well).

Fixes #670
Update client.inc.php incorrect behaviour in offline mode

With ./, if called from knowledge base, it searches incorrectly offline.php in that folder.
Merge remote branch 'upstream/develop'
Fixup message-id tracking for piped emails
Properly detect and handle empty address lists

The mainly comes in when a MIME header which might contain a list of email
addresses (like Reply-To) is to be parsed, but is empty. The Mail_RFC822
class would return an empty mailbox @ localhost (where 'localhost' is the
default default_domain for mail address list parsing).
Don't send emails for non-existent table

When an admin logs in to upgrade to 1.7.1 and further from a version
pervious to 1.7.1, the system will attempt to clear password reset tokens
from the config table, which hasn't been upgraded yet to the namespaced
version from 1.7.1
ROOT_DIR should be used to identify filesystem paths

Historically, ROOT_PATH and ROOT_DIR contained the same value; however,
ROOT_PATH now points to the URL path where osTicket is installed, whereas
ROOT_DIR points to the file system location where osTicket is installed.
Use the correct Content-Type header for CAPTCHA

Some security inspection appliances and load balancers don't appreciate
something in the HTTP headers that is not a valid HTTP header. Furthermore,
the browser needs the Content-Type header to identify that the image is not
the PHP default of text/html
Update client.inc.php
Merge pull request #696 from greezybacon/issue/squelch-pre-upgrade

Don't send emails for non-existent table

Reviewed-By: Peter Rotich <peter@osticket.com>
Include setup/tips.html in download package
Merge pull request #698 from greezybacon/issue/root-dir

ROOT_DIR should be used to identify filesystem paths

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #699 from greezybacon/issue/captcha-header

Use the correct Content-Type header for CAPTCHA

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #693 from greezybacon/issue/670

Make phone ext optional for XML API

Reviewed-By: Peter Rotich <peter@osticket.com>