Fix XSS Vulnerability In "tpl.inc.php"

Another area was also outputting the unsanitized value.
pages: Fix incorrect lookup of inline images

In some cases, a POST might be sent to the server and there be no draft. In
such a case, neither the draft nor the body of the page can be inspected for
images. Even worse, in some cases the previous images might be unlinked from
the article without being relinked. Therefore, the images will no longer be
linked to the page and will likely be purged from the system.
Fix #1302. 

Fix issue that fails for get names on incorrect formats. Ex: J.Everybody
Merge pull request #1288 from greezybacon/oops/page-images

pages: Fix incorrect lookup of inline images

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1310 from eleazan/patch-2

Fix #1302.

Reviewed-By: Peter Rotich <peter@osticket.com>
bug: Make sure properties field exist

Add ticket status properties field before loading init data.
redactor: Add right-to-left support
Merge pull request #1318 from protich/issue/1316

bug: Add ticket status properties field exist before loading initial data

Reviewed-By: Jared Hancock <jared@osticket.com>
forms: Support non-US locale on client portal

The staff portal has a feature where the date fields are converted to
YYYY-MM-DD prior to form submission. However, this code was not ported to
the client portal. Therefore, for non-US date formats (d/m/Y for instance)
would not be processed properly by the server and would be nulled prior to
validation.
Merge pull request #1320 from greezybacon/issue/client-portal-date-fields

forms: Support non-US locale on client portal

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #1319 from greezybacon/feature/redactor-rtl

redactor: Add right-to-left support

Reviewed-By: Peter Rotich <peter@osticket.com>
bug: Fix sprintf mishap
Add database name and schema to info page

Improve info display & formatting
Only show 8 chars of the last commit
Merge pull request #1323 from protich/feature/db-info

Add database name and schema signature to the system info page

Reviewed-By: Jared Hancock <jared@osticket.com>
forms: Add free text field

This is similar to the section break but doesn't have the <hr> element
before it and allows for HTML input (including images)
oops: Fix render of multiselect widget
Merge remote branch 'upstream/develop' into develop-next

Conflicts:
	js/osticket.js
Add concept of client-only form fields
oops: Fix syntax error in scp/pages
Merge branch 'develop' into develop-next