<?php
namespace wcf\acp\page;
use wcf\page\AbstractPage;
+use wcf\system\cache\builder\OptionCacheBuilder;
use wcf\system\package\PackageInstallationDispatcher;
+use wcf\system\request\LinkHandler;
use wcf\system\request\RequestHandler;
use wcf\system\WCF;
}
$recaptchaWithoutKey = false;
+ $recaptchaKeyLink = '';
if (CAPTCHA_TYPE == 'com.woltlab.wcf.recaptcha' && (!RECAPTCHA_PUBLICKEY || !RECAPTCHA_PRIVATEKEY)) {
$recaptchaWithoutKey = true;
+
+ $optionCategories = OptionCacheBuilder::getInstance()->getData(array(), 'categories');
+ $categorySecurity = $optionCategories['security'];
+ $recaptchaKeyLink = LinkHandler::getInstance()->getLink(
+ 'Option',
+ array(
+ 'id' => $categorySecurity->categoryID,
+ 'optionName' => 'recaptcha_publickey'
+ ), '#security.antispam'
+ );
}
WCF::getTPL()->assign(array(
'inRescueMode' => RequestHandler::getInstance()->inRescueMode(),
'recaptchaWithoutKey' => $recaptchaWithoutKey,
+ 'recaptchaKeyLink' => $recaptchaKeyLink,
'server' => $this->server,
'usersAwaitingApproval' => $usersAwaitingApproval
));
<item name="wcf.acp.index.woltlab.forums"><![CDATA[Supportforum]]></item>
<item name="wcf.acp.index.woltlab.tickets"><![CDATA[Ticket-Support]]></item>
<item name="wcf.acp.index.woltlab.pluginStore"><![CDATA[Plugin-Store]]></item>
- <item name="wcf.acp.index.recaptchaWithoutKey"><![CDATA[Die Nutzung von ReCAPTCHA ohne einen individuelle Website-Schlüssel wird von Google nicht mehr unterstützt.]]></item>
+ <item name="wcf.acp.index.recaptchaWithoutKey"><![CDATA[Die Nutzung von reCAPTCHA ohne einen individuelle Website-Schlüssel wird von Google nicht mehr unterstützt.<br><br>Für eine weitere Nutzung müssen Sie <a href="{$recaptchaKeyLink}">einen Schlüssel in den Optionen hinterlegen</a>, unterhalb des Eingabefeldes befindet sich eine Anleitung zum Anfordern des Schlüssels.]]></item>
</category>
<category name="wcf.acp.label">
<item name="wcf.acp.index.woltlab.forums"><![CDATA[Support Forums]]></item>
<item name="wcf.acp.index.woltlab.tickets"><![CDATA[Ticket Support]]></item>
<item name="wcf.acp.index.woltlab.pluginStore"><![CDATA[Plugin Store]]></item>
- <item name="wcf.acp.index.recaptchaWithoutKey"><![CDATA[Using ReCAPTCHA without an individual website key is no longer supported by Google.]]></item>
+ <item name="wcf.acp.index.recaptchaWithoutKey"><![CDATA[Using reCAPTCHA without an individual website key is no longer supported by Google.<br><br>For further use you need to <a href="{$recaptchaKeyLink}">provide a key in your options</a>, please follow the instructions below the input field to obtain a key.]]></item>
</category>
<category name="wcf.acp.label">