💦 FULL SET: Changeset/ - HD Photos!

Changeset 3103118


Ignore:
Timestamp:
06/15/2024 02:25:10 PM (19 months ago)
Author:
mxp
Message:

update 3.1.15

Location:
mxp-dev-tools
Files:
1 deleted
7 edited
18 copied

Legend:

Unmodified
Added
Removed
  • mxp-dev-tools/tags/3.1.15/includes/db-optimize.php

    r3086819 r3103118  
    2828        $sql_name = $export_database . '-' . $export_table . '-' . date('Y-m-d-H-i-s') . '.sql';
    2929        $tmp_dir  = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    30         if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     30        if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    3131            $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    3232        }
     
    174174            $zip_file_name = $sql_name . '.zip';
    175175            $tmp_dir       = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    176             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     176            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    177177                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    178178            }
     
    243243        $dump_file_name = $database . '-' . date('Y-m-d-H-i-s') . '.sql';
    244244        $tmp_dir        = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    245         if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     245        if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    246246            $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    247247        }
     
    651651            $relative_path    = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up;
    652652            $tmp_dir          = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    653             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     653            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    654654                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    655655            }
     
    10461046            $relative_path    = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up;
    10471047            $tmp_dir          = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    1048             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     1048            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    10491049                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    10501050            }
     
    15381538        }
    15391539        $tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    1540         if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     1540        if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    15411541            $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    15421542        }
  • mxp-dev-tools/tags/3.1.15/includes/plugins-list.php

    r3086819 r3103118  
    274274            $zip_file_name = basename($path) . '.zip';
    275275            $tmp_dir       = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    276             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     276            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    277277                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    278278            }
     
    291291            $relative_path = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up;
    292292            $tmp_dir       = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    293             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     293            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    294294                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    295295            }
  • mxp-dev-tools/tags/3.1.15/index.php

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

    r3086819 r3103118  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.14
    10  * Version: 3.1.14
     9 * Stable tag: 3.1.15
     10 * Version: 3.1.15
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.1.15/mxp-site-manager.php

    r3086819 r3103118  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.14
    10  * Version: 3.1.14
     9 * Stable tag: 3.1.15
     10 * Version: 3.1.15
    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.1.14';
     41    public static $VERSION = '3.1.15';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/tags/3.1.15/mxp-snippets.php

    r3086819 r3103118  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.14
    10  * Version: 3.1.14
     9 * Stable tag: 3.1.15
     10 * Version: 3.1.15
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    359359        }
    360360        // 清除 OPCache 快取方法
    361         if (isset($_REQUEST['opcache_reset']) && function_exists('opcache_reset')) {
     361        if ((isset($_REQUEST['opcache_reset']) || isset($_REQUEST['flush_opcache']) || isset($_REQUEST['opcache_flush']) || isset($_REQUEST['debug'])) && function_exists('opcache_reset')) {
    362362            opcache_reset();
    363363        }
  • mxp-dev-tools/tags/3.1.15/readme.txt

    r3086819 r3103118  
    66Requires PHP: 5.6
    77Tested up to: 6.5
    8 Stable tag: 3.1.14
     8Stable tag: 3.1.15
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.1.15 =
     81
     82* 增加判斷匯出打包目錄是否可寫入,不可寫入則改為輸出至下載目錄處理
    7983
    8084= 3.1.14 =
  • mxp-dev-tools/trunk/includes/db-optimize.php

    r3086819 r3103118  
    2828        $sql_name = $export_database . '-' . $export_table . '-' . date('Y-m-d-H-i-s') . '.sql';
    2929        $tmp_dir  = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    30         if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     30        if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    3131            $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    3232        }
     
    174174            $zip_file_name = $sql_name . '.zip';
    175175            $tmp_dir       = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    176             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     176            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    177177                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    178178            }
     
    243243        $dump_file_name = $database . '-' . date('Y-m-d-H-i-s') . '.sql';
    244244        $tmp_dir        = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    245         if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     245        if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    246246            $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    247247        }
     
    651651            $relative_path    = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up;
    652652            $tmp_dir          = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    653             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     653            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    654654                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    655655            }
     
    10461046            $relative_path    = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up;
    10471047            $tmp_dir          = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    1048             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     1048            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    10491049                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    10501050            }
     
    15381538        }
    15391539        $tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    1540         if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     1540        if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    15411541            $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    15421542        }
  • mxp-dev-tools/trunk/includes/plugins-list.php

    r3086819 r3103118  
    274274            $zip_file_name = basename($path) . '.zip';
    275275            $tmp_dir       = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    276             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     276            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    277277                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    278278            }
     
    291291            $relative_path = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up;
    292292            $tmp_dir       = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    293             if (defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') {
     293            if ((defined('MDT_TMP_DIR') && MDT_TMP_DIR != 'TMP') || !is_writable($tmp_dir)) {
    294294                $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV";
    295295            }
  • mxp-dev-tools/trunk/index.php

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

    r3086819 r3103118  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.14
    10  * Version: 3.1.14
     9 * Stable tag: 3.1.15
     10 * Version: 3.1.15
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/mxp-site-manager.php

    r3086819 r3103118  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.14
    10  * Version: 3.1.14
     9 * Stable tag: 3.1.15
     10 * Version: 3.1.15
    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.1.14';
     41    public static $VERSION = '3.1.15';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/trunk/mxp-snippets.php

    r3086819 r3103118  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.14
    10  * Version: 3.1.14
     9 * Stable tag: 3.1.15
     10 * Version: 3.1.15
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    359359        }
    360360        // 清除 OPCache 快取方法
    361         if (isset($_REQUEST['opcache_reset']) && function_exists('opcache_reset')) {
     361        if ((isset($_REQUEST['opcache_reset']) || isset($_REQUEST['flush_opcache']) || isset($_REQUEST['opcache_flush']) || isset($_REQUEST['debug'])) && function_exists('opcache_reset')) {
    362362            opcache_reset();
    363363        }
  • mxp-dev-tools/trunk/readme.txt

    r3086819 r3103118  
    66Requires PHP: 5.6
    77Tested up to: 6.5
    8 Stable tag: 3.1.14
     8Stable tag: 3.1.15
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.1.15 =
     81
     82* 增加判斷匯出打包目錄是否可寫入,不可寫入則改為輸出至下載目錄處理
    7983
    8084= 3.1.14 =
Note: See TracChangeset for help on using the changeset viewer.