aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-04-29 16:30:56 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-04-29 16:30:56 +0000
commit63c9b5d663fb0515b0079d7eaf81e26b99de012a (patch)
treefe9444c51e93bfbf04e055a687aa1e65ad2bd911 /phpBB/includes/acp
parenta94222ee5a86afd828acac93e3c4722416daf802 (diff)
downloadforums-63c9b5d663fb0515b0079d7eaf81e26b99de012a.tar
forums-63c9b5d663fb0515b0079d7eaf81e26b99de012a.tar.gz
forums-63c9b5d663fb0515b0079d7eaf81e26b99de012a.tar.bz2
forums-63c9b5d663fb0515b0079d7eaf81e26b99de012a.tar.xz
forums-63c9b5d663fb0515b0079d7eaf81e26b99de012a.zip
- CAPTCHA!
Xore and NeoThermic are very cool, you must thank them! git-svn-id: file:///svn/phpbb/trunk@5862 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_board.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index 4abe3d0837..8d8a8d6277 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -218,7 +218,14 @@ class acp_board
'enable_confirm' => array('lang' => 'VISUAL_CONFIRM_REG', 'type' => 'radio:yes_no', 'explain' => true),
'enable_post_confirm' => array('lang' => 'VISUAL_CONFIRM_POST', 'type' => 'radio:yes_no', 'explain' => true),
-// 'legend2' => 'GAPTCHA_OPTIONS',
+ 'legend2' => 'CAPTCHA_OPTIONS',
+ 'policy_occlude' => array('lang' => 'CAPTCHA_OCCLUDE', 'type' => 'radio:yes_no', 'explain' => false),
+ 'policy_occlude_noise_pixel' => array('lang' => 'OCCLUDE_NOISE_PIXEL', 'type' => 'select', 'method' => 'captcha_pixel_noise_select', 'explain' => false),
+ 'policy_occlude_noise_line' => array('lang' => 'OCCLUDE_NOISE_LINE', 'type' => 'radio:yes_no', 'explain' => false),
+ 'policy_entropy' => array('lang' => 'CAPTCHA_ENTROPY', 'type' => 'radio:yes_no', 'explain' => false),
+ 'policy_entropy_noise_pixel' => array('lang' => 'ENTROPY_NOISE_PIXEL', 'type' => 'select', 'method' => 'captcha_pixel_noise_select', 'explain' => false),
+ 'policy_entropy_noise_line' => array('lang' => 'ENTROPY_NOISE_LINE', 'type' => 'radio:yes_no', 'explain' => false),
+ 'policy_3dbitmap' => array('lang' => 'CAPTCHA_3DBITMAP', 'type' => 'radio:yes_no', 'explain' => false),
)
);
break;
@@ -588,6 +595,13 @@ class acp_board
return '<option value="1"' . (($value == 1) ? ' selected="selected"' : '') . '>' . $user->lang['DELETE_OLDEST_MESSAGES'] . '</option><option value="2"' . (($value == 2) ? ' selected="selected"' : '') . '>' . $user->lang['HOLD_NEW_MESSAGES'] . '</option>';
}
+ function captcha_pixel_noise_select($value, $key = '')
+ {
+ global $user;
+
+ return '<option value="0"' . (($value == 0) ? ' selected="selected"' : '') . '>' . $user->lang['NONE'] . '</option><option value="1"' . (($value == 1) ? ' selected="selected"' : '') . '>' . $user->lang['LIGHT'] . '</option><option value="2"' . (($value == 2) ? ' selected="selected"' : '') . '>' . $user->lang['MEDIUM'] . '</option><option value="3"' . (($value == 3) ? ' selected="selected"' : '') . '>' . $user->lang['HEAVY'] . '</option>';
+ }
+
function select_ip_check($value, $key = '')
{
$radio_ary = array(4 => 'ALL', 3 => 'CLASS_C', 2 => 'CLASS_B', 0 => 'NONE');