Remove "Howdy" as the salutation - no sense of humor in this world!
Forbid message loops for alert messages

If an alert message manages to loop back into the ticketing system, refuse
posting to the ticket thread. Technically, the message should be marked as
an auto-response message; however, auto-response messages should usually be
allowed to be appended to the ticket thread.

This patch will check if the From email header cites an email address that
is a system email address (visible in the Emails section of the Admin
Panel). If it is, the email is completely ignored.
Turn off display_errors for releases
Revisit root path to better handle chrooted installs

Also, allow for the administrator to manually define the ROOT_PATH in the
config file (the very last mile).
Document osTicket::get_root_path()
Merge pull request #716 from protich/feature/root_path_revisited

Feature/root path revisited -- hopefully this issue will die here

Reviewed-By: Jared Hancock <jared@osticket.com>
Merge pull request #713 from protich/issue/howdy

Remove "Howdy" as the salutation - no sense of humor in this world!

Reviewed-By: Jared Hancock <jared@osticket.com>
Add random string generator to Crypto lib to replace Crypt_Random which uses
and restarts PHP SESSION
Add some regression tests for the random data
Merge pull request #712 from protich/feature/crypto-random

Add random string generator to Crypto

Reviewed-By: Jared Hancock <jared@osticket.com>
Merge pull request #717 from greezybacon/issue/release-error-reporting

Turn off display_errors for releases

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #714 from greezybacon/issue/thread-alert-loop

Forbid message loops for alert messages

Reviewed-By: Peter Rotich <peter@osticket.com>
Fix THIS_VERSION clobbering
Fixup PEAR file include, and ROOT_PATH (again)
Merge remote branch 'upstream-1.7/develop' into develop

Include changes from 1.7.1.2

Conflicts:
	main.inc.php
Oops. Remove double class.osticket.php include
Fix up ROOT_PATH, yet again

The previous implementation did not work correctly for symlinked folders.
The new approach uses debug_backtrace() and ROOT_DIR to determine the
difference between ROOT_DIR and the osTicket installation path.

This thing is like a turd that won't flush
Fixes cookie domain specification

if the domain given in HTTP_HOST variable happens to have a port
specification. Technically, the port specification should not be included in
the domain spec given in the cookie.

(And for the record, that makes no sense to me, seeing as a cookie would
otherwise be valid for all servers on any ports at a particular domain).
Avoid double-encoding thread titles

This is safe now, because the title is appropriately encoded in
class.thread.php/ThreadEntry::create()

Fixes #567, #718
Fixes ROOT_PATH detection on Windows

Also converts ROOT_DIR detection to always use forward slashes. And it fixes
the removal of the leading double-backslash on Windows UNC names (fixes #649)