From c6390e9bb14747de2bc894f817fc6373a7deddaf Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Thu, 5 Sep 2024 21:39:40 +0200 Subject: Add contact form --- cgi/captcha.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 cgi/captcha.php (limited to 'cgi/captcha.php') diff --git a/cgi/captcha.php b/cgi/captcha.php new file mode 100755 index 0000000..6881063 --- /dev/null +++ b/cgi/captcha.php @@ -0,0 +1,39 @@ +setInterpolation(false); +$builder->build(256, 64); +$_SESSION["captcha_phrase"] = $builder->getPhrase(); + +if ($mode === "captcha") { + echo ''; + exit; +} + +if ($mode === "captchaimg") { + header("Content-Type: image/jpeg"); + $builder->save(null, 40); + exit; +} -- cgit v1.2.3