HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/panomity.de/public_html/wp-content/plugins/wpbot-pro/qcld-df-webhook.php
<?php 
/*
* @package Dialogflow Webhook by QuantumCloud 
* @Since 9.3.8
*/
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/*
* Callback function for Webhook
* @Since 9.3.8
* You can write your script inside this callback function.
*/
function qcld_wpbot_dfwebhookcallback($request){

    // Authentication check
   if(qcld_validate_authorization_header()){

        //get all incoming requests
        $req = $request->get_params();
        //Intent name
        $intent = $req['queryResult']['intent']['displayName'];
        //parameters
        $parameters = $req['queryResult']['parameters'];

        //Start custom code section.
        // Write your fulfillment response in this block
        //==========================

        $json_reponse = '
        {
            "fulfillmentText": "This is from webhook_test response from webhook",
            "fulfillmentMessages": [
                {
                    "text": {
                        "text": [
                            "This is from webhook_test response from webhook"
                        ]
                    }
                }
            ]
        }';
        
        echo $json_reponse;

        //End custom code section
        //================

    // Please do not edit the below code.
   }else {
        wp_send_json(array('success' => false,
        'message' => 'Authorization failed.'));
    }

}