Hi to all,
someone has implemented the Securimage script in create_account.php?
I'm working a full day but it doesn't works.
I've set var $session_name = 'osCsid'; in the securimage.php and the create_account.tpl.php has:
<!-- BOF: Captcha code new -->
<div style="width: 430px; float: left; height: 90px">
<img id="siimage" align="left" style="padding-right: 5px; border: 0" src="securimage/securimage_show.php?<?php echo "osCsid=".$_SESSION['sessiontoken'] ?>" />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="19" height="19" id="SecurImage_as3" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="securimage/securimage_play.swf?audio=securimage/securimage_play.php&bgColor1=#777&bgColor2=#fff&ic onColor=#000&roundedCorner=5" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="securimage/securimage_play.swf?audio=secureimage/securimage_play.php&bgColor1=#777&bgColor2=#fff&ic onColor=#000&roundedCorner=5" quality="high" bgcolor="#ffffff" width="19" height="19" name="SecurImage_as3" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<br />
<!-- pass a session id to the query string of the script to prevent ie caching -->
<a tabindex="-1" style="border-style: none" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = 'securimage/securimage_show.php?<?php echo "osCsid=".$_SESSION['sessiontoken'] ?>&'+Math.random(); return false"><img src="securimage/images/refresh.gif" alt="Reload Image" border="0" onclick="this.blur()" align="bottom" /></a>
</div>
<div style="clear: both"></div>
<?php echo tep_draw_input_field('code') . ' ' . (tep_not_null(ENTRY_CAPTCHA_TEXT) ? '<span class="inputRequirement">' . ENTRY_CAPTCHA_TEXT . '</span>': ''); ?>
<!-- EOF: Captcha code new -->
while the create_account.php has:
//BOF: Captcha check Secureimage
$img = new Securimage();
$valid = $img->check($_POST['code']);
if ($valid == false) {
$error = true;
$messageStack->add('create_account', ENTRY_CAPTCHA_VALID_ERROR);
}
//EOF: Captcha check Secureimage
Any suggestions? The script return ever the check "false"
Bye





LinkBack URL
About LinkBacks






Bookmarks