Plugin Directory

Changeset 3086819


Ignore:
Timestamp:
05/15/2024 04:39:49 AM (22 months ago)
Author:
mxp
Message:

update 3.1.14

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

Legend:

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

    r3078487 r3086819  
    88trait DatabaseOptimize {
    99    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        }
    1014        set_time_limit(0);
    1115        ini_set("memory_limit", "-1");
     
    518522
    519523    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        }
    520529        if (!is_super_admin()) {
    521530            echo json_encode(array('success' => false, 'data' => array(), 'msg' => '此功能僅限網站最高權限管理人員使用!'));
     
    906915
    907916    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        }
    908922        if (!is_super_admin()) {
    909923            wp_send_json(array('success' => false, 'data' => array(), 'msg' => '此功能僅限網站最高權限管理人員使用!'));
  • mxp-dev-tools/tags/3.1.14/includes/plugins-list.php

    r3077135 r3086819  
    241241
    242242    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        }
    244247        if (!is_super_admin()) {
    245248            exit('此功能僅限網站最高權限管理人員使用。');
  • mxp-dev-tools/tags/3.1.14/index.php

    r3084309 r3086819  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.13
    10  * Version: 3.1.13
     9 * Stable tag: 3.1.14
     10 * Version: 3.1.14
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION                   = '3.1.13';
     41    static $VERSION                   = '3.1.14';
    4242    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    4343    protected static $instance        = null;
     
    558558
    559559    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 () {
    561562            echo '<h2>網路資訊</h2></br>';
    562563            $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  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.13
    10  * Version: 3.1.13
     9 * Stable tag: 3.1.14
     10 * Version: 3.1.14
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.1.14/mxp-site-manager.php

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

    r3084309 r3086819  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.13
    10  * Version: 3.1.13
     9 * Stable tag: 3.1.14
     10 * Version: 3.1.14
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    10611061    // 預設不顯示出系統輸出的作者連結與頁面,避免資安問題
    10621062    public function hide_author_name($name) {
     1063        if (is_admin()) {
     1064            return $name;
     1065        }
    10631066        global $authordata;
    10641067        if (is_object($authordata)) {
  • mxp-dev-tools/tags/3.1.14/readme.txt

    r3084309 r3086819  
    66Requires PHP: 5.6
    77Tested up to: 6.5
    8 Stable tag: 3.1.13
     8Stable tag: 3.1.14
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.1.14 =
     81
     82* 修正後台文章作者因為安全性顯示「小編」的問題
     83* 增加判斷伺服器是否有啟用 ZipArchive 功能
    7984
    8085= 3.1.13 =
  • mxp-dev-tools/trunk/includes/db-optimize.php

    r3078487 r3086819  
    88trait DatabaseOptimize {
    99    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        }
    1014        set_time_limit(0);
    1115        ini_set("memory_limit", "-1");
     
    518522
    519523    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        }
    520529        if (!is_super_admin()) {
    521530            echo json_encode(array('success' => false, 'data' => array(), 'msg' => '此功能僅限網站最高權限管理人員使用!'));
     
    906915
    907916    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        }
    908922        if (!is_super_admin()) {
    909923            wp_send_json(array('success' => false, 'data' => array(), 'msg' => '此功能僅限網站最高權限管理人員使用!'));
  • mxp-dev-tools/trunk/includes/plugins-list.php

    r3077135 r3086819  
    241241
    242242    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        }
    244247        if (!is_super_admin()) {
    245248            exit('此功能僅限網站最高權限管理人員使用。');
  • mxp-dev-tools/trunk/index.php

    r3084309 r3086819  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.13
    10  * Version: 3.1.13
     9 * Stable tag: 3.1.14
     10 * Version: 3.1.14
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION                   = '3.1.13';
     41    static $VERSION                   = '3.1.14';
    4242    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    4343    protected static $instance        = null;
     
    558558
    559559    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 () {
    561562            echo '<h2>網路資訊</h2></br>';
    562563            $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  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.13
    10  * Version: 3.1.13
     9 * Stable tag: 3.1.14
     10 * Version: 3.1.14
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/mxp-site-manager.php

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

    r3084309 r3086819  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.13
    10  * Version: 3.1.13
     9 * Stable tag: 3.1.14
     10 * Version: 3.1.14
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    10611061    // 預設不顯示出系統輸出的作者連結與頁面,避免資安問題
    10621062    public function hide_author_name($name) {
     1063        if (is_admin()) {
     1064            return $name;
     1065        }
    10631066        global $authordata;
    10641067        if (is_object($authordata)) {
  • mxp-dev-tools/trunk/readme.txt

    r3084309 r3086819  
    66Requires PHP: 5.6
    77Tested up to: 6.5
    8 Stable tag: 3.1.13
     8Stable tag: 3.1.14
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.1.14 =
     81
     82* 修正後台文章作者因為安全性顯示「小編」的問題
     83* 增加判斷伺服器是否有啟用 ZipArchive 功能
    7984
    8085= 3.1.13 =
Note: See TracChangeset for help on using the changeset viewer.