From cea900b8e345ae1b43678e07f75d50666224b6e6 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sun, 10 Dec 2023 10:56:51 +0100 Subject: [PATCH] Add captcha difficulty hard --- common_config.php | 2 +- www/index.php | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/common_config.php b/common_config.php index 63ba85e..1be302e 100644 --- a/common_config.php +++ b/common_config.php @@ -17,7 +17,7 @@ const VERSION = '1.1'; // Script version const DBVERSION = 8; // Database layout version const REQUIRE_APPROVAL = false; // require admin approval of new sites? true/false const CANONICAL_URL = 'https://onions.danwin1210.de'; // our preferred domain for search engines -const CAPTCHA = 0; // Captcha difficulty (0=off, 1=simple, 2=moderate, 3=extreme) +const CAPTCHA = 0; // Captcha difficulty (0=off, 1=simple, 2=moderate, 3=hard, 4=extreme) // Language selection const LANGUAGES = [ 'cs' => ['name' => 'čeština', 'locale' => 'cs_CZ', 'flag' => '🇨🇿', 'show_in_menu' => true, 'dir' => 'ltr'], diff --git a/www/index.php b/www/index.php index 2778c2a..cde0a21 100644 --- a/www/index.php +++ b/www/index.php @@ -536,6 +536,45 @@ function send_captcha(): void imagesetpixel($im, mt_rand(0, 55), mt_rand(0, 24), $dots); } echo '