self::EXTENSION_KEY, 'host' => GeneralUtility::getIndpEnv('HTTP_HOST'), 'key' => $key ]; $params = \http_build_query($params); $pingUrl = self::URL; $pingUrl .= $params !== '' ? (\strpos($pingUrl, '?') === FALSE ? '?' : '&') . $params : ''; if ($returnUrl) { return $pingUrl; } GeneralUtility::getUrl($pingUrl); } catch (\Exception $exception) { } return ''; } /** * Generates a random password string based on the configured password policies. * * @param ServerRequestInterface $request * @param ResponseInterface $response * @return ResponseInterface * @throws \InvalidArgumentException */ public function ajaxPing(ServerRequestInterface $request, ResponseInterface $response = NULL) { /** @var BackendUserAuthentication $backendUser */ $backendUser = $GLOBALS['BE_USER']; $moduleKey = 'tools_beuser/index.php/user-LfeditorLfeditor_pinged'; if ($backendUser && !$backendUser->getModuleData($moduleKey, 'ses')) { $backendUser->pushModuleData($moduleKey, TRUE); self::ping(); } if ($response === NULL) { $response = new NullResponse(); } return $response; } }