I need help...

Can't get it installed? Not sure how a feature works? Then post here.

I need help...

Postby Shawn » 2006-08-31 06:46 pm

I have Aardvark Topsites 5.0.2 on my site and I tried to install the security protection against the spammers on my topsites. I installed it and checked the page and it has a red X where the word and numbers are supposed to be. Help?
Shawn
Newbie
 
Posts: 3
Joined: 2006-08-31 06:43 pm

Postby Jeremy » 2006-08-31 08:21 pm

go to captcha.php in your browser and see what the error message is.
Jeremy
Supreme Diety
 
Posts: 8922
Joined: 2003-05-05 04:41 pm
Location: NJ, USA

Postby Shawn » 2006-08-31 08:54 pm

It says "$gray = imagecolorallocate($image, 210, 210, 210);
$black = imagecolorallocate($image, 0, 0, 0);

$string = mt_rand();
$string = substr(sha1($string), 0, 6);
$string = str_replace(array('0', 'O', 'o'), rand(1, 9), $string);

for ($i=0; $i<25; $i++) {
$x1 = rand(0,140);
$y1 = rand(0,30);
$x2 = rand(0,140);
$y2 = rand(0,30);
imageline($image, $x1, $y1, $x2, $y2 , $gray);
}

for ($i=0; $i<6; $i++) {
$size = rand(4, 5);
$x = $x + rand(12 , 20);
$y = rand(7 , 12);
imagestring($image, $size, $x, $y, $string{$i} , $black);
}

$DB->query("DELETE FROM {$CONF['sql_prefix']}_sessions WHERE data LIKE '{$_SERVER['REMOTE_ADDR']}|%'", __FILE__, __LINE__);
$data = "{$_SERVER['REMOTE_ADDR']}|".sha1($string);

require_once("{$CONF['path']}/sources/misc/session.php");
$session = new session;
$session->create('captcha', $data);

header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>
"

I didn't see an error message
Shawn
Newbie
 
Posts: 3
Joined: 2006-08-31 06:43 pm

Postby Jeremy » 2006-08-31 10:54 pm

it should be executing as a php file, not just displaying the text. try uploading it again. if it still doesn't work, ask your host. it could be a server config problem.
Jeremy
Supreme Diety
 
Posts: 8922
Joined: 2003-05-05 04:41 pm
Location: NJ, USA

Postby Shawn » 2006-09-01 05:21 pm

I know. It is fully correct. I left out the top part because it included MySQL database info.
Shawn
Newbie
 
Posts: 3
Joined: 2006-08-31 06:43 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron