Sitemde doğrulama resmi görünmüyor. YARDIM....

SH3RL0CK

Öğrenci
Katılım
8 Mart 2013
Mesajlar
9
Reaksiyon puanı
0
Puanları
0
hangi captcha'yı kullandın. daha önce çalışıyor muydu, publishten sonra mı oldu bu hata
 

andomando

Öğrenci
Katılım
12 Mart 2013
Mesajlar
7
Reaksiyon puanı
0
Puanları
0
[h=1]CaptchaSecurityImages.php kullanıyorum. localhostta çalışıyor. Host şirketim natro. İletişime geçtim Gd library yüklüymüş.[/h]İsterseniz özelliklere http://www.bilgisayarhatasi.com/info.php bakabilirsiniz. ne yaptıysam olmadı. Bi yerde eksk birşey var ama nerde
 

annttiigs

Profesör
Katılım
7 Şubat 2007
Mesajlar
2,589
Reaksiyon puanı
24
Puanları
218
captchasecurityimages.php içinde captcha sağlayıcısından mı çağırıyorsun imajı ?
 

andomando

Öğrenci
Katılım
12 Mart 2013
Mesajlar
7
Reaksiyon puanı
0
Puanları
0
captchasecurityimages.php dosyası:

<?php
session_start();
class CaptchaSecurityImages {
function generateCode($characters) {
/* list all possible characters, similar looking characters and vowels have been removed */
$possible = '23456789bcdfghjkmnpqrstvwxyz';
$code = '';
$i = 0;
while ($i < $characters) {
$code .= substr($possible, mt_rand(0, strlen($possible)-1), 1);
$i++;
}
return $code;
}
function CaptchaSecurityImages($width='120',$height='40',$characters='6') {
$font = "monofont.ttf";
$code = $this->generateCode($characters);
/* font size will be 75% of the image height */
$font_size = $height * 0.75;
$image = imagecreate($width, $height) or die('Cannot initialize new GD image stream');
/* set the colours */
$background_color = imagecolorallocate($image, 255, 255, 255);
$text_color = imagecolorallocate($image, 20, 40, 100);
$noise_color = imagecolorallocate($image, 100, 120, 180);
/* generate random dots in background */
for( $i=0; $i<($width*$height)/3; $i++ ) {
imagefilledellipse($image, mt_rand(0,$width), mt_rand(0,$height), 1, 1, $noise_color);
}
/* generate random lines in background */
for( $i=0; $i<($width*$height)/150; $i++ ) {
imageline($image, mt_rand(0,$width), mt_rand(0,$height), mt_rand(0,$width), mt_rand(0,$height), $noise_color);
}
/* create textbox and add text */
$textbox = imagettfbbox($font_size, 0, $font, $code) or die('Error in imagettfbbox function');
$x = ($width - $textbox[4])/2;
$y = ($height - $textbox[5])/2;
imagettftext($image, $font_size, 0, $x, $y, $text_color, $font , $code) or die('Error in imagettftext function');
/* output captcha image to browser */
header('Content-Type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
$_SESSION['security_code'] = $code;
}
}
$width = isset($_GET['width']) && $_GET['width'] < 600 ? $_GET['width'] : '120';
$height = isset($_GET['height']) && $_GET['height'] < 200 ? $_GET['height'] : '40';
$characters = isset($_GET['characters']) && $_GET['characters'] > 2 ? $_GET['characters'] : '6';
$captcha = new CaptchaSecurityImages($width,$height,$characters);
?>


ÜYELİK FORMUNDA BİR KESİT (register.php)
<div class="text-publish2">
<p style="float:left; margin-right:10px; width:170px;"><?php _e(' Secure Code','qa'); ?>:</p>
<input type="text" name="sec_code" maxlength="5" class="input" value="" />
</div>
<div class="text-publish2">
<p style="float:left; margin-right:10px; width:170px;"></p>
<?php echo '<img src="'.TEMPLATE_URL.'/CaptchaSecurityImages.php?width=100&height=35&characters=5" alt="captcha" />'; ?>
</div>
 

seckyn

Profesör
Katılım
21 Nisan 2010
Mesajlar
2,939
Reaksiyon puanı
18
Puanları
218
$font = "monofont.ttf"; yi $font = "./monofont.ttf"; şeklinde değiştirince olduğunu söyleyenler var :D
 

eSa

Dekan
Katılım
5 Kasım 2011
Mesajlar
9,780
Reaksiyon puanı
352
Puanları
263
imagettfbbox()

fonksiyonunu bulamıyor.

 

andomando

Öğrenci
Katılım
12 Mart 2013
Mesajlar
7
Reaksiyon puanı
0
Puanları
0
başta seckyn ve diğer cevap veren tüm arkadaşlara çok teşekkür ederim. SORUNU ÇÖZÜLDÜ... MEĞERSE seckyn ARKADAŞIN DEDİĞİ GİBİ
"
$font = "monofont.ttf"; yi $font = "./monofont.ttf"; şeklinde değiştirince olduğunu söyleyenler var"
YAPINCA ÇÖZÜLDÜ ALLAH RAZI ALSON KARDEŞİM.
 
Üst