403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.224.73.77
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/dup-installer/classes/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/dup-installer/classes/plugins/class.plugin.custom.actions.php
<?php
/**
 * plugin custom actions
 *
 * Standard: PSR-2
 * @link http://www.php-fig.org/psr/psr-2 Full Documentation
 *
 * @package SC\DUPX\U
 *
 */
defined('ABSPATH') || defined('DUPXABSPATH') || exit;

class DUPX_Plugin_custom_actions
{

    const BY_DEFAULT_AUTO     = 'auto';
    const BY_DEFAULT_DISABLED = 'disabled';
    const BY_DEFAULT_ENABLED  = 'enabled';

    /**
     *
     * @var string 
     */
    protected $slug = null;

    /**
     *
     * @var bool|callable 
     */
    protected $byDefaultStatus = self::BY_DEFAULT_AUTO;

    /**
     *
     * @var bool|callable 
     */
    protected $enableAfterLogin = false;

    /**
     *
     * @var string
     */
    protected $byDefaultMessage = '';

    /**
     * 
     * @param string $slug
     * @param bool|callable $disablebyDefault
     * @param bool|callable $enableAfterLogin
     */
    public function __construct($slug, $byDefaultStatus, $enableAfterLogin, $byDefaultMessage)
    {
        $this->slug             = $slug;
        $this->byDefaultStatus  = $byDefaultStatus;
        $this->enableAfterLogin = $enableAfterLogin;
        $this->byDefaultMessage = $byDefaultMessage;
    }

    public function byDefaultStatus()
    {
        if (is_callable($this->byDefaultStatus)) {
            $callable = $this->byDefaultStatus;
            return $callable($this->slug);
        } else {
            return $this->byDefaultStatus;
        }
    }

    public function isEnableAfterLogin()
    {
        if (is_callable($this->enableAfterLogin)) {
            $callable = $this->enableAfterLogin;
            return $callable($this->slug);
        } else {
            return $this->enableAfterLogin;
        }
    }

    public function byDefaultMessage()
    {
        return $this->byDefaultMessage;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit