PDA

View Full Version : Humanverification


ragtek
Mon 28th Jan '08, 7:20am
hi
i know that this is a question for vbulletin.org or vbulletin-germany.org but i asked it there and got no answer

some add-ons of me are not working in 3.7 because of this code:

require_once(DIR . '/includes/functions_regimage.php');
$imagehash = fetch_regimage_hash();
eval('$imagereg = "' . fetch_template('imagereg') . '";');

now i've seen that its now the class_humanverify

i've look in the scripts and i think that thats the way it works:
require_once(DIR . '/includes/class_humanverify.php');
$verify =& vB_HumanVerify::fetch_library($vbulletin);
$human_verify = $verify->output_token();
and check:
require_once(DIR . '/includes/class_humanverify.php');
$verify =& vB_HumanVerify::fetch_library($vbulletin);
if (!$verify->verify_token($vbulletin->GPC['humanverify']))
{
die("falsch");
}
else {
die("richtig");
}
but i'm getting always "falsch" what means that the verification code isn't right

ragtek
Mon 28th Jan '08, 8:02am
ok solved it
i've forgotten on 'humanverify' => TYPE_ARRAY,