403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/infrafs/www/wp-content/plugins/eltd-twitter-feed/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/infrafs/www/wp-content/plugins/eltd-twitter-feed/shortcodes/shortcodes-functions.php
<?php
if(!function_exists('eltd_twitter_include_shortcodes_file')) {
    /**
     * Loades all shortcodes by going through all folders that are placed directly in shortcodes folder
     */
    function eltd_twitter_include_shortcodes_file() {
        foreach(glob(ELATED_TWITTER_SHORTCODES_PATH.'/*/load.php') as $shortcode_load) {
            include_once $shortcode_load;
        }

        do_action('eltd_twitter_action_include_shortcodes_file');
    }

    add_action('init', 'eltd_twitter_include_shortcodes_file', 6); // permission 6 is set to be before vc_before_init hook that has permission 9
}

if(!function_exists('eltd_twitter_load_shortcodes')) {
    function eltd_twitter_load_shortcodes() {
        include_once ELATED_TWITTER_ABS_PATH.'/lib/shortcode-loader.php';

        ElatedfTwitter\Lib\ShortcodeLoader::getInstance()->load();
    }

    add_action('init', 'eltd_twitter_load_shortcodes', 7); // permission 7 is set to be before vc_before_init hook that has permission 9 and after eltd_twitter_include_shortcodes_file hook
}

if(!function_exists('eltd_twitter_get_shortcode_module_template_part')) {
    /**
     * Loads module template part.
     *
     * @param string $template name of the template to load
     * @param string $shortcode name of the shortcode folder
     * @param string $slug
     * @param array $params array of parameters to pass to template
     *
     * @return html
     */
    function eltd_twitter_get_shortcode_module_template_part($template, $shortcode, $slug = '', $params = array()) {

        //HTML Content from template
        $html          = '';
        $template_path = ELATED_TWITTER_SHORTCODES_PATH.'/'.$shortcode;

        $temp = $template_path.'/'.$template;

        if(is_array($params) && count($params)) {
            extract($params);
        }

        $template = '';

        if (!empty($temp)) {
            if (!empty($slug)) {
                $template = "{$temp}-{$slug}.php";

                if(!file_exists($template)) {
                    $template = $temp.'.php';
                }
            } else {
                $template = $temp.'.php';
            }
        }

        if ($template) {
            ob_start();
            include($template);
            $html = ob_get_clean();
        }

        return $html;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit