-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The default captcha is cutting down spam a bit, but some is getting through. The following has some advice... dapphp/securimage#66 https://www.phpcaptcha.org/documentation/setting-options/ ... but regardless of that I find the math problems as a sender less annoying to solve. Lets give this a try for a bit.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
// Our configured variant of securimage/securimage_show.php | ||
|
||
require_once dirname(__FILE__) . '/securimage/securimage.php'; | ||
|
||
$img = new Securimage(); | ||
|
||
$img->captcha_type = Securimage::SI_CAPTCHA_MATHEMATIC; // simple math problem | ||
$img->perturbation = .75; | ||
$img->use_random_baseline = true; | ||
$img->use_random_boxes = true; | ||
$img->num_lines = mt_rand(2, 4); | ||
|
||
if (!empty($_GET['namespace'])) $img->setNamespace($_GET['namespace']); | ||
$img->show(); // outputs the image and content headers to the browser | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters