prefix . 'wpbot_user'; $tableconversation = $wpdb->prefix . 'wpbot_conversation'; $table_user_sql = '`' . esc_sql( $tableuser ) . '`'; $table_conv_sql = '`' . esc_sql( $tableconversation ) . '`'; $userid = isset( $_GET['userid'] ) ? absint( wp_unslash( $_GET['userid'] ) ) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended $userinfo = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$table_user_sql} WHERE id = %d", $userid ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter $delurl = wp_nonce_url( admin_url( 'admin.php?page=wbcs-botsessions-page&userid=' . $userinfo->id . '&act=delete' ), 'wpcs_delete_session_' . $userinfo->id ); $export = wp_nonce_url( admin_url( 'admin-post.php?action=wpbot_conversations.csv&user_id=' . $userid ), 'wpbot_conversations_csv' ); wp_register_style( 'qcld-wp-chatbot-history-style', QCLD_wpCHATBOT_HISTORY_PLUGIN_URL . '/css/history-style.css', '', QCLD_wpCHATBOT_VERSION, 'screen' ); wp_enqueue_style( 'qcld-wp-chatbot-history-style' ); ?>
session_id != '' ) ? esc_html( $userinfo->session_id ) : '---'; ?>
name ? $userinfo->name : '---' ); ?>
email != '' ) ? esc_html( $userinfo->email ) : '---'; ?>
phone != '' ) ? esc_html( $userinfo->phone ) : '---'; ?>
date ) ) ); ?>
get_row( $wpdb->prepare( "SELECT * FROM {$table_conv_sql} WHERE user_id = %d", $userid ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared if ( ! empty( $result ) ) : $qcld_wb_chatbot_theme = get_option( 'qcld_wb_chatbot_theme' ); if ( file_exists( QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/templates/' . $qcld_wb_chatbot_theme . '/style.css' ) ) { wp_register_style( 'qcld-wp-chatbot-style', QCLD_wpCHATBOT_PLUGIN_URL . '/templates/' . $qcld_wb_chatbot_theme . '/style.css', '', QCLD_wpCHATBOT_VERSION, 'screen' ); wp_enqueue_style( 'qcld-wp-chatbot-style' ); } wp_enqueue_style( 'qcld-wp-chatbot-jquery-ui' ); wp_register_style( 'qcld-wp-chatbot-jquery-ui', QCLD_wpCHATBOT_HISTORY_PLUGIN_URL . '/css/jqueryui.css', '', '', 'screen' ); wp_register_style( 'qcld-wp-chatbot-common-style', QCLD_wpCHATBOT_PLUGIN_URL . '/css/common-style.css', '', QCLD_wpCHATBOT_VERSION, 'screen' ); wp_enqueue_style( 'qcld-wp-chatbot-common-style' ); ?>
array( 'class' => true, 'id' => true, 'style' => true, 'data-*' => true, ), 'span' => array( 'class' => true, 'id' => true, 'style' => true, 'data-*' => true, ), 'ul' => array( 'class' => true ), 'li' => array( 'class' => true ), 'img' => array( 'src' => true, 'alt' => true, 'class' => true, 'style' => true, ), ) ); echo wp_kses( htmlspecialchars_decode( $result->conversation ), $allowed_html ); ?>