Plugin Directory

Changeset 3203360


Ignore:
Timestamp:
12/06/2024 02:56:51 AM (15 months ago)
Author:
mxp
Message:

update 3.3.4

Location:
mxp-dev-tools
Files:
5 edited
8 copied

Legend:

Unmodified
Added
Removed
  • mxp-dev-tools/tags/3.3.4/index.php

    r3191759 r3203360  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.3
    10  * Version: 3.3.3
     9 * Stable tag: 3.3.4
     10 * Version: 3.3.4
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION                   = '3.3.3';
     41    static $VERSION                   = '3.3.4';
    4242    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    4343    protected static $instance        = null;
  • mxp-dev-tools/tags/3.3.4/mxp-login-path.php

    r3191759 r3203360  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.3
    10  * Version: 3.3.3
     9 * Stable tag: 3.3.4
     10 * Version: 3.3.4
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.3.4/mxp-site-manager.php

    r3191759 r3203360  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.3
    10  * Version: 3.3.3
     9 * Stable tag: 3.3.4
     10 * Version: 3.3.4
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939class MDTSiteManager {
    4040    public $plugin_slug    = 'mdt-site-manager';
    41     public static $VERSION = '3.3.3';
     41    public static $VERSION = '3.3.4';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/tags/3.3.4/mxp-snippets.php

    r3191759 r3203360  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.3
    10  * Version: 3.3.3
     9 * Stable tag: 3.3.4
     10 * Version: 3.3.4
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    204204    define('MDT_BASIC_AUTH_ERROR_DISPLAY_TEXT', 'Authorization Required. 需要授權才能查看內容。');
    205205}
     206// Basic Authentication 登入功能暫時關閉的 GET param 參數鍵值名
     207if (! defined("MDT_BASIC_AUTH_BYPASS_KEY")) {
     208    define('MDT_BASIC_AUTH_BYPASS_KEY', 'passkey');
     209}
     210// Basic Authentication 登入功能暫時關閉的時間預設一個月
     211if (! defined("MDT_BASIC_AUTH_BYPASS_IN_SECONDS")) {
     212    define('MDT_BASIC_AUTH_BYPASS_IN_SECONDS', MONTH_IN_SECONDS);
     213}
     214
    206215class MDTSnippets {
    207216    public function __construct() {
     
    413422            add_action('template_redirect', array($this, 'basic_auth_protect'));
    414423        }
     424        add_filter('mxp_dev_basic_auth_bypass_check', array($this, 'mxp_dev_basic_auth_bypass_filter'));
    415425    }
    416426
     
    429439            }
    430440        }
     441    }
     442
     443    public function mxp_dev_basic_auth_bypass_filter($return) {
     444        if (isset($_GET[MDT_BASIC_AUTH_BYPASS_KEY])) {
     445            setcookie(MDT_BASIC_AUTH_BYPASS_KEY, true, time() + intval(MDT_BASIC_AUTH_BYPASS_IN_SECONDS), '/');
     446        }
     447        if (isset($_COOKIE[MDT_BASIC_AUTH_BYPASS_KEY]) || isset($_GET[MDT_BASIC_AUTH_BYPASS_KEY])) {
     448            return false;
     449        }
     450        return $return;
    431451    }
    432452
  • mxp-dev-tools/tags/3.3.4/readme.txt

    r3191759 r3203360  
    66Requires PHP: 5.6
    77Tested up to: 6.7
    8 Stable tag: 3.3.3
     8Stable tag: 3.3.4
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.3.4 =
     81
     82* 新增開始 Basic Auth 驗證的跳脫關鍵字方式,以及設定 cookie 紀錄的時間長,預設一個月
    7983
    8084= 3.3.3 =
  • mxp-dev-tools/trunk/index.php

    r3191759 r3203360  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.3
    10  * Version: 3.3.3
     9 * Stable tag: 3.3.4
     10 * Version: 3.3.4
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION                   = '3.3.3';
     41    static $VERSION                   = '3.3.4';
    4242    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    4343    protected static $instance        = null;
  • mxp-dev-tools/trunk/mxp-login-path.php

    r3191759 r3203360  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.3
    10  * Version: 3.3.3
     9 * Stable tag: 3.3.4
     10 * Version: 3.3.4
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/mxp-site-manager.php

    r3191759 r3203360  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.3
    10  * Version: 3.3.3
     9 * Stable tag: 3.3.4
     10 * Version: 3.3.4
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939class MDTSiteManager {
    4040    public $plugin_slug    = 'mdt-site-manager';
    41     public static $VERSION = '3.3.3';
     41    public static $VERSION = '3.3.4';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/trunk/mxp-snippets.php

    r3191759 r3203360  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.3
    10  * Version: 3.3.3
     9 * Stable tag: 3.3.4
     10 * Version: 3.3.4
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    204204    define('MDT_BASIC_AUTH_ERROR_DISPLAY_TEXT', 'Authorization Required. 需要授權才能查看內容。');
    205205}
     206// Basic Authentication 登入功能暫時關閉的 GET param 參數鍵值名
     207if (! defined("MDT_BASIC_AUTH_BYPASS_KEY")) {
     208    define('MDT_BASIC_AUTH_BYPASS_KEY', 'passkey');
     209}
     210// Basic Authentication 登入功能暫時關閉的時間預設一個月
     211if (! defined("MDT_BASIC_AUTH_BYPASS_IN_SECONDS")) {
     212    define('MDT_BASIC_AUTH_BYPASS_IN_SECONDS', MONTH_IN_SECONDS);
     213}
     214
    206215class MDTSnippets {
    207216    public function __construct() {
     
    413422            add_action('template_redirect', array($this, 'basic_auth_protect'));
    414423        }
     424        add_filter('mxp_dev_basic_auth_bypass_check', array($this, 'mxp_dev_basic_auth_bypass_filter'));
    415425    }
    416426
     
    429439            }
    430440        }
     441    }
     442
     443    public function mxp_dev_basic_auth_bypass_filter($return) {
     444        if (isset($_GET[MDT_BASIC_AUTH_BYPASS_KEY])) {
     445            setcookie(MDT_BASIC_AUTH_BYPASS_KEY, true, time() + intval(MDT_BASIC_AUTH_BYPASS_IN_SECONDS), '/');
     446        }
     447        if (isset($_COOKIE[MDT_BASIC_AUTH_BYPASS_KEY]) || isset($_GET[MDT_BASIC_AUTH_BYPASS_KEY])) {
     448            return false;
     449        }
     450        return $return;
    431451    }
    432452
  • mxp-dev-tools/trunk/readme.txt

    r3191759 r3203360  
    66Requires PHP: 5.6
    77Tested up to: 6.7
    8 Stable tag: 3.3.3
     8Stable tag: 3.3.4
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.3.4 =
     81
     82* 新增開始 Basic Auth 驗證的跳脫關鍵字方式,以及設定 cookie 紀錄的時間長,預設一個月
    7983
    8084= 3.3.3 =
Note: See TracChangeset for help on using the changeset viewer.