Plugin Directory

Changeset 2686491


Ignore:
Timestamp:
03/01/2022 09:31:01 AM (4 years ago)
Author:
creativebrahma
Message:

Security update

Location:
multifox-plus/trunk
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • multifox-plus/trunk/freemius/includes/class-freemius.php

    r2648960 r2686491  
    35513551         */
    35523552        static function _toggle_debug_mode() {
     3553            check_admin_referer( 'fs_toggle_debug_mode' );
     3554
    35533555            if ( ! is_super_admin() ) {
    35543556                return;
     
    35723574         */
    35733575        static function _get_debug_log() {
     3576            check_admin_referer( 'fs_get_debug_log' );
     3577
     3578            if ( ! is_super_admin() ) {
     3579                return;
     3580            }
     3581
     3582            $limit  = min( ! empty( $_POST['limit'] ) ? absint( $_POST['limit'] ) : 200, 200 );
     3583            $offset = min( ! empty( $_POST['offset'] ) ? absint( $_POST['offset'] ) : 200, 200 );
     3584
    35743585            $logs = FS_Logger::load_db_logs(
    35753586                fs_request_get( 'filters', false, 'post' ),
    3576                 ! empty( $_POST['limit'] ) && is_numeric( $_POST['limit'] ) ? $_POST['limit'] : 200,
    3577                 ! empty( $_POST['offset'] ) && is_numeric( $_POST['offset'] ) ? $_POST['offset'] : 0
     3587                $limit,
     3588                $offset
    35783589            );
    35793590
     
    44484459         */
    44494460        function _email_about_firewall_issue() {
     4461            check_admin_referer( 'fs_resolve_firewall_issues' );
     4462
     4463            if ( ! current_user_can( is_multisite() ? 'manage_options' : 'activate_plugins' ) ) {
     4464                return;
     4465            }
     4466
    44504467            $this->_admin_notices->remove_sticky( 'failed_connect_api' );
    44514468
     
    45224539         */
    45234540        function _retry_connectivity_test() {
     4541            check_admin_referer( 'fs_retry_connectivity_test' );
     4542
     4543            if ( ! current_user_can( is_multisite() ? 'manage_options' : 'activate_plugins' ) ) {
     4544                return;
     4545            }
     4546
    45244547            $this->_admin_notices->remove_sticky( 'failed_connect_api_first' );
    45254548
  • multifox-plus/trunk/freemius/includes/managers/class-fs-admin-notice-manager.php

    r2648960 r2686491  
    176176         */
    177177        function dismiss_notice_ajax_callback() {
    178             $this->_sticky_storage->remove( $_POST['message_id'] );
     178            check_admin_referer( 'fs_dismiss_notice_action' );
     179
     180            if ( ! is_numeric( $_POST['message_id'] ) ) {
     181                $this->_sticky_storage->remove( $_POST['message_id'] );
     182            }
     183
    179184            wp_die();
    180185        }
  • multifox-plus/trunk/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php

    r2648960 r2686491  
    11<?php
     2    if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4    }
     5
    26    if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) {
    37        exit;
  • multifox-plus/trunk/freemius/includes/sdk/Exceptions/EmptyArgumentException.php

    r2648960 r2686491  
    11<?php
     2    if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4    }
     5
    26    if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) {
    37        exit;
  • multifox-plus/trunk/freemius/includes/sdk/Exceptions/Exception.php

    r2648960 r2686491  
    11<?php
     2        if ( ! defined( 'ABSPATH' ) ) {
     3            exit;
     4        }
     5
    26    if ( ! class_exists( 'Freemius_Exception' ) ) {
    37        /**
  • multifox-plus/trunk/freemius/includes/sdk/Exceptions/InvalidArgumentException.php

    r2648960 r2686491  
    11<?php
     2    if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4    }
     5
    26    if ( ! class_exists( 'Freemius_Exception' ) ) {
    37        exit;
  • multifox-plus/trunk/freemius/includes/sdk/Exceptions/OAuthException.php

    r2648960 r2686491  
    11<?php
     2    if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4    }
     5
    26    if ( ! class_exists( 'Freemius_Exception' ) ) {
    37        exit;
  • multifox-plus/trunk/freemius/includes/sdk/FreemiusBase.php

    r2648960 r2686491  
    1616     */
    1717
     18    if ( ! defined( 'ABSPATH' ) ) {
     19        exit;
     20    }
     21
    1822    if ( ! defined( 'FS_API__VERSION' ) ) {
    1923        define( 'FS_API__VERSION', '1' );
  • multifox-plus/trunk/freemius/includes/sdk/FreemiusWordPress.php

    r2648960 r2686491  
    1515     * under the License.
    1616     */
     17    if ( ! defined( 'ABSPATH' ) ) {
     18        exit;
     19    }
    1720
    1821    require_once dirname( __FILE__ ) . '/FreemiusBase.php';
  • multifox-plus/trunk/freemius/require.php

    r2648960 r2686491  
    66     * @since       1.1.9
    77     */
     8
     9    if ( ! defined( 'ABSPATH' ) ) {
     10        exit;
     11    }
    812
    913    // Configuration should be loaded first.
  • multifox-plus/trunk/freemius/start.php

    r2648960 r2686491  
    1616     * @var string
    1717     */
    18     $this_sdk_version = '2.4.2';
     18    $this_sdk_version = '2.4.3';
    1919
    2020    #region SDK Selection Logic --------------------------------------------------------------------
  • multifox-plus/trunk/freemius/templates/account/partials/addon.php

    r2648960 r2686491  
    11<?php
     2
     3    if ( ! defined( 'ABSPATH' ) ) {
     4        exit;
     5    }
     6
    27    /**
    38     * @var array    $VARS
  • multifox-plus/trunk/freemius/templates/ajax-loader.php

    r2648960 r2686491  
     1<?php
     2    if ( ! defined( 'ABSPATH' ) ) {
     3        exit;
     4    }
     5?>
    16<div class="fs-ajax-loader" style="display: none"><?php for ( $i = 1; $i <= 8; $i ++ ) : ?><div class="fs-ajax-loader-bar fs-ajax-loader-bar-<?php echo $i ?>"></div><?php endfor ?></div>
  • multifox-plus/trunk/freemius/templates/debug.php

    r2648960 r2686491  
    3838                    $.post( ajaxurl, {
    3939                        action: 'fs_toggle_debug_mode',
     40                        // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
     41                        _wpnonce   : <?php echo wp_json_encode( wp_create_nonce( 'fs_toggle_debug_mode' ) ); ?>,
    4042                        is_on : ($(this).hasClass( 'fs-on' ) ? 1 : 0)
    4143                    }, function ( response ) {
     
    112114                $.post(ajaxurl, {
    113115                    action     : 'fs_get_db_option',
    114                     _wpnonce   : '<?php echo wp_create_nonce( 'fs_get_db_option' ) ?>',
     116                    // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
     117                    _wpnonce   : <?php echo wp_json_encode( wp_create_nonce( 'fs_get_db_option' ) ); ?>,
    115118                    option_name: optionName
    116119                }, function (response) {
     
    132135                    $.post(ajaxurl, {
    133136                        action      : 'fs_set_db_option',
    134                         _wpnonce   : '<?php echo wp_create_nonce( 'fs_set_db_option' ) ?>',
     137                        // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
     138                        _wpnonce    : <?php echo wp_json_encode( wp_create_nonce( 'fs_set_db_option' ) ); ?>,
    135139                        option_name : optionName,
    136140                        option_value: optionValue
     
    725729                $.post(ajaxurl, {
    726730                    action : 'fs_get_debug_log',
     731                    // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
     732                    _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_get_debug_log' ) ); ?>,
    727733                    filters: filters,
    728734                    offset : offset,
  • multifox-plus/trunk/freemius/templates/firewall-issues-js.php

    r2648960 r2686491  
    2323                ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' );
    2424
    25             var data = {
    26                 action    : 'fs_resolve_firewall_issues_' + ajaxActionSuffix,
    27                 error_type: error_type
    28             };
     25            var data = {
     26                action   : 'fs_resolve_firewall_issues_' + ajaxActionSuffix,
     27                // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
     28                _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_resolve_firewall_issues' ) ); ?>,
     29                error_type: error_type
     30            };
    2931
    3032            if ( 'squid' === error_type ) {
     
    4042
    4143            if ( 'retry_ping' === error_type ) {
    42                 data.action = 'fs_retry_connectivity_test_' + ajaxActionSuffix;
     44                data.action   = 'fs_retry_connectivity_test_' + ajaxActionSuffix;
     45                // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
     46                data._wpnonce = <?php echo wp_json_encode( wp_create_nonce( 'fs_retry_connectivity_test' ) ); ?>;
    4347            }
    4448
  • multifox-plus/trunk/freemius/templates/partials/network-activation.php

    r2648960 r2686491  
    11<?php
     2
     3    if ( ! defined( 'ABSPATH' ) ) {
     4        exit;
     5    }
     6
    27    /**
    38     * @var array $VARS
  • multifox-plus/trunk/freemius/templates/sticky-admin-notice-js.php

    r2648960 r2686491  
    2424            notice.fadeOut( 'fast', function() {
    2525                var data = {
    26                     action    : 'fs_dismiss_notice_action_' + ajaxActionSuffix,
     26                    action   : 'fs_dismiss_notice_action_' + ajaxActionSuffix,
     27                    // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
     28                    _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_dismiss_notice_action' ) ); ?>,
    2729                    message_id: id
    2830                };
  • multifox-plus/trunk/modules/header/assets/css/header.css

    r2653126 r2686491  
    219219    }
    220220
    221     .align-inline .elementor-widget-mfx-header-menu, .align-inline .elementor-widget-mfx-header-icons { width: auto !important; }
    222 
    223221
    224222/*--------------------------------------------------------------
  • multifox-plus/trunk/modules/menu/elementor/widgets/assets/css/header-icons.css

    r2653126 r2686491  
    275275        left: auto;
    276276        right: 8px;
    277         top: 0;
     277        top: 50%;
    278278
    279279        width: 20em;
    280280        z-index: 1;
     281        -webkit-transform: translateY(-50%);
     282        transform: translateY(-50%);
    281283    }
    282284
     
    315317    }
    316318
    317 
     319/*
    318320    @-moz-document url-prefix() {
    319321        .mfx-header-icons-list>div.search-item.search-expand .mfx-search-form-container {
     
    326328            top: 0;
    327329        }
    328     }
     330    } */
    329331
    330332    _:default:not(:root:root),
  • multifox-plus/trunk/modules/menu/elementor/widgets/header-menu/class-widget-header-menu.php

    r2642360 r2686491  
    3232            'label' => esc_html__( 'General', 'multifox-plus'),
    3333        ) );
     34            $this->add_control( 'nav_type', array(
     35                'type'    => Controls_Manager::SELECT,
     36                'label'   => esc_html__('Navigation Type', 'multifox-plus'),
     37                'default' => 'primary-nav',
     38                'options' => array(
     39                    'primary-nav' => esc_html__('Primary Nav','multifox-plus'),
     40                    'secondary-nav' => esc_html__('Secondary Nav','multifox-plus')
     41                )
     42            ) );
     43
    3444            $this->add_control( 'nav_id', array(
    3545                'type'    => Controls_Manager::SELECT,
     
    145155        extract($settings);
    146156
     157        $nav_class = '';
     158        if($nav_type == 'secondary-nav') {
     159            $nav_class = 'mfx-secondary-nav';
     160        }
     161
    147162        $navigation = wp_nav_menu( array(
    148163            'menu'            => $nav_id,
    149164            'container_class' => 'menu-container',
    150165            'items_wrap'      => '<ul id="%1$s" class="%2$s" data-menu="'.esc_attr($nav_id).'"> <li class="close-nav"><a href="javascript:void(0);"></a></li> %3$s </ul> <div class="sub-menu-overlay"></div>',
    151             'menu_class'      => 'mfx-primary-nav',
     166            'menu_class'      => 'mfx-primary-nav '.$nav_class,
    152167            'link_before'     => '<span>',
    153168            'link_after'      => '</span>',
     
    160175            $out .= $navigation;
    161176
    162             $out .= '<div class="mobile-nav-container mobile-nav-offcanvas-right" data-menu="'.esc_attr( $nav_id ).'">';
    163                 $out .= '<a href="#" class="menu-trigger menu-trigger-icon" data-menu="'.esc_attr( $nav_id ).'">';
    164                     $out .= '<i></i>';
    165                     $out .= '<span>'.esc_html__('Menu', 'multifox-plus').'</span>';
    166                 $out .= '</a>';
    167                 $out .= '<div class="mobile-menu" data-menu="'.esc_attr( $nav_id ).'"></div>';
    168                 $out .= '<div class="overlay"></div>';
    169             $out .= '</div>';
     177            if($nav_type == 'primary-nav') {
     178                $out .= '<div class="mobile-nav-container mobile-nav-offcanvas-right" data-menu="'.esc_attr( $nav_id ).'">';
     179                    $out .= '<a href="#" class="menu-trigger menu-trigger-icon" data-menu="'.esc_attr( $nav_id ).'">';
     180                        $out .= '<i></i>';
     181                        $out .= '<span>'.esc_html__('Menu', 'multifox-plus').'</span>';
     182                    $out .= '</a>';
     183                    $out .= '<div class="mobile-menu" data-menu="'.esc_attr( $nav_id ).'"></div>';
     184                    $out .= '<div class="overlay"></div>';
     185                $out .= '</div>';
     186            }
    170187
    171188        $out .= '</div>';
  • multifox-plus/trunk/multifox-plus.php

    r2671240 r2686491  
    33 * Plugin Name: Multifox Plus
    44 * Description: Adds additional features for Multifox Theme.
    5  * Version: 1.1.0
     5 * Version: 1.1.1
    66 * Author: Creative Brahma
    77 * Author URI: https://profiles.wordpress.org/creativebrahma/
  • multifox-plus/trunk/readme.txt

    r2671240 r2686491  
    55Requires at least: 5.0
    66Tested up to: 5.9
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88Requires PHP: 7.1
    99Version: 1.1.0
     
    3939
    4040== Changelog ==
     41
     42= 1.1.1 =
     43
     44    * Security update
    4145
    4246= 1.1.0 =
Note: See TracChangeset for help on using the changeset viewer.