captcha probleem

Gestart doorMarjolein11 reacties58 weergaven

12 berichten · pagina 1 van 1

Marjolein

Lid · Topicstarter

Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb marboek 28-02 verhuisd naar een andere host, de 28e en de 29e werkte mijn contact en reactiesysteem met ingebouwde captcha wel. Nu een paar dagen werkt het niet meer, ik heb niks aangepast. Iedere keer krijg ik de melding dat de ingevulde code fout is. Op kfb-design werk ik met exact dezelfde contactpagina met hetzelfde captchasyteem en daar doet hij het wel. Beide websites staan op dezelfde hosts, heeft iemand enig idee waar dit probleem vandaan komt en wat ik eraan kan doen?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Heb je ergens iets waar we het kunnen testen?
Of misschien een relevant stuk code?
0
Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
imagelibary ofzo moet aanstaan op de server.
is dat aanconfused
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Smiegles schreef:
imagelibary ofzo moet aanstaan op de server.
is dat aanconfused
http://www.marboek.nl/index.php?p=contact
Daar zie je de captcha staan, dus GD staat aan, anders zou je de afbeelding ook niet moeten kunnen zien wink
0
Marjolein

Lid · Topicstarter

Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Xjessex schreef:
Eerdere citaten tonen
Smiegles schreef:
imagelibary ofzo moet aanstaan op de server.
is dat aanconfused
http://www.marboek.nl/index.php?p=contact
Daar zie je de captcha staan, dus GD staat aan, anders zou je de afbeelding ook niet moeten kunnen zien wink
en ik zei dat me contactpagina op kfb-design wel werkt en die staat op dezelfde host yummie
dit is captcha.php:

[COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #FF8000]// generate random number and store in session[/COLOR]
 
    [COLOR= #0000BB]$randomnr[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1000[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]9999[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]randomnr2[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$randomnr[/COLOR][COLOR= #007700]);[/COLOR]
 
    [COLOR= #FF8000]//generate image[/COLOR]
    [COLOR= #0000BB]$im[/COLOR] [COLOR= #007700]=[/COLOR] imagecreatetruecolor[COLOR= #007700]([/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]38[/COLOR][COLOR= #007700]);[/COLOR]
 
    [COLOR= #FF8000]//colors:[/COLOR]
    [COLOR= #0000BB]$white[/COLOR] [COLOR= #007700]=[/COLOR] imagecolorallocate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]176[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]146[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]138[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$grey[/COLOR] [COLOR= #007700]=[/COLOR] imagecolorallocate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]160[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]160[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]160[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$black[/COLOR] [COLOR= #007700]=[/COLOR] imagecolorallocate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]247[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]242[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]236[/COLOR][COLOR= #007700]);[/COLOR]
 
    imagefilledrectangle[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]200[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]50[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$black[/COLOR][COLOR= #007700]);[/COLOR]
 
    [COLOR= #FF8000]//path to font:[/COLOR]
 
    [COLOR= #0000BB]$font[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Sahara.ttf[/COLOR][COLOR= #007700];[/COLOR]
 
    [COLOR= #FF8000]//draw text:[/COLOR]
    imagettftext[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]25[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]21[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]29[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$grey[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$font[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$randomnr[/COLOR][COLOR= #007700]);[/COLOR]
 
    imagettftext[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]25[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]18[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]34[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$white[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$font[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$randomnr[/COLOR][COLOR= #007700]);[/COLOR]
 
    [COLOR= #FF8000]// prevent client side  caching[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Expires: Wed, 1 Jan 2020 00:00:00 GMT"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Last-Modified: "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/gmdate"]gmdate[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"D, d M Y H:i:s"[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]" GMT"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Cache-Control: no-store, no-cache, must-revalidate"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Cache-Control: post-check=0, pre-check=0"[/COLOR][COLOR= #007700],[/COLOR] false[COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Pragma: no-cache"[/COLOR][COLOR= #007700]);[/COLOR]
 
    [COLOR= #FF8000]//send image to browser[/COLOR]
    [URL="http://www.php.net/header"]header[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Content-type: image/gif"[/COLOR][COLOR= #007700]);[/COLOR]
    imagegif[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700]);[/COLOR]
    imagedestroy[COLOR= #007700]([/COLOR][COLOR= #0000BB]$im[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
session_start() confused
0
Marjolein

Lid · Topicstarter

Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
had ik er staan maar had m even weggehaald. Maar met of zonder maakt niet uit, blijf dezelfde fout krijgen.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Ik krijg:
"Uw bericht is succesvol verzonden!
Ik zal uw bericht z.s.m. beantwoorden."
redface?
0
Marjolein

Lid · Topicstarter

Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
nou ja, bij mij werkt het niet en ik had gister ook een aantal mensen gevraagd of zij het wilden proberen en bij niemand lukte het confused
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik kan nu ook gewoon weer reageren op je blogs yummie
0
Marjolein

Lid · Topicstarter

Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Pfff, met firefox lukt het mijzelf nu ook weer, ik heb helemaal niks veranderd sinds gisteren confusedIn opera werkt het nog steeds niet... ***browser

maar goed, bedankt allemaal.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Leeg je cache van Opera dan weer eens, misschien werkt het dan smile
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren