Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

captcha_recaptcha.php

Zuletzt modifiziert: 02.04.2025, 15:02 - Dateigröße: 4.20 KiB


01  <?php
02  /**
03  *
04  * This file is part of the phpBB Forum Software package.
05  *
06  * @copyright (c) phpBB Limited <https://www.phpbb.com>
07  * @license GNU General Public License, version 2 (GPL-2.0)
08  *
09  * For full copyright and license information, please see
10  * the docs/CREDITS.txt file.
11  *
12  */
13   
14  /**
15  * DO NOT CHANGE
16  */
17  if (!defined('IN_PHPBB'))
18  {
19      exit;
20  }
21   
22  if (empty($lang) || !is_array($lang))
23  {
24      $lang = [];
25  }
26   
27  // DEVELOPERS PLEASE NOTE
28  //
29  // All language files should use UTF-8 as their encoding and the files must not contain a BOM.
30  //
31  // Placeholders can now contain order information, e.g. instead of
32  // 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
33  // translators to re-order the output of data while ensuring it remains correct
34  //
35  // You do not need this where single placeholders are used, e.g. 'Message %d' is fine
36  // equally where a string contains only two placeholders which are used to wrap text
37  // in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
38   
39  $lang = array_merge($lang, [
40      // Find the language/country code on https://developers.google.com/recaptcha/docs/language
41      // If no code exists for your language you can use "en" or leave the string empty
42      'RECAPTCHA_LANG'                => 'en-GB',
43   
44      'CAPTCHA_RECAPTCHA'                => 'reCaptcha v2',
45      'CAPTCHA_RECAPTCHA_V3'            => 'reCaptcha v3',
46   
47      'RECAPTCHA_INCORRECT'                => 'The solution you provided was incorrect',
48      'RECAPTCHA_NOSCRIPT'                => 'Please enable JavaScript in your browser to load the challenge.',
49      'RECAPTCHA_NOT_AVAILABLE'            => 'In order to use reCaptcha, you must create an account on <a href="https://www.google.com/recaptcha">www.google.com/recaptcha</a>.',
50      'RECAPTCHA_INVISIBLE'                => 'This CAPTCHA is actually invisible. To verify that it works, a small icon should appear in right bottom corner of this page.',
51      'RECAPTCHA_V3_LOGIN_ERROR_ATTEMPTS'    => 'You have exceeded the maximum number of login attempts allowed.<br>In addition to your username and password the invisible reCAPTCHA v3 will be used to authenticate your session.',
52   
53      'RECAPTCHA_PUBLIC'                => 'Site key',
54      'RECAPTCHA_PUBLIC_EXPLAIN'        => 'Your site reCAPTCHA key. Keys can be obtained on <a href="https://www.google.com/recaptcha">www.google.com/recaptcha</a>. Please, use reCAPTCHA v2 &gt; Invisible reCAPTCHA badge type.',
55      'RECAPTCHA_V3_PUBLIC_EXPLAIN'    => 'Your site reCAPTCHA key. Keys can be obtained on <a href="https://www.google.com/recaptcha">www.google.com/recaptcha</a>. Please, use reCAPTCHA v3.',
56      'RECAPTCHA_PRIVATE'                => 'Secret key',
57      'RECAPTCHA_PRIVATE_EXPLAIN'        => 'Your secret reCAPTCHA key. Keys can be obtained on <a href="https://www.google.com/recaptcha">www.google.com/recaptcha</a>. Please, use reCAPTCHA v2 &gt; Invisible reCAPTCHA badge type.',
58      'RECAPTCHA_V3_PRIVATE_EXPLAIN'    => 'Your secret reCAPTCHA key. Keys can be obtained on <a href="https://www.google.com/recaptcha">www.google.com/recaptcha</a>. Please, use reCAPTCHA v3.',
59   
60      'RECAPTCHA_V3_DOMAIN'                => 'Request domain',
61      'RECAPTCHA_V3_DOMAIN_EXPLAIN'        => 'The domain to fetch the script from and to use when verifying the request.<br>Use <samp>recaptcha.net</samp> when <samp>google.com</samp> is not accessible.',
62   
63      'RECAPTCHA_V3_METHOD'                => 'Request method',
64      'RECAPTCHA_V3_METHOD_EXPLAIN'        => 'The method to use when verifying the request.<br>Disabled options are not available within your setup.',
65      'RECAPTCHA_V3_METHOD_CURL'            => 'cURL',
66      'RECAPTCHA_V3_METHOD_POST'            => 'POST',
67      'RECAPTCHA_V3_METHOD_SOCKET'        => 'Socket',
68   
69      'RECAPTCHA_V3_THRESHOLD_DEFAULT'            => 'Default threshold',
70      'RECAPTCHA_V3_THRESHOLD_DEFAULT_EXPLAIN'    => 'Used when none of the other actions are applicable.',
71      'RECAPTCHA_V3_THRESHOLD_LOGIN'                => 'Login threshold',
72      'RECAPTCHA_V3_THRESHOLD_POST'                => 'Post threshold',
73      'RECAPTCHA_V3_THRESHOLD_REGISTER'            => 'Register threshold',
74      'RECAPTCHA_V3_THRESHOLD_REPORT'                => 'Report threshold',
75      'RECAPTCHA_V3_THRESHOLDS'                    => 'Thresholds',
76      'RECAPTCHA_V3_THRESHOLDS_EXPLAIN'            => 'reCAPTCHA v3 returns a score (<samp>1.0</samp> is very likely a good interaction, <samp>0.0</samp> is very likely a bot). Here you can set the minimum score per action.',
77      'EMPTY_RECAPTCHA_V3_REQUEST_METHOD'            => 'reCAPTCHA v3 requires to know which available method you want to use when verifying the request.',
78  ]);
79