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 : 18.119.118.237
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/Repositories/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace Give\Tracking\Repositories;

use Give\Tracking\TrackingData\WebsiteInfoData;
use Give\Tracking\TrackRegisterer;

/**
 * Class EventRecord
 * @package Give\Tracking\Repositories
 *
 * @since 2.10.0
 */
class TrackEvents
{
    const TELEMETRY_REQUEST_TIME_OPTION_KEY = 'give_telemetry_usage_tracking_last_request';
    const TRACKING_EVENTS_RECORD_OPTION_KEY = 'give_telemetry_records';
    const RECENTLY_EDITED_DONATION_FORM_OPTION_KEY = 'give_telemetry_recently_edited_donation_form';

    /**
     * Remove tracks.
     *
     * @since 2.10.0
     */
    public function removeTrackList()
    {
        delete_option(self::TRACKING_EVENTS_RECORD_OPTION_KEY);
    }

    /**
     * Remove list of recently edited donation forms.
     *
     * @since 2.10.2
     */
    public function removeRecentlyEditedDonationFormList()
    {
        delete_option(self::RECENTLY_EDITED_DONATION_FORM_OPTION_KEY);
    }

    /**
     * Save tracks.
     *
     * @since 2.10.0
     */
    public function saveTrackList()
    {
        /* @var TrackRegisterer $trackRegisterer */
        $trackRegisterer = give(TrackRegisterer::class);
        update_option(self::TRACKING_EVENTS_RECORD_OPTION_KEY, $trackRegisterer->getTrackList(), false);
    }

    /**
     * Save recently edited donation form.
     *
     * @since 2.10.2
     */
    public function saveRecentlyEditedDonationForm($formId)
    {
        $formIds = $this->getRecentlyEditedDonationFormsList();
        $formIds[] = $formId;

        $formIds = array_unique($formIds);
        update_option(self::RECENTLY_EDITED_DONATION_FORM_OPTION_KEY, $formIds, false);
    }

    /**
     * Get recently edited donation form list.
     *
     * @since 2.10.2
     */
    public function getRecentlyEditedDonationFormsList()
    {
        return get_option(self::RECENTLY_EDITED_DONATION_FORM_OPTION_KEY, []);
    }

    /**
     * Get tracks list.
     *
     * @since 2.10.0
     */
    public function getTrackList()
    {
        return get_option(self::TRACKING_EVENTS_RECORD_OPTION_KEY, []);
    }

    /**
     * Save request time.
     *
     * @since 2.10.0
     */
    public function saveRequestTime()
    {
        update_option(self::TELEMETRY_REQUEST_TIME_OPTION_KEY, strtotime('- 1 hour', current_time('timestamp')), false);
    }

    /**
     * Get request time.
     *
     * @since 2.10.0
     *
     * @return false|string
     */
    public function getRequestTime()
    {
        $today = strtotime('today', current_time('timestamp'));

        return date('Y-m-d H:i:s', get_option(self::TELEMETRY_REQUEST_TIME_OPTION_KEY, $today));
    }

    /**
     * Store website tracking event.
     *
     * @since 2.10.0
     */
    public function storeWebsiteTrackingEvent()
    {
        /* @var WebsiteInfoData $dataClass */
        $dataClass = give(WebsiteInfoData::class);
        $optionName = 'give_telemetry_website_data_checksum';
        $previousChecksum = get_option($optionName, '');
        $checksum = substr(md5(serialize($dataClass->get())), 0, 32);

        if ($previousChecksum === $checksum) {
            return false;
        }

        update_option($optionName, $checksum, false);

        return true;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit