please help i can not see confirmation code, and i have GD 2.x (2.0.28 or later is recommended) with Freetype support i just install the captcha plugin.
user test
pedrotest
123456
http://www.huitzuco.org/photo/index.phphttp://www.huitzuco.org/photo/captcha.phphttp://www.huitzuco.org/photo/plugins/captcha/captcha.phphttp://www.huitzuco.org/photo/displayimage.php?album=topn&cat=-314&pos=9i see confirmation code now.
i just add my group that i did not wanted to see captcha code.
on codebase.php after adding my user group it work fine
$CAPTCHA_DISABLE = array('login' => 'Administrators',
'register' => 'Administrators',
'comment' => 'Administrators',
'report' => 'Administrators',
'ecard' => 'Administrators',
);
$CAPTCHA_TIMEOUT = 300; // How many sec should passed before we remove the code from database
require ('plugins/captcha/include/init.inc.php');
require('plugins/captcha/include/captcha.class.php');
switch ($_SERVER['PHP_SELF']) {
case 'login.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['login']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['login'] == 'Administrators') {
if (isset($_POST['submitted']) AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=login.php\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, 'login.php');
pagefooter();
exit;
}
}
break;
case 'register.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['register']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['register'] == 'Administrators') {
if (isset($_POST['submit']) AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=register.php\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, 'register.php');
pagefooter();
exit;
}
}
break;
case 'db_input.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['comment']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['comment'] == 'Administrators') {
if (isset($_POST['msg_body']) AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=displayimage.php?pos=" . (- $_POST['pid']) . "\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "displayimage.php?pos=" . (- $_POST['pid']));
pagefooter();
exit;
}
}
break;
case 'report_file.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['report']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['report'] == 'Administrators') {
if (count($_POST) > 0 AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=report_file.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "report_file.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}");
pagefooter();
exit;
}
}
break;
case 'ecard.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['ecard']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['ecard'] == 'Administrators') {
if (count($_POST) > 0 AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=ecard.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "ecard.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}");
pagefooter();
exit;
[Edited by Sami]
Added code block