4
I'm testing the XOOPS 2.5.7 with 1.7.1 Contact module, apparently is working right , I found the problem when I enabled CAPTCHA, the 'images/no-spam.jpg' appears right, the image of the "Security Code" with error no image.
What I noticed is that the getfgx.php is not being called by index.php ,
I put BREAK ; at the beginning of getgfx.php and has not stopped .
Index.php
if ( ( $contactclass->collectSecurity() == true ) && extension_loaded('gd') ) {
mt_srand((double)microtime()*10000);
$random_num = mt_rand(0, 100000);
$security = "<img src='getgfx.php?random_num='".$random_num."' border='1' alt='"._CT_SECURITY_CODE."' title='"._CT_SECURITY_CODE."'> "
."<img src='images/no-spam.jpg' alt='"._CT_NO_SPAM."' title='"._CT_NO_SPAM."'>";
// show the security block and input field
$security_graphic = new XoopsFormLabel( _CT_SECURITY_CODE, $security );
$contact_form->addElement( $security_graphic );
$type_security = new XoopsFormText( _CT_SECURITY_TYPE, "securityType", 10, 6 );
$contact_form->addElement( $type_security, true );
$security_hidden = new XoopsFormHidden( "securityHidden", $random_num );
$contact_form->addElement( $security_hidden );
}
Is it something with the version of XOOPS 2.5.7 ?