403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.92
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/testsite1441.ru/wp-content/themes/hotello/inc/vc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/testsite1441.ru/wp-content/themes/hotello/inc/vc/visual_composer.php
<?php
$vc_includes_path = get_template_directory() . '/inc/vc/';


if (class_exists('WPBakeryShortCode')) {

    require_once $vc_includes_path . "helpers.php";
    require_once $vc_includes_path . "vc_core_params.php";

    $modules_path = $vc_includes_path . 'modules';
    $modules = array(
    	'contact',
        'images_gallery_with_categories',
        'separator',
        'services',
        'iconbox',
        'infobox',
        'spacer',
        'testimonials',
        'button',
        'icon',
        'posts_carousel',
        'google_map',
        'call_to_action',
        'cf7',
        'carousel_gallery',
        'contacts_widget',
        'sidebar',
        'posts_list',
    );
    foreach ($modules as $module) {
        hotello_require($modules_path . '/' . $module . '.php');
    }
}

add_filter('vc_iconpicker-type-fontawesome', 'hotello_vc_custom_icons');

if (!function_exists('hotello_vc_custom_icons')) {
    function hotello_vc_custom_icons($fonts)
    {

        $counts = 0;
        /*Manager fonts*/
        $fonts_manager = hotello_add_fonts_pack();
        if (!empty($fonts_manager)) {
            $fonts = $fonts + $fonts_manager;
        }

        $layout_fonts = hotello_add_fonts_pack('stm_fonts_layout');
        if (!empty($layout_fonts)) {
            $fonts = $fonts + $layout_fonts;
        }

        return $fonts;
    }

    function hotello_add_fonts_pack($option = 'stm_fonts')
    {

        $fonts = array();

        $custom_fonts = get_option($option);
        global $wp_filesystem;

        if (empty($wp_filesystem)) {
            require_once ABSPATH . '/wp-admin/includes/file.php';
            WP_Filesystem();
        }

        $wp_uploads = wp_upload_dir();
        $base_path = $wp_uploads['basedir'];

        if (!empty($custom_fonts)) {
            foreach ($custom_fonts as $font_name => $custom_font) {
                if ($option == 'stm_fonts_layout' && empty($custom_font['enabled'])) continue;
                $json_file = $base_path . '/' . $custom_font['folder'] . '/selection.json';
                $custom_icons_json = json_decode($wp_filesystem->get_contents($json_file), true);
                if (!empty($custom_icons_json)) {
                    if (!empty($custom_icons_json['icons'])) {
                        $set_name = str_replace('stmicons', 'Hotel icons', $custom_icons_json['metadata']['name']);
                        if ($option == 'stm_fonts_layout') {
                            $set_name = ucfirst(str_replace('stmicons_', 'Hotel - ', $font_name));
                        }
                        $set_prefix = $custom_icons_json['preferences']['fontPref']['prefix'];
                        foreach ($custom_icons_json['icons'] as $icon) {
                            $fonts[$set_name][] = array(
                                $set_prefix . $icon['properties']['name'] => $set_prefix . $icon['properties']['name']
                            );
                        }
                    }
                }
            }
        }

        return $fonts;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit