403Webshell
Server IP : 54.36.91.62  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : uxhactp ( 169076)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/uxhactp/www/wp-content/plugins/visualcomposer/visualcomposer/Helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/uxhactp/www/wp-content/plugins/visualcomposer/visualcomposer/Helpers/Notice.php
<?php

namespace VisualComposer\Helpers;

if (!defined('ABSPATH')) {
    header('Status: 403 Forbidden');
    header('HTTP/1.1 403 Forbidden');
    exit;
}

use VisualComposer\Framework\Illuminate\Support\Helper;

class Notice implements Helper
{
    public function addNotice($name, $message, $type = 'warning', $dismissible = true, $wpDismissible = false)
    {
        $notices = $this->all();
        if (!is_array($notices)) {
            $notices = [];
        }
        $notices[ $name ] = [
            'name' => $name,
            'message' => $message,
            'type' => $type,
            'time' => time(),
            'dismissible' => $dismissible,
            'wpDismissible' => $wpDismissible
        ];
        $optionsHelper = vchelper('Options');
        $optionsHelper->setTransient('admin:notices', $notices);
    }

    public function removeNotice($name)
    {
        $notices = $this->all();

        if (isset($notices[ $name ])) {
            unset($notices[ $name ]);
        }
        $optionsHelper = vchelper('Options');
        $optionsHelper->setTransient('admin:notices', $notices);
    }

    public function dismissNotice($name)
    {
        $notices = $this->all();
        if (!empty($notices)) {
            foreach ($notices as $notice) {
                if ($notice['name'] && $notice['dismissible'] && $notice['name'] === $name) {
                    update_user_meta(
                        get_current_user_id(),
                        'vcv:' . $notice['name'] . ':notice:' . $notice['time'],
                        true
                    );
                    break;
                }
            }
        }
    }

    public function all()
    {
        $optionsHelper = vchelper('Options');

        return $optionsHelper->getTransient('admin:notices');
    }

    public function reset()
    {
        $optionsHelper = vchelper('Options');

        $optionsHelper->delete('admin:notices');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit