getGlobalOption ( 'piwik_mode' )) { case 'php' : $PIWIK_URL = $protocol . ':' . $settings->getGlobalOption ( 'proxy_url' ); break; case 'cloud' : $PIWIK_URL = 'https://' . $settings->getGlobalOption ( 'piwik_user' ) . '.innocraft.cloud/'; break; case 'cloud-matomo' : $PIWIK_URL = 'https://' . $settings->getGlobalOption ( 'matomo_user' ) . '.matomo.cloud/'; break; default : $PIWIK_URL = $settings->getGlobalOption ( 'piwik_url' ); } if (substr ( $PIWIK_URL, 0, 2 ) == '//') $PIWIK_URL = (isset ( $_SERVER ['HTTPS'] ) ? 'https:' : 'http:') . $PIWIK_URL; $TOKEN_AUTH = $settings->getGlobalOption ( 'piwik_token' ); $timeout = $settings->getGlobalOption ( 'connection_timeout' ); $useCurl = ( (function_exists('curl_init') && ini_get('allow_url_fopen') && $settings->getGlobalOption('http_connection') == 'curl') || (function_exists('curl_init') && !ini_get('allow_url_fopen')) ); $settings->getGlobalOption ( 'http_connection' ); ini_set ( 'display_errors', 0 );