Changeset 3163389
- Timestamp:
- 10/06/2024 07:18:58 AM (17 months ago)
- Location:
- mxp-dev-tools
- Files:
-
- 4 edited
- 8 copied
-
tags/3.2.2 (copied) (copied from mxp-dev-tools/trunk)
-
tags/3.2.2/includes/class_plugins_list_table.php (copied) (copied from mxp-dev-tools/trunk/includes/class_plugins_list_table.php)
-
tags/3.2.2/includes/hooks-usage.php (copied) (copied from mxp-dev-tools/trunk/includes/hooks-usage.php)
-
tags/3.2.2/index.php (copied) (copied from mxp-dev-tools/trunk/index.php)
-
tags/3.2.2/mxp-login-path.php (copied) (copied from mxp-dev-tools/trunk/mxp-login-path.php) (1 diff)
-
tags/3.2.2/mxp-site-manager.php (copied) (copied from mxp-dev-tools/trunk/mxp-site-manager.php) (2 diffs)
-
tags/3.2.2/mxp-snippets.php (copied) (copied from mxp-dev-tools/trunk/mxp-snippets.php) (3 diffs)
-
tags/3.2.2/readme.txt (copied) (copied from mxp-dev-tools/trunk/readme.txt) (2 diffs)
-
trunk/mxp-login-path.php (modified) (1 diff)
-
trunk/mxp-site-manager.php (modified) (2 diffs)
-
trunk/mxp-snippets.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mxp-dev-tools/tags/3.2.2/mxp-login-path.php
r3162623 r3163389 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 110 * Version: 3.2. 19 * Stable tag: 3.2.2 10 * Version: 3.2.2 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/tags/3.2.2/mxp-site-manager.php
r3162623 r3163389 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 110 * Version: 3.2. 19 * Stable tag: 3.2.2 10 * Version: 3.2.2 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.2. 1';41 public static $VERSION = '3.2.2'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/tags/3.2.2/mxp-snippets.php
r3162623 r3163389 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 110 * Version: 3.2. 19 * Stable tag: 3.2.2 10 * Version: 3.2.2 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 178 178 // 前端給留言機器人看的字串 179 179 if (!defined("COMMENT_SPAM_FUCKOFF_DISPLAY_TEXT")) { 180 define('COMMENT_SPAM_FUCKOFF_DISPLAY_TEXT', 'FUCK YOU BOTS.');180 define('COMMENT_SPAM_FUCKOFF_DISPLAY_TEXT', 'FUCK OFF SPAM! If you are not a comment bot, please find a way to contact the site administrator. 如果你不是留言機器人,請想辦法聯繫網站管理員。'); 181 181 } 182 182 … … 400 400 } 401 401 } 402 402 403 public function comment_form_frontend_hack($post_id) { 403 echo " 404 <script> 404 echo "<script> 405 405 document.addEventListener('DOMContentLoaded', function() { 406 let commentPostIDField = document.getElementById('comment_post_ID'); 407 if (commentPostIDField) { 408 let currentValue = commentPostIDField.value; 409 commentPostIDField.value = currentValue + '|mxp_tw'; 410 } 406 document.body.addEventListener('click', function(event) { 407 let commentPostIDFields = document.querySelectorAll('input[type=\"hidden\"][name=\"comment_post_ID\"]'); 408 commentPostIDFields.forEach(function(field) { 409 if (field.value.indexOf('|mxp_tw') === -1){ 410 field.setAttribute('value', field.value + '|mxp_tw'); 411 console.log('Updated value:', field.value); 412 } 413 }); 414 }); 411 415 }); 412 416 </script>"; -
mxp-dev-tools/tags/3.2.2/readme.txt
r3162623 r3163389 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.6 8 Stable tag: 3.2. 18 Stable tag: 3.2.2 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.2.2 = 81 82 * 修正留言防堵機器人的前端功能 79 83 80 84 = 3.2.1 = -
mxp-dev-tools/trunk/mxp-login-path.php
r3162623 r3163389 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 110 * Version: 3.2. 19 * Stable tag: 3.2.2 10 * Version: 3.2.2 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/trunk/mxp-site-manager.php
r3162623 r3163389 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 110 * Version: 3.2. 19 * Stable tag: 3.2.2 10 * Version: 3.2.2 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.2. 1';41 public static $VERSION = '3.2.2'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/trunk/mxp-snippets.php
r3162623 r3163389 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 110 * Version: 3.2. 19 * Stable tag: 3.2.2 10 * Version: 3.2.2 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 178 178 // 前端給留言機器人看的字串 179 179 if (!defined("COMMENT_SPAM_FUCKOFF_DISPLAY_TEXT")) { 180 define('COMMENT_SPAM_FUCKOFF_DISPLAY_TEXT', 'FUCK YOU BOTS.');180 define('COMMENT_SPAM_FUCKOFF_DISPLAY_TEXT', 'FUCK OFF SPAM! If you are not a comment bot, please find a way to contact the site administrator. 如果你不是留言機器人,請想辦法聯繫網站管理員。'); 181 181 } 182 182 … … 400 400 } 401 401 } 402 402 403 public function comment_form_frontend_hack($post_id) { 403 echo " 404 <script> 404 echo "<script> 405 405 document.addEventListener('DOMContentLoaded', function() { 406 let commentPostIDField = document.getElementById('comment_post_ID'); 407 if (commentPostIDField) { 408 let currentValue = commentPostIDField.value; 409 commentPostIDField.value = currentValue + '|mxp_tw'; 410 } 406 document.body.addEventListener('click', function(event) { 407 let commentPostIDFields = document.querySelectorAll('input[type=\"hidden\"][name=\"comment_post_ID\"]'); 408 commentPostIDFields.forEach(function(field) { 409 if (field.value.indexOf('|mxp_tw') === -1){ 410 field.setAttribute('value', field.value + '|mxp_tw'); 411 console.log('Updated value:', field.value); 412 } 413 }); 414 }); 411 415 }); 412 416 </script>"; -
mxp-dev-tools/trunk/readme.txt
r3162623 r3163389 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.6 8 Stable tag: 3.2. 18 Stable tag: 3.2.2 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.2.2 = 81 82 * 修正留言防堵機器人的前端功能 79 83 80 84 = 3.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.