| 
	| HahnHolio |  | 2006-08-01 04:32:08 |  | hiho team! 
 i just pasted the php-code as i was told to the .php file that handles
 our guestbook, but the verification does not show up.
 if i do the gateway install-thingy, it works great, but the post is
 displayed exactly 7 times in the guestbook :(
 
 any suggestions would be nice ...
 
 another hint: the form action in the php has the following line:
 '<form action="gaeste_test.php" method="post" onsubmit="return
 checkGaeste(this);">'
 
 i gues that the extra function is somehow conflicting ... but i got no
 clue :)
 
 thx in advance
 
 HahnHolio
 | 
	|  | I need to see the url of your guestbook to check the gateway installation.
 
 And I need to see the code file to check the php
 installation. You can send it to
 webmaster [ a t ] protectwebform.com
 | 
	| 
	| HahnHolio |  | 2006-08-01 05:27:42 |  | nice one...just send the file to you !!! 
 greetz
 
 HahnHolio
 | 
	|  | in order to close this discussion, copy here your email answer, hope you don't mind:
 "awesome, thx man :)
 
 that did the trick!!
 
 greetz and everlasting gratitude"
 | 
	| 
	| HahnHolio |  | 2006-08-01 19:35:31 |  | hm...sorry to bother u still, but the code is not needed to post on the guestbook ... just recieved multiple spams again, and tested it.
 it works when u punch in the code from the image, but it is not
 required ;(
 
 ne idea?
 
 greetz
 
 HahnHolio
 | 
	| 
	| HahnHolio |  | 2006-08-02 04:29:36 |  | http://www.roschinskys.de/gaeste_test.php 
 this is the URL and honestly as u might see for ureself, i need this
 code thingy :)
 
 thx
 
 HahnHolio
 | 
	|  | First of all, you have two versions installed: http://www.roschinskys.de/gaeste.php
 and
 http://www.roschinskys.de/gaeste.php
 they work with the same data, and first one is not protected, so you
 will receive spam through the first one.
 
 And I still have this script working for me quite well on my machine.
 Don't even know what is wrong with yours. Do you still have the php
 code in the beginning of your file?
 
 
 | 
	|  | Sorry, for no answer for so long. | 
	| 
	| HahnHolio |  | 2006-08-02 08:12:58 |  |  | 
	| 
	| HahnHolio |  | 2006-08-02 08:20:52 |  |  | 
	|  | The only advise I can give you is to try to replace the stinrg:
 ----------------------------------------------
 if($_GLOBALS['REQUEST_METHOD'] == 'POST' || count($_POST) > 0) {
 ----------------------------------------------
 with this one:
 ----------------------------------------------
 if(isset($form) || $_GLOBALS['REQUEST_METHOD'] == 'POST' ||
 count($_POST) > 0) {
 ----------------------------------------------
 in the beginning of the file
 
 Waiting for results...
 | 
	| 
	| HahnHolio |  | 2006-08-02 11:54:08 |  |  | 
	| 
	| HahnHolio |  | 2006-08-02 12:05:15 |  |  | 
	|  | You can send me your ftp account and I will try to help you if you want to.
 
 
 | 
	| 
	| HahnHolio |  | 2006-08-02 23:14:22 |  | hm...i guess this is a some serious bug ... check your email plz an then we will see what is possible.
 
 greetz
 
 HahnHolio
 | 
	|  | Hello, 
 I guess now the new version works correctly:
 
 http://www.roschinskys.de/gaeste_test2.php
 
 for some reason your hosting has disabled the php funtion
 file_get_contents.
 
 I wrote my own function for you :).
 
 Check it now, please.
 | 
	|  | As for the function: 
 "Warning: file_get_contents(): URL file-access is disabled in the
 server configuration"
 
 I got this.
 | 
	| 
	| HahnHolio |  | 2006-08-03 05:20:30 |  |  | 
	|  | If you rename the file, you have to rename the file which processes the form:
 <form action="file_to_rename" ...
 now it works.
 
 
 | 
	| 
	| HahnHolio |  | 2006-08-03 06:08:43 |  | thx man, you are my hero :) | 
	|  | if($GLOBALS['REQUEST_METHOD'] == 'POST' || count($_POST) > 0) { $pwf_message = "The image code you have provided does not match
 the
 actual one. Hit the 'back' button of your browser and input the
 correct code please.";
 
 if(strlen($_POST['protectwebformcode']) > 30) {
 die($pwf_message);
 }
 
 $protectwebformresult =
 @file_get_contents(
 "http://protectwebform.com/verify01?vui=32929&vp=1vrck4hnx62z&ri=" .
 urlencode($_SERVER['REMOTE_ADDR']) . "&vs=" .
 urlencode($_POST['protectwebformcode']));
 if(preg_match("|<authorization status=\"0\"|",
 $protectwebformresult)) {
 echo "Warning. You are not authorithed to use image protection
 provided by
 http://www.protectwebform.com. Read
 http://www.protectwebform.com
 FAQ for more information";
 } elseif(!preg_match("|<verification result=\"yes\"/>|",
 $protectwebformresult)) {
 die($pwf_message);
 }
 }
 
 
 
 This code I use for .php page but page reply--
 The image code you have provided does not match the actual one. Hit
 the 'back' button of your browser and input the correct code please.
 
 Please give the right code
 | 
| 
 
 
 
 
 Post Reply:
 
 You must be logged in to reply.
 |