Added warning when using ReCAPTCHA w/o a key
authorAlexander Ebert <ebert@woltlab.com>
Mon, 5 Feb 2018 13:22:42 +0000 (14:22 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 5 Feb 2018 13:22:42 +0000 (14:22 +0100)
wcfsetup/install/files/acp/templates/index.tpl
wcfsetup/install/files/lib/acp/page/IndexPage.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index f60bbe28f5ad5145c632cf0d8b32c4870dcfacca..baef77b165733cce63444543bc079d2195c2dd0e 100644 (file)
        <p class="error">{lang}wcf.acp.index.tmpBroken{/lang}</p>
 {/if}
 
+{if $recaptchaWithoutKey}
+       <p class="error">{lang}wcf.acp.index.recaptchaWithoutKey{/lang}</p>
+{/if}
+
 {if $usersAwaitingApproval}
        <p class="info">{lang}wcf.acp.user.usersAwaitingApprovalInfo{/lang}</p>
 {/if}
index e34de6bea37c9c6f69e39a3c8c3104bee18e0087..59b827a847df5ca458bcfa35bc576c4d7be8fff3 100755 (executable)
@@ -61,8 +61,14 @@ class IndexPage extends AbstractPage {
                        $usersAwaitingApproval = $row['count'];
                }
                
+               $recaptchaWithoutKey = false;
+               if (CAPTCHA_TYPE == 'com.woltlab.wcf.recaptcha' && (!RECAPTCHA_PUBLICKEY || !RECAPTCHA_PRIVATEKEY)) {
+                       $recaptchaWithoutKey = true;
+               }
+               
                WCF::getTPL()->assign(array(
                        'inRescueMode' => RequestHandler::getInstance()->inRescueMode(),
+                       'recaptchaWithoutKey' => $recaptchaWithoutKey,
                        'server' => $this->server,
                        'usersAwaitingApproval' => $usersAwaitingApproval
                ));
index 008a8210667a820189fb6702708639460475eaf3..57f40466d574c43f951de642d6f7a469f5c885d8 100644 (file)
                <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>
        </category>
        
        <category name="wcf.acp.label">
index e8efef45298159049a5246fe9c700702962c00a7..4e178ec2c896908d3e7f5fdf48253f6b005506a9 100644 (file)
                <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>
        </category>
        
        <category name="wcf.acp.label">