formButtons = false; } public function form() { global $Language; if (!pluginEnabled('API')) { $html = '
Enable the plugin API to use this plugin.
'; } else { $this->pingBludit(); $html = '
Your Site is in sync with Bludit Discovery.
'; } return $html; } private function pingBludit() { global $plugins; $API = $plugins['all']['pluginAPI']; $APIToken = $API->getValue('token'); $url = 'https://ping.bludit.com?site='.urlencode(DOMAIN_BASE).'&token='.urlencode($APIToken); TCP::http($url, $method='GET', $verifySSL=true, $timeOut=4, $followRedirections=false, $binary=false, $headers=false); } }