Changeset 1743215
- Timestamp:
- 10/09/2017 10:00:22 AM (8 years ago)
- Location:
- nicechat/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
admin/class-nice-chat-to-wp-admin.php (modified) (3 diffs)
-
nice-chat-to-wp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nicechat/trunk/README.txt
r1741747 r1743215 3 3 Tags: nicechat, chat, buttonchat, live, chat, livechat 4 4 Plugin Name: NiceChat-to-WP 5 Version: 0.1. 05 Version: 0.1.1 6 6 Git: https://bitbucket.org/NiceChat/nice-chat-to-wp 7 7 Author: NiceChat Team … … 38 38 == Changelog == 39 39 40 = 0.1.1 (alpha) = 41 * Release Date - 09 October 2017* 42 43 * Export products fixes and updates 44 40 45 = 0.1.0 (alpha) = 41 46 * Release Date - 05 October 2017* -
nicechat/trunk/admin/class-nice-chat-to-wp-admin.php
r1741747 r1743215 77 77 if($_POST['nice_chat_partner_id']) { 78 78 // set the post formatting options 79 if (preg_match("/^ [a-z0-9]{20,60}$/", $_POST['nice_chat_partner_id'])) {80 $nice_chat_partner_id = $_POST['nice_chat_partner_id'];79 if (preg_match("/^\s?[a-z0-9]{20,60}\s?$/", $_POST['nice_chat_partner_id'])) { 80 $nice_chat_partner_id = trim($_POST['nice_chat_partner_id']); 81 81 update_option('nice_chat_partner_id', $nice_chat_partner_id); 82 82 echo ('<div class="updated"><p>'.__('Settings updated', 'nice-chat-to-wp').'</p></div>'); … … 87 87 if($_POST['nice_chat_api_id'] && $_POST['nice_chat_api_secret']) { 88 88 // set the post formatting options 89 if (preg_match("/^ [A-Z0-9]{16,16}$/", $_POST['nice_chat_api_id']) &&90 preg_match("/^ [a-z0A-Z0-9]{32,32}$/", $_POST['nice_chat_api_secret'])89 if (preg_match("/^\s?[A-Z0-9]{16,16}\s?$/", $_POST['nice_chat_api_id']) && 90 preg_match("/^\s?[a-z0A-Z0-9]{32,32}\s?$/", $_POST['nice_chat_api_secret']) 91 91 ) { 92 $nice_chat_api_id = $_POST['nice_chat_api_id'];93 $nice_chat_api_secret = $_POST['nice_chat_api_secret'];92 $nice_chat_api_id = trim($_POST['nice_chat_api_id']); 93 $nice_chat_api_secret = trim($_POST['nice_chat_api_secret']); 94 94 update_option('nice_chat_api_id', $nice_chat_api_id); 95 95 update_option('nice_chat_api_secret', $nice_chat_api_secret); … … 135 135 <label for="nice_chat_api_secret"><?php echo (__('API-Secret (optional)', 'nice-chat-to-wp')) ?></label></th> 136 136 <td> 137 <input type=" text" name="nice_chat_api_secret" value="<?php echo($nice_chat_api_secret)?>"/>137 <input type="password" name="nice_chat_api_secret" value="<?php echo($nice_chat_api_secret)?>"/> 138 138 </td> 139 139 </tr> -
nicechat/trunk/nice-chat-to-wp.php
r1741747 r1743215 5 5 * Tags: nicechat, chat, buttonchat, live, chat, livechat 6 6 * Plugin Name: NiceChat_to_WP 7 * Version: 0.1. 07 * Version: 0.1.1 8 8 * Author: NiceChat Team 9 9 * Author URI: https://nice.chat/
Note: See TracChangeset
for help on using the changeset viewer.