 |
 |
 |
 |
 |
| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2635 Location: Germany |
|
|
|
 |  | Yep, i'd be happy to donate something or help paying for a cool gift  |
Just keep "watching" the forum's ads and everything is fine. 
|
|
| Fri Jan 18, 2008 3:59 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1782 Location: US |
|
|
|
Oh our humble FI-DD.. one day you might not get a choice when we try to pay you back
If I had bought less domains.. pushed one harder.. and worked harder at advertising.. I'd probably have some money to share!
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Sun Jan 20, 2008 12:41 am |
|
 |
Mania

Joined: 03 Feb 2007 Posts: 105
|
|
|
|
if my server not support imageftbbox(), what is Captcha alternative ?
Thanx
|
|
| Thu Jan 24, 2008 7:22 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1782 Location: US |
|
|
|
I had that spam word filter working pretty good.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu Jan 24, 2008 5:25 pm |
|
 |
Mania

Joined: 03 Feb 2007 Posts: 105
|
|
|
|
 |  | I had that spam word filter working pretty good. |
how can i use that?!
thanx for your help
|
|
| Fri Feb 01, 2008 12:59 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1782 Location: US |
|
|
| Fri Feb 01, 2008 4:43 pm |
|
 |
Mania

Joined: 03 Feb 2007 Posts: 105
|
|
|
|
thanks but you don't see my comment, my server don't support imageftbbox().
 |  | if my server not support imageftbbox(), what is Captcha alternative ?
Thanx |
also spam protection with captcha isn't for me:)
|
|
| Sat Feb 02, 2008 8:01 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1782 Location: US |
|
|
|
I did see that I just don't know how to make that happen lol.. I can't believe going from one server to another can have so many slight changes.. I don't know what to tell you to do to stop spammers...
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Mon Feb 04, 2008 1:19 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2635 Location: Germany |
|
|
|
 |  | thanks but you don't see my comment, my server don't support imageftbbox(). |
Use the "spam filter" plugin and check out the link scott gave you.
|
|
| Thu Feb 07, 2008 8:11 pm |
|
 |
cybaGS
Joined: 27 Jun 2007 Posts: 37
|
|
|
|
 |  | Fatal error: Undefined class name 'phpcaptcha' in /home/pornguru/public_html/galatasaray/plugins/captcha.php on line 48 |
i get this error when submitting a comment 
|
|
| Wed May 07, 2008 7:01 pm |
|
 |
snoopy
Joined: 28 Mar 2006 Posts: 23
|
|
captcha with imagebox |
|
Hi can anyone convert this captcha code to work with cutenews, my imagebox function keeps crashing, I have a picture gallery that works great with captcha but is a none imagebox version.
Bellow is code
<?php
/*******************************************************************
Zenith Picture Gallery
CAPTCHA mod
Written by Marcin Krol <hawk@limanowa.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, a copy of
which is made available to you with this package.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
File: captcha.php (new in v0.9.4 DEV, written by hawk@limanowa.net)
Description: Simple PHP based CAPTCHA
*******************************************************************/
session_start();
// image width (wider image = longer code, 17 pixels per character, 32 chars maximum)
$width = 84;
// image height (try to keep it >= 20)
$height = 18;
// black & white captcha (0 - no, 1 - yes)
$bw = 0;
// draw lines (0 no, 1 - horizontal, 2 - vertical, 3 - random)
$draw_lines = 3;
// how many random lines
$lines = 50;
// draw random pixels (0 - no, 1 - yes)
$draw_pixels = 1;
// how many random pixels
$pixels = 250;
// image background color range
$bg_color_min = 150;
$bg_color_max = 250;
// line color range
$ln_color_min = 100;
$ln_color_max = 250;
// line color range
$px_color_min = 100;
$px_color_max = 150;
// text color range
$txt_color_min = 30;
$txt_color_max = 50;
// list of characters allowed in captcha
$char_table = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
// create image, fill with random color
$image = imagecreatetruecolor($width, $height);
if($bw)
{
$color_code = rand($bg_color_min, $bg_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($bg_color_min,$bg_color_max), rand($bg_color_min,$bg_color_max), rand($bg_color_min,$bg_color_max));
imagefill($image, 0, 0, $color);
// draw lines if required
if($draw_lines == 1)
{
// horizontal lines all over image
for($i=0; $i<$height; $i++)
{
if($bw)
{
$color_code = rand($ln_color_min, $ln_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max));
imageline($image, 0, $i, $width, $i, $color);
}
}
elseif($draw_lines == 2)
{
// vertical lines all over image
for($i=0; $i<$width; $i++)
{
if($bw)
{
$color_code = rand($ln_color_min, $ln_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max));
imageline($image, $i, 0, $i, $height, $color);
}
}
elseif($draw_lines == 3)
{
// random lines
for($i=0; $i<$lines; $i++)
{
if($bw)
{
$color_code = rand($ln_color_min, $ln_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max));
imageline($image, rand(0,$width), rand(0,$height), rand(0,$width), rand(0,$height), $color);
}
}
// draw random pixes if required
if($draw_pixels)
{
for($i=0; $i < $pixels; $i++)
{
if($bw)
{
$color_code = rand($px_color_min, $px_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($px_color_min,$px_color_max), rand($px_color_min,$px_color_max), rand($px_color_min,$px_color_max));
imagesetpixel($image, rand(0,$width), rand(0,$height), $color);
}
}
// generate random string and put it on image
$num_chars = floor($width / 16);
$string = "";
for($i=0; $i<$num_chars; $i++) $string .= $char_table{rand(0,strlen($char_table)-1)};
$color = imagecolorallocate($image, rand($txt_color_min,$txt_color_max), rand($txt_color_min,$txt_color_max), rand($txt_color_min,$txt_color_max));
for($i=0, $j=1; $i<$num_chars; $i++, $j+=9)
{
imagestring($image, (rand(0,1) ? 3 : 5), rand($i*8+$j,$i*8+$j+, rand(-2,$height-14), $string{$i}, $color);
}
// store code in session
$_SESSION['authcode'] = $string;
// output image
header("Content-type: image/png");
imagepng($image);
imagedestroy($image);
?>
|
|
| Thu May 08, 2008 11:12 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2635 Location: Germany |
|
|
| Thu May 08, 2008 7:11 pm |
|
 |
snoopy
Joined: 28 Mar 2006 Posts: 23
|
|
imagepng |
|
Hi Many thanks but i am getting this error
Warning: imagepng() [function.imagepng]: Unable to open 'captcha.png' for writing in /home/www/frankwarren/drill/News/plugins/captcha2.php on line 38
any ideas thanks
|
|
| Fri May 09, 2008 11:12 am |
|
 |
cybaGS
Joined: 27 Jun 2007 Posts: 37
|
|
|
|
FI-DD could you look at my problem that i stated 2-3 post ago?
|
|
| Fri May 09, 2008 8:41 pm |
|
 |
snoopy
Joined: 28 Mar 2006 Posts: 23
|
|
|
|
FI-DD any ideas on the above i've looked all over the script but can't find the problem, cheers in advance
|
|
| Tue May 13, 2008 9:29 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|