Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/recaptcha/recaptcha-php/recaptchalib.php |
— | — | @@ -124,9 +124,12 @@ |
125 | 125 | $http_request .= $req; |
126 | 126 | |
127 | 127 | $response = ''; |
| 128 | + wfDebugLog( 'payflowpro_gateway', 'Preparing to communicate with reCaptcha via fsock.' ); |
128 | 129 | if ( false == ( $fs = @fsockopen( $host, $port, $errno, $errstr, 10 ) ) ) { |
| 130 | + wfDebugLog( 'payflowpro_gateway', 'Failed communicating with reCaptcha.' ); |
129 | 131 | die ( 'Could not open socket' ); |
130 | 132 | } |
| 133 | + wfDebugLog( 'payflowpro_gateway', 'Finished communicating with reCaptcha.' ); |
131 | 134 | |
132 | 135 | fwrite( $fs, $http_request ); |
133 | 136 | |
— | — | @@ -165,11 +168,11 @@ |
166 | 169 | |
167 | 170 | // try up to three times |
168 | 171 | for ( $i = 0; $i < RECAPTCHA_RETRY_LIMIT; $i++ ) { |
169 | | - wfDebug( 'payflowpro_gateway', 'Preparing to communicate with reCaptcha.' ); |
| 172 | + wfDebugLog( 'payflowpro_gateway', 'Preparing to communicate with reCaptcha via cURL.' ); |
170 | 173 | $response = curl_exec( $ch ); |
171 | | - wfDebug( 'payflowpro_gateway', "Finished communicating with reCaptcha." ); |
| 174 | + wfDebugLog( 'payflowpro_gateway', "Finished communicating with reCaptcha." ); |
172 | 175 | if ( $response ) { |
173 | | - wfDebug( 'payflowpro_gateway', 'Response from reCaptcha: ' . $response ); |
| 176 | + wfDebugLog( 'payflowpro_gateway', 'Response from reCaptcha: ' . $response ); |
174 | 177 | break; |
175 | 178 | } |
176 | 179 | } |
— | — | @@ -184,7 +187,7 @@ |
185 | 188 | * the user entered the correct values. |
186 | 189 | */ |
187 | 190 | if ( !$response ) { |
188 | | - wfDebug( 'payflowpro_gateway', 'Failed communicating with reCaptcha: ' . curl_error( $ch ) ); |
| 191 | + wfDebugLog( 'payflowpro_gateway', 'Failed communicating with reCaptcha: ' . curl_error( $ch ) ); |
189 | 192 | $response = "true\r\n\r\ntrue"; |
190 | 193 | } |
191 | 194 | |