Changeset 3103118
- Timestamp:
- 06/15/2024 02:25:10 PM (19 months ago)
- Location:
- mxp-dev-tools
- Files:
-
- 1 deleted
- 7 edited
- 18 copied
-
tags/3.1.14 (deleted)
-
tags/3.1.15 (copied) (copied from mxp-dev-tools/trunk)
-
tags/3.1.15/includes/assets/js/dashboard/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/dashboard/app.js)
-
tags/3.1.15/includes/assets/js/db-optimize/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/db-optimize/app.js)
-
tags/3.1.15/includes/assets/js/plugins-list/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/plugins-list/app.js)
-
tags/3.1.15/includes/assets/js/search-plugins/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/search-plugins/app.js)
-
tags/3.1.15/includes/assets/js/site-manager (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/site-manager)
-
tags/3.1.15/includes/assets/js/site-manager/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/site-manager/app.js)
-
tags/3.1.15/includes/class_plugins_list_table.php (copied) (copied from mxp-dev-tools/trunk/includes/class_plugins_list_table.php)
-
tags/3.1.15/includes/db-optimize.php (copied) (copied from mxp-dev-tools/trunk/includes/db-optimize.php) (6 diffs)
-
tags/3.1.15/includes/hooks-usage.php (copied) (copied from mxp-dev-tools/trunk/includes/hooks-usage.php)
-
tags/3.1.15/includes/plugins-list.php (copied) (copied from mxp-dev-tools/trunk/includes/plugins-list.php) (2 diffs)
-
tags/3.1.15/includes/utility.php (copied) (copied from mxp-dev-tools/trunk/includes/utility.php)
-
tags/3.1.15/index.php (copied) (copied from mxp-dev-tools/trunk/index.php) (2 diffs)
-
tags/3.1.15/mxp-login-path.php (copied) (copied from mxp-dev-tools/trunk/mxp-login-path.php) (1 diff)
-
tags/3.1.15/mxp-site-manager.php (copied) (copied from mxp-dev-tools/trunk/mxp-site-manager.php) (2 diffs)
-
tags/3.1.15/mxp-snippets.php (copied) (copied from mxp-dev-tools/trunk/mxp-snippets.php) (2 diffs)
-
tags/3.1.15/readme.txt (copied) (copied from mxp-dev-tools/trunk/readme.txt) (2 diffs)
-
tags/3.1.15/uninstall.php (copied) (copied from mxp-dev-tools/trunk/uninstall.php)
-
trunk/includes/db-optimize.php (modified) (6 diffs)
-
trunk/includes/plugins-list.php (modified) (2 diffs)
-
trunk/index.php (modified) (2 diffs)
-
trunk/mxp-login-path.php (modified) (1 diff)
-
trunk/mxp-site-manager.php (modified) (2 diffs)
-
trunk/mxp-snippets.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mxp-dev-tools/tags/3.1.15/includes/db-optimize.php
r3086819 r3103118 28 28 $sql_name = $export_database . '-' . $export_table . '-' . date('Y-m-d-H-i-s') . '.sql'; 29 29 $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)) { 31 31 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 32 32 } … … 174 174 $zip_file_name = $sql_name . '.zip'; 175 175 $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)) { 177 177 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 178 178 } … … 243 243 $dump_file_name = $database . '-' . date('Y-m-d-H-i-s') . '.sql'; 244 244 $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)) { 246 246 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 247 247 } … … 651 651 $relative_path = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up; 652 652 $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)) { 654 654 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 655 655 } … … 1046 1046 $relative_path = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up; 1047 1047 $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)) { 1049 1049 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 1050 1050 } … … 1538 1538 } 1539 1539 $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)) { 1541 1541 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 1542 1542 } -
mxp-dev-tools/tags/3.1.15/includes/plugins-list.php
r3086819 r3103118 274 274 $zip_file_name = basename($path) . '.zip'; 275 275 $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)) { 277 277 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 278 278 } … … 291 291 $relative_path = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up; 292 292 $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)) { 294 294 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 295 295 } -
mxp-dev-tools/tags/3.1.15/index.php
r3086819 r3103118 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 410 * Version: 3.1.1 49 * Stable tag: 3.1.15 10 * Version: 3.1.15 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 39 39 use SearchReplace; 40 40 use Utility; 41 static $VERSION = '3.1.1 4';41 static $VERSION = '3.1.15'; 42 42 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 43 43 protected static $instance = null; -
mxp-dev-tools/tags/3.1.15/mxp-login-path.php
r3086819 r3103118 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 410 * Version: 3.1.1 49 * Stable tag: 3.1.15 10 * Version: 3.1.15 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/tags/3.1.15/mxp-site-manager.php
r3086819 r3103118 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 410 * Version: 3.1.1 49 * Stable tag: 3.1.15 10 * Version: 3.1.15 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 39 39 class MDTSiteManager { 40 40 public $plugin_slug = 'mdt-site-manager'; 41 public static $VERSION = '3.1.1 4';41 public static $VERSION = '3.1.15'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/tags/3.1.15/mxp-snippets.php
r3086819 r3103118 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 410 * Version: 3.1.1 49 * Stable tag: 3.1.15 10 * Version: 3.1.15 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 359 359 } 360 360 // 清除 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')) { 362 362 opcache_reset(); 363 363 } -
mxp-dev-tools/tags/3.1.15/readme.txt
r3086819 r3103118 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.5 8 Stable tag: 3.1.1 48 Stable tag: 3.1.15 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 77 77 78 78 == Changelog == 79 80 = 3.1.15 = 81 82 * 增加判斷匯出打包目錄是否可寫入,不可寫入則改為輸出至下載目錄處理 79 83 80 84 = 3.1.14 = -
mxp-dev-tools/trunk/includes/db-optimize.php
r3086819 r3103118 28 28 $sql_name = $export_database . '-' . $export_table . '-' . date('Y-m-d-H-i-s') . '.sql'; 29 29 $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)) { 31 31 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 32 32 } … … 174 174 $zip_file_name = $sql_name . '.zip'; 175 175 $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)) { 177 177 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 178 178 } … … 243 243 $dump_file_name = $database . '-' . date('Y-m-d-H-i-s') . '.sql'; 244 244 $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)) { 246 246 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 247 247 } … … 651 651 $relative_path = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up; 652 652 $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)) { 654 654 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 655 655 } … … 1046 1046 $relative_path = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up; 1047 1047 $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)) { 1049 1049 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 1050 1050 } … … 1538 1538 } 1539 1539 $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)) { 1541 1541 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 1542 1542 } -
mxp-dev-tools/trunk/includes/plugins-list.php
r3086819 r3103118 274 274 $zip_file_name = basename($path) . '.zip'; 275 275 $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)) { 277 277 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 278 278 } … … 291 291 $relative_path = realpath(dirname($path) . '/..'); //for support php5.3 up | dirname($path, 2) php7.0 up; 292 292 $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)) { 294 294 $tmp_dir = ABSPATH . DIRECTORY_SEPARATOR . "wp-content" . DIRECTORY_SEPARATOR . "uploads" . DIRECTORY_SEPARATOR . "MXPDEV"; 295 295 } -
mxp-dev-tools/trunk/index.php
r3086819 r3103118 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 410 * Version: 3.1.1 49 * Stable tag: 3.1.15 10 * Version: 3.1.15 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 39 39 use SearchReplace; 40 40 use Utility; 41 static $VERSION = '3.1.1 4';41 static $VERSION = '3.1.15'; 42 42 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 43 43 protected static $instance = null; -
mxp-dev-tools/trunk/mxp-login-path.php
r3086819 r3103118 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 410 * Version: 3.1.1 49 * Stable tag: 3.1.15 10 * Version: 3.1.15 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/trunk/mxp-site-manager.php
r3086819 r3103118 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 410 * Version: 3.1.1 49 * Stable tag: 3.1.15 10 * Version: 3.1.15 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 39 39 class MDTSiteManager { 40 40 public $plugin_slug = 'mdt-site-manager'; 41 public static $VERSION = '3.1.1 4';41 public static $VERSION = '3.1.15'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/trunk/mxp-snippets.php
r3086819 r3103118 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 410 * Version: 3.1.1 49 * Stable tag: 3.1.15 10 * Version: 3.1.15 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 359 359 } 360 360 // 清除 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')) { 362 362 opcache_reset(); 363 363 } -
mxp-dev-tools/trunk/readme.txt
r3086819 r3103118 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.5 8 Stable tag: 3.1.1 48 Stable tag: 3.1.15 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 77 77 78 78 == Changelog == 79 80 = 3.1.15 = 81 82 * 增加判斷匯出打包目錄是否可寫入,不可寫入則改為輸出至下載目錄處理 79 83 80 84 = 3.1.14 =
Note: See TracChangeset
for help on using the changeset viewer.