function checkconnections() { $url = JURI::root(); $result = rsseoHelper::checkconnections($url); if (empty($result->err) && !empty($result->ok)) { $ok = implode(',', $result->ok); JError::raiseNotice(200, 'Connection with "' . $ok . '" successfully'); } if (empty($result->ok) && !empty($result->err)) { JError::raiseWarning(500, 'Your server does not accept loopback connections.Click <a href="http://www.rsjoomla.com/customer-support/documentations/73-troubleshooting/417-how-can-you-use-rsseo-without-loopback-connections.html" target="_blank">here</a> for more informations about this problem.'); } if (!empty($result->err)) { $err = implode(',', $result->err); $ok = implode(',', $result->ok); JError::raiseWarning(500, 'Could not connect using "' . $err . '" but could connect with "' . $ok . '"'); } echo 'Click <a href="index.php?option=com_rsseo">here</a> to go to RSSeo! Control Panel'; }