shell bypass 403

GrazzMean-Shell Shell

Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : class-customize.php
<?php
if (!defined('ABSPATH')) {
    exit;
}
if (!class_exists('Motiox_Customize')) {

    class Motiox_Customize {


        public function __construct() {
            add_action('customize_register', array($this, 'customize_register'));
        }

        public function get_banner() {
            global $post;

            $options[''] = esc_html__('Select Banner', 'motiox');
            if (!motiox_is_elementor_activated()) {
                return;
            }
            $args = array(
                'post_type'      => 'elementor_library',
                'posts_per_page' => -1,
                'orderby'        => 'title',
                's'              => 'Banner ',
                'order'          => 'ASC',
            );

            $query = new WP_Query($args);
            while ($query->have_posts()) {
                $query->the_post();
                $options[$post->post_name] = $post->post_title;
            }

            wp_reset_postdata();
            return $options;
        }

        public function get_product_extra_template() {
            global $post;

            $options[''] = esc_html__('Select Template', 'motiox');
            if (!motiox_is_elementor_activated()) {
                return;
            }
            $args = array(
                'post_type'      => 'elementor_library',
                'posts_per_page' => -1,
                'orderby'        => 'title',
                's'              => 'Product',
                'order'          => 'ASC',
            );

            $query1 = new WP_Query($args);
            while ($query1->have_posts()) {
                $query1->the_post();
                $options[$post->post_name] = $post->post_title;
            }

            wp_reset_postdata();
            return $options;
        }

        public function get_top_blog_template() {
            global $post;

            $options[''] = esc_html__('Select Block', 'motiox');
            if (!motiox_is_elementor_activated()) {
                return;
            }
            $args = array(
                'post_type'      => 'elementor_library',
                'posts_per_page' => -1,
                'orderby'        => 'title',
                's'              => 'Blog ',
                'order'          => 'ASC',
            );

            $query1 = new WP_Query($args);
            while ($query1->have_posts()) {
                $query1->the_post();
                $options[$post->post_name] = $post->post_title;
            }

            wp_reset_postdata();
            return $options;
        }

        public function motiox_active_callback_show_top_block($control) {
            $setting = $control->manager->get_setting('motiox_options_show_top_blog');
            $show    = $setting->value();

            return $show === 'yes';
        }

        public function get_contact_forms() {
            $cf7               = get_posts('post_type="wpcf7_contact_form"&numberposts=-1');
            $contact_forms[''] = esc_html__('Please select form', 'motiox');
            if ($cf7) {
                foreach ($cf7 as $cform) {
                    $contact_forms[$cform->ID] = $cform->post_title;
                }
            } else {
                $contact_forms[0] = esc_html__('No contact forms found', 'motiox');
            }
            return $contact_forms;
        }

        public function customize_register($wp_customize) {
            /**
             * Theme options.
             */
            $this->init_motiox_blog($wp_customize);
            $this->motiox_register_theme_customizer($wp_customize);

            if (motiox_is_post_type_project()) {
                $this->init_motiox_project($wp_customize);
            }

            $this->init_motiox_preload($wp_customize);
            $this->init_motiox_cursor($wp_customize);

            do_action('motiox_customize_register', $wp_customize);
        }

        function motiox_register_theme_customizer($wp_customize) {

        } // end motiox_register_theme_customizer

        /**
         * @param $wp_customize WP_Customize_Manager
         *
         * @return void
         */
        public function init_motiox_blog($wp_customize) {

            $wp_customize->add_panel('motiox_blog', array(
                'title' => esc_html__('Blog', 'motiox'),
            ));

            // =========================================
            // Blog Archive
            // =========================================
            $wp_customize->add_section('motiox_blog_archive', array(
                'title'      => esc_html__('Archive', 'motiox'),
                'panel'      => 'motiox_blog',
                'capability' => 'edit_theme_options',
            ));

            $wp_customize->add_setting('motiox_options_blog_sidebar', array(
                'type'              => 'option',
                'default'           => 'left',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_blog_sidebar', array(
                'section' => 'motiox_blog_archive',
                'label'   => esc_html__('Sidebar Position', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    'none'  => esc_html__('None', 'motiox'),
                    'left'  => esc_html__('Left', 'motiox'),
                    'right' => esc_html__('Right', 'motiox'),
                ),
            ));

            if (motiox_is_elementor_activated()) {
                $wp_customize->add_setting('motiox_options_show_top_blog', array(
                    'type'              => 'option',
                    'default'           => 'no',
                    'sanitize_callback' => 'sanitize_text_field',
                ));

                $wp_customize->add_control('motiox_options_show_top_blog', array(
                    'section' => 'motiox_blog_archive',
                    'label'   => esc_html__('Show Top Block', 'motiox'),
                    'type'    => 'select',
                    'choices' => [
                        'no'  => esc_html__('No', 'motiox'),
                        'yes' => esc_html__('Yes', 'motiox'),
                    ]
                ));

                $wp_customize->add_setting('motiox_options_top_blog_template', array(
                    'type'              => 'option',
                    'default'           => '',
                    'sanitize_callback' => 'sanitize_text_field',
                ));

                $wp_customize->add_control('motiox_options_top_blog_template', array(
                    'section'         => 'motiox_blog_archive',
                    'label'           => esc_html__('Choose Block', 'motiox'),
                    'type'            => 'select',
                    'description'     => esc_html__('Block will take templates name prefix is "Blog"', 'motiox'),
                    'choices'         => $this->get_top_blog_template(),
                    'active_callback' => [$this, 'motiox_active_callback_show_top_block'],
                ));
            }

            $wp_customize->add_setting('motiox_options_blog_style', array(
                'type'              => 'option',
                'default'           => 'standard',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_blog_style', array(
                'section' => 'motiox_blog_archive',
                'label'   => esc_html__('Blog style', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    'standard' => esc_html__('Blog Standard', 'motiox'),
                    'grid'     => esc_html__('Blog Grid', 'motiox'),
                    'modern'   => esc_html__('Blog Modern', 'motiox'),
                ),
            ));

            $wp_customize->add_setting('motiox_options_blog_columns', array(
                'type'              => 'option',
                'default'           => 3,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_blog_columns', array(
                'section' => 'motiox_blog_archive',
                'label'   => esc_html__('Columns', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'motiox'),
                    2 => esc_html__('2', 'motiox'),
                    3 => esc_html__('3', 'motiox'),
                    4 => esc_html__('4', 'motiox'),
                ),
            ));

            $wp_customize->add_setting('motiox_options_blog_columns_laptop', array(
                'type'              => 'option',
                'default'           => 3,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_blog_columns_laptop', array(
                'section' => 'motiox_blog_archive',
                'label'   => esc_html__('Columns Laptop', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'motiox'),
                    2 => esc_html__('2', 'motiox'),
                    3 => esc_html__('3', 'motiox'),
                    4 => esc_html__('4', 'motiox'),
                ),
            ));

            $wp_customize->add_setting('motiox_options_blog_columns_tablet', array(
                'type'              => 'option',
                'default'           => 2,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_blog_columns_tablet', array(
                'section' => 'motiox_blog_archive',
                'label'   => esc_html__('Columns Tablet', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'motiox'),
                    2 => esc_html__('2', 'motiox'),
                    3 => esc_html__('3', 'motiox'),
                    4 => esc_html__('4', 'motiox'),
                ),
            ));

            $wp_customize->add_setting('motiox_options_blog_columns_mobile', array(
                'type'              => 'option',
                'default'           => 1,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_blog_columns_mobile', array(
                'section' => 'motiox_blog_archive',
                'label'   => esc_html__('Columns Mobile', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'motiox'),
                    2 => esc_html__('2', 'motiox'),
                    3 => esc_html__('3', 'motiox'),
                    4 => esc_html__('4', 'motiox'),
                ),
            ));

            // =========================================
            // Blog Single
            // =========================================
            $wp_customize->add_section('motiox_blog_single', array(
                'title'      => esc_html__('Singular', 'motiox'),
                'panel'      => 'motiox_blog',
                'capability' => 'edit_theme_options',
            ));
            $wp_customize->add_setting('motiox_options_blog_single_sidebar', array(
                'type'              => 'option',
                'default'           => 'left',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_blog_single_sidebar', array(
                'section' => 'motiox_blog_single',
                'label'   => esc_html__('Sidebar Position', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    'none'  => esc_html__('None', 'motiox'),
                    'left'  => esc_html__('Left', 'motiox'),
                    'right' => esc_html__('Right', 'motiox'),
                ),
            ));
        }

        /**
         * @param $wp_customize WP_Customize_Manager
         *
         * @return void
         */

        public function init_motiox_project($wp_customize) {

            $wp_customize->add_panel('motiox_project', array(
                'title' => esc_html__('Project', 'motiox'),
            ));

            // =========================================
            // Project Archive
            // =========================================
            $wp_customize->add_section('motiox_project_archive', array(
                'title'      => esc_html__('Archive', 'motiox'),
                'panel'      => 'motiox_project',
                'capability' => 'edit_theme_options',
            ));

            $wp_customize->add_setting('motiox_options_project_style', array(
                'type'              => 'option',
                'default'           => '1',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_project_style', array(
                'section' => 'motiox_project_archive',
                'label'   => esc_html__('Project style', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    '1' => esc_html__('Style 1', 'motiox'),
                    '2' => esc_html__('Style 2', 'motiox'),
                    '3' => esc_html__('Style 3', 'motiox'),
                    '4' => esc_html__('Style 4', 'motiox'),
                ),
            ));

            $wp_customize->add_setting('motiox_options_project_columns', array(
                'type'              => 'option',
                'default'           => 2,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_project_columns', array(
                'section' => 'motiox_project_archive',
                'label'   => esc_html__('Columns', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'motiox'),
                    2 => esc_html__('2', 'motiox'),
                    3 => esc_html__('3', 'motiox'),
                    4 => esc_html__('4', 'motiox'),
                ),
            ));

            $wp_customize->add_setting('motiox_options_project_columns_laptop', array(
                'type'              => 'option',
                'default'           => 2,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_project_columns_laptop', array(
                'section' => 'motiox_project_archive',
                'label'   => esc_html__('Columns Laptop', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'motiox'),
                    2 => esc_html__('2', 'motiox'),
                    3 => esc_html__('3', 'motiox'),
                    4 => esc_html__('4', 'motiox'),
                ),
            ));

            $wp_customize->add_setting('motiox_options_project_columns_tablet', array(
                'type'              => 'option',
                'default'           => 2,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_project_columns_tablet', array(
                'section' => 'motiox_project_archive',
                'label'   => esc_html__('Columns Tablet', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'motiox'),
                    2 => esc_html__('2', 'motiox'),
                    3 => esc_html__('3', 'motiox'),
                    4 => esc_html__('4', 'motiox'),
                ),
            ));

            $wp_customize->add_setting('motiox_options_project_columns_mobile', array(
                'type'              => 'option',
                'default'           => 1,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_project_columns_mobile', array(
                'section' => 'motiox_project_archive',
                'label'   => esc_html__('Columns Mobile', 'motiox'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'motiox'),
                    2 => esc_html__('2', 'motiox'),
                    3 => esc_html__('3', 'motiox'),
                    4 => esc_html__('4', 'motiox'),
                ),
            ));
        }

        public function init_motiox_preload($wp_customize) {

            $wp_customize->add_section('motiox_preload_settings', array(
                'title'      => esc_html__('Preload Settings', 'motiox'),
                'capability' => 'edit_theme_options',
            ));

            $wp_customize->add_setting('motiox_options_preload', array(
                'type'              => 'option',
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_preload', array(
                'section' => 'motiox_preload_settings',
                'label'   => esc_html__('Show Preload', 'motiox'),
                'type'    => 'radio',
                'choices' => array(
                    'yes' => esc_html__('Yes', 'motiox'),
                    'no'  => esc_html__('No', 'motiox'),
                ),
            ));
        }

        public function init_motiox_cursor($wp_customize) {

            $wp_customize->add_section('motiox_cursor_settings', array(
                'title'      => esc_html__('Cursor Animation', 'motiox'),
                'capability' => 'edit_theme_options',
            ));

            $wp_customize->add_setting('motiox_options_cursor', array(
                'type'              => 'option',
                'default'           => 'yes',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('motiox_options_cursor', array(
                'section' => 'motiox_cursor_settings',
                'panel'   => 'motiox_cursor',
                'label'   => esc_html__('Show Cursor Animation', 'motiox'),
                'type'    => 'radio',
                'choices' => array(
                    'yes' => esc_html__('Yes', 'motiox'),
                    'no'  => esc_html__('No', 'motiox'),
                ),
            ));
        }
    }
}
return new Motiox_Customize();
© 2026 GrazzMean-Shell