dashboard_url) { return $config->dashboard_url; } } require_once('./server/inc/require.php'); require_once('./server/inc/include.php'); require_once('./server/inc/exception.php'); require_once('./server/inc/defines.php'); $api = createobject('api'); $cloudapi_hostname = $api->getProperty('c_cloudapi_hostname'); if (!$cloudapi_hostname) { $cloudapi_hostname = 'api.icewarp.com/v1'; } if (!preg_match('/\/v\\d+\/?$/', $cloudapi_hostname)) { $cloudapi_hostname .= '/v1'; } $cloudapi_hostname = preg_replace('/^https?:\/\//', '', $cloudapi_hostname); try { $dashboard_url = json_decode(file_get_contents("http" . ($_SERVER['HTTPS'] === 'on' ? 's' : '') . "://$cloudapi_hostname/service/dashboard_url")); } catch (Exception $e) {} if ($dashboard_url) { return $dashboard_url; } return 'https://webui.icewarp.com/v1/'; } ?> IceWarp Dashboard