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'
Remove requirement of ticket id in subject line

This patch affords an administrator the ability to remove the
[#%{ticket.number}] from the email template subject line for the new ticket
autoresponse and the new message autoresponse. Previously, the ticket number
with a prefixed hash in brackets was used to identify which ticket thread an
email was in reference to.

With this patch, the email message-id (which was already kept on file) is
sent in the MIME "References" header. When a user responds to and
autoresponse email, the "References" will include this message-id in the
return email. The ticket thread is then matched up with the email based on
the message-id rather than the subject line.

Ticket numbers are still supported in the subject line, in the event that
non-compliant email clients do not properly include the References header.
Merge pull request #688 from greezybacon/feature/message-id-tracking

Remove requirement of external-ticket-id in subject line

Reviewed-With: Peter Rotich <peter@osticket.com>
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>