Commit ec8c8901 authored by Manfred Kutas's avatar Manfred Kutas

ZP-860 Show Z-Push version in autodiscover.

Released under the Affero GNU General Public License (AGPL) version 3.
parent fc5bc5d3
...@@ -60,6 +60,7 @@ class ZPushAutodiscover { ...@@ -60,6 +60,7 @@ class ZPushAutodiscover {
*/ */
public static function DoZPushAutodiscover() { public static function DoZPushAutodiscover() {
ZLog::Write(LOGLEVEL_DEBUG, '-------- Start ZPushAutodiscover'); ZLog::Write(LOGLEVEL_DEBUG, '-------- Start ZPushAutodiscover');
ZLog::Write(LOGLEVEL_INFO, sprintf("Z-Push version='%s'", @constant('ZPUSH_VERSION')));
// TODO use filterevilinput? // TODO use filterevilinput?
if (stripos($_SERVER["REQUEST_METHOD"], "GET") !== false) { if (stripos($_SERVER["REQUEST_METHOD"], "GET") !== false) {
ZLog::Write(LOGLEVEL_WARN, "GET request for autodiscover. Exiting."); ZLog::Write(LOGLEVEL_WARN, "GET request for autodiscover. Exiting.");
...@@ -257,7 +258,7 @@ class ZPushAutodiscover { ...@@ -257,7 +258,7 @@ class ZPushAutodiscover {
} }
// set time zone // set time zone
// code contributed by Robert Scheck (rsc) // code contributed by Robert Scheck (rsc)
if(defined('TIMEZONE') ? constant('TIMEZONE') : false) { if(defined('TIMEZONE') ? constant('TIMEZONE') : false) {
if (! @date_default_timezone_set(TIMEZONE)) if (! @date_default_timezone_set(TIMEZONE))
throw new FatalMisconfigurationException(sprintf("The configured TIMEZONE '%s' is not valid. Please check supported timezones at http://www.php.net/manual/en/timezones.php", constant('TIMEZONE'))); throw new FatalMisconfigurationException(sprintf("The configured TIMEZONE '%s' is not valid. Please check supported timezones at http://www.php.net/manual/en/timezones.php", constant('TIMEZONE')));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment