• Resolved softrengineer

    (@softrengineer)


    Hi!

    We are testing api of arbitrary form. All is well, the only problem, the extra text is displayed. In the Cleantalk settings, we entered the following text: https://c2n.me/3XZ7Od4. However, the form displays additional text that we did not put https://c2n.me/3XZ8dhT. Please tell me why this is happening.

    Тестируемый код:

    $ct_request = new CleantalkRequest();
    
            $ct_request->auth_key = $this->auth_key;        
            $ct_request->sender_email = '[email protected]';
            $ct_request->sender_nickname = 'John Dow';
            $ct_request->sender_ip = '178.32.183.43';
            $ct_request->js_on = 1; # Site visitor has JavaScript
            $ct_request->submit_time = 12; # Seconds from start form filling till the form POST
            
            $ct = new Cleantalk();
            $ct->server_url = $this->config_url;
            
            // Check
            $ct_result = $ct->isAllowMessage($ct_request);
            
            if ($ct_result->allow == 1) {
                return true;
            } else {    
                $this->comment = $ct_result->comment;
                return false;
            }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Message – reason for blocking’ is closed to new replies.