Changeset 3086819
- Timestamp:
- 05/15/2024 04:39:49 AM (22 months ago)
- Location:
- mxp-dev-tools
- Files:
-
- 1 deleted
- 7 edited
- 18 copied
-
tags/3.1.13 (deleted)
-
tags/3.1.14 (copied) (copied from mxp-dev-tools/trunk)
-
tags/3.1.14/includes/assets/js/dashboard/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/dashboard/app.js)
-
tags/3.1.14/includes/assets/js/db-optimize/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/db-optimize/app.js)
-
tags/3.1.14/includes/assets/js/plugins-list/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/plugins-list/app.js)
-
tags/3.1.14/includes/assets/js/search-plugins/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/search-plugins/app.js)
-
tags/3.1.14/includes/assets/js/site-manager (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/site-manager)
-
tags/3.1.14/includes/assets/js/site-manager/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/site-manager/app.js)
-
tags/3.1.14/includes/class_plugins_list_table.php (copied) (copied from mxp-dev-tools/trunk/includes/class_plugins_list_table.php)
-
tags/3.1.14/includes/db-optimize.php (copied) (copied from mxp-dev-tools/trunk/includes/db-optimize.php) (3 diffs)
-
tags/3.1.14/includes/hooks-usage.php (copied) (copied from mxp-dev-tools/trunk/includes/hooks-usage.php)
-
tags/3.1.14/includes/plugins-list.php (copied) (copied from mxp-dev-tools/trunk/includes/plugins-list.php) (1 diff)
-
tags/3.1.14/includes/utility.php (copied) (copied from mxp-dev-tools/trunk/includes/utility.php)
-
tags/3.1.14/index.php (copied) (copied from mxp-dev-tools/trunk/index.php) (3 diffs)
-
tags/3.1.14/mxp-login-path.php (copied) (copied from mxp-dev-tools/trunk/mxp-login-path.php) (1 diff)
-
tags/3.1.14/mxp-site-manager.php (copied) (copied from mxp-dev-tools/trunk/mxp-site-manager.php) (2 diffs)
-
tags/3.1.14/mxp-snippets.php (copied) (copied from mxp-dev-tools/trunk/mxp-snippets.php) (2 diffs)
-
tags/3.1.14/readme.txt (copied) (copied from mxp-dev-tools/trunk/readme.txt) (2 diffs)
-
tags/3.1.14/uninstall.php (copied) (copied from mxp-dev-tools/trunk/uninstall.php)
-
trunk/includes/db-optimize.php (modified) (3 diffs)
-
trunk/includes/plugins-list.php (modified) (1 diff)
-
trunk/index.php (modified) (3 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.14/includes/db-optimize.php
r3078487 r3086819 8 8 trait DatabaseOptimize { 9 9 public function mxp_ajax_mysqldump() { 10 $check_zip_module = (class_exists('ZipArchive') && method_exists('ZipArchive', 'open')) ? true : false; 11 if (!$check_zip_module) { 12 die('未安裝/啟用 PHP ZIP 模組,無法呼叫 ZipArchive 方法打包。'); 13 } 10 14 set_time_limit(0); 11 15 ini_set("memory_limit", "-1"); … … 518 522 519 523 public function mxp_ajax_background_pack_action_batch_mode() { 524 $check_zip_module = (class_exists('ZipArchive') && method_exists('ZipArchive', 'open')) ? true : false; 525 if (!$check_zip_module) { 526 echo json_encode(array('success' => false, 'data' => array(), 'msg' => '未安裝/啟用 PHP ZIP 模組,無法呼叫 ZipArchive 方法打包。')); 527 exit; 528 } 520 529 if (!is_super_admin()) { 521 530 echo json_encode(array('success' => false, 'data' => array(), 'msg' => '此功能僅限網站最高權限管理人員使用!')); … … 906 915 907 916 public function mxp_ajax_background_pack_action() { 917 $check_zip_module = (class_exists('ZipArchive') && method_exists('ZipArchive', 'open')) ? true : false; 918 if (!$check_zip_module) { 919 wp_send_json(array('success' => false, 'data' => array(), 'msg' => '未安裝/啟用 PHP ZIP 模組,無法呼叫 ZipArchive 方法打包。')); 920 exit; 921 } 908 922 if (!is_super_admin()) { 909 923 wp_send_json(array('success' => false, 'data' => array(), 'msg' => '此功能僅限網站最高權限管理人員使用!')); -
mxp-dev-tools/tags/3.1.14/includes/plugins-list.php
r3077135 r3086819 241 241 242 242 public function mxp_ajax_current_plugin_download_action() { 243 243 $check_zip_module = (class_exists('ZipArchive') && method_exists('ZipArchive', 'open')) ? true : false; 244 if (!$check_zip_module) { 245 die('未安裝/啟用 PHP ZIP 模組,無法呼叫 ZipArchive 方法打包。'); 246 } 244 247 if (!is_super_admin()) { 245 248 exit('此功能僅限網站最高權限管理人員使用。'); -
mxp-dev-tools/tags/3.1.14/index.php
r3084309 r3086819 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 310 * Version: 3.1.1 39 * Stable tag: 3.1.14 10 * Version: 3.1.14 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 3';41 static $VERSION = '3.1.14'; 42 42 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 43 43 protected static $instance = null; … … 558 558 559 559 public function getwpconfig_page_cb() { 560 $this->page_wraper('查看網站各項設定(當前使用者 ID: ' . get_current_user_id() . ')', function () { 560 include ABSPATH . 'wp-includes/version.php'; 561 $this->page_wraper('查看網站各項設定(WP: ' . $wp_version . ' / User ID: ' . get_current_user_id() . ')', function () { 561 562 echo '<h2>網路資訊</h2></br>'; 562 563 $response = wp_remote_get('https://undo.im/json?v=' . self::$VERSION . '&from=' . get_site_url(), array('sslverify' => false, 'timeout' => 5)); -
mxp-dev-tools/tags/3.1.14/mxp-login-path.php
r3084309 r3086819 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 310 * Version: 3.1.1 39 * Stable tag: 3.1.14 10 * Version: 3.1.14 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/tags/3.1.14/mxp-site-manager.php
r3084309 r3086819 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 310 * Version: 3.1.1 39 * Stable tag: 3.1.14 10 * Version: 3.1.14 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 3';41 public static $VERSION = '3.1.14'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/tags/3.1.14/mxp-snippets.php
r3084309 r3086819 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 310 * Version: 3.1.1 39 * Stable tag: 3.1.14 10 * Version: 3.1.14 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 1061 1061 // 預設不顯示出系統輸出的作者連結與頁面,避免資安問題 1062 1062 public function hide_author_name($name) { 1063 if (is_admin()) { 1064 return $name; 1065 } 1063 1066 global $authordata; 1064 1067 if (is_object($authordata)) { -
mxp-dev-tools/tags/3.1.14/readme.txt
r3084309 r3086819 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.5 8 Stable tag: 3.1.1 38 Stable tag: 3.1.14 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.14 = 81 82 * 修正後台文章作者因為安全性顯示「小編」的問題 83 * 增加判斷伺服器是否有啟用 ZipArchive 功能 79 84 80 85 = 3.1.13 = -
mxp-dev-tools/trunk/includes/db-optimize.php
r3078487 r3086819 8 8 trait DatabaseOptimize { 9 9 public function mxp_ajax_mysqldump() { 10 $check_zip_module = (class_exists('ZipArchive') && method_exists('ZipArchive', 'open')) ? true : false; 11 if (!$check_zip_module) { 12 die('未安裝/啟用 PHP ZIP 模組,無法呼叫 ZipArchive 方法打包。'); 13 } 10 14 set_time_limit(0); 11 15 ini_set("memory_limit", "-1"); … … 518 522 519 523 public function mxp_ajax_background_pack_action_batch_mode() { 524 $check_zip_module = (class_exists('ZipArchive') && method_exists('ZipArchive', 'open')) ? true : false; 525 if (!$check_zip_module) { 526 echo json_encode(array('success' => false, 'data' => array(), 'msg' => '未安裝/啟用 PHP ZIP 模組,無法呼叫 ZipArchive 方法打包。')); 527 exit; 528 } 520 529 if (!is_super_admin()) { 521 530 echo json_encode(array('success' => false, 'data' => array(), 'msg' => '此功能僅限網站最高權限管理人員使用!')); … … 906 915 907 916 public function mxp_ajax_background_pack_action() { 917 $check_zip_module = (class_exists('ZipArchive') && method_exists('ZipArchive', 'open')) ? true : false; 918 if (!$check_zip_module) { 919 wp_send_json(array('success' => false, 'data' => array(), 'msg' => '未安裝/啟用 PHP ZIP 模組,無法呼叫 ZipArchive 方法打包。')); 920 exit; 921 } 908 922 if (!is_super_admin()) { 909 923 wp_send_json(array('success' => false, 'data' => array(), 'msg' => '此功能僅限網站最高權限管理人員使用!')); -
mxp-dev-tools/trunk/includes/plugins-list.php
r3077135 r3086819 241 241 242 242 public function mxp_ajax_current_plugin_download_action() { 243 243 $check_zip_module = (class_exists('ZipArchive') && method_exists('ZipArchive', 'open')) ? true : false; 244 if (!$check_zip_module) { 245 die('未安裝/啟用 PHP ZIP 模組,無法呼叫 ZipArchive 方法打包。'); 246 } 244 247 if (!is_super_admin()) { 245 248 exit('此功能僅限網站最高權限管理人員使用。'); -
mxp-dev-tools/trunk/index.php
r3084309 r3086819 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 310 * Version: 3.1.1 39 * Stable tag: 3.1.14 10 * Version: 3.1.14 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 3';41 static $VERSION = '3.1.14'; 42 42 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 43 43 protected static $instance = null; … … 558 558 559 559 public function getwpconfig_page_cb() { 560 $this->page_wraper('查看網站各項設定(當前使用者 ID: ' . get_current_user_id() . ')', function () { 560 include ABSPATH . 'wp-includes/version.php'; 561 $this->page_wraper('查看網站各項設定(WP: ' . $wp_version . ' / User ID: ' . get_current_user_id() . ')', function () { 561 562 echo '<h2>網路資訊</h2></br>'; 562 563 $response = wp_remote_get('https://undo.im/json?v=' . self::$VERSION . '&from=' . get_site_url(), array('sslverify' => false, 'timeout' => 5)); -
mxp-dev-tools/trunk/mxp-login-path.php
r3084309 r3086819 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 310 * Version: 3.1.1 39 * Stable tag: 3.1.14 10 * Version: 3.1.14 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/trunk/mxp-site-manager.php
r3084309 r3086819 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 310 * Version: 3.1.1 39 * Stable tag: 3.1.14 10 * Version: 3.1.14 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 3';41 public static $VERSION = '3.1.14'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/trunk/mxp-snippets.php
r3084309 r3086819 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.5 9 * Stable tag: 3.1.1 310 * Version: 3.1.1 39 * Stable tag: 3.1.14 10 * Version: 3.1.14 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 1061 1061 // 預設不顯示出系統輸出的作者連結與頁面,避免資安問題 1062 1062 public function hide_author_name($name) { 1063 if (is_admin()) { 1064 return $name; 1065 } 1063 1066 global $authordata; 1064 1067 if (is_object($authordata)) { -
mxp-dev-tools/trunk/readme.txt
r3084309 r3086819 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.5 8 Stable tag: 3.1.1 38 Stable tag: 3.1.14 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.14 = 81 82 * 修正後台文章作者因為安全性顯示「小編」的問題 83 * 增加判斷伺服器是否有啟用 ZipArchive 功能 79 84 80 85 = 3.1.13 =
Note: See TracChangeset
for help on using the changeset viewer.