Changeset 3293154
- Timestamp:
- 05/14/2025 09:54:17 AM (9 months ago)
- Location:
- chat2/tags/3.6.3
- Files:
-
- 5 edited
-
admin/field-configiguration-admin.php (modified) (3 diffs)
-
chat2.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
views/old-widget.php (modified) (1 diff)
-
views/widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
chat2/tags/3.6.3/admin/field-configiguration-admin.php
r3184323 r3293154 35 35 36 36 public function save_options(){ 37 $params = $_POST;37 $params = array_map('sanitize_text_field', $_POST); //$params = $_POST; 38 38 39 39 if(isset($params) && count($params) > 0 && … … 76 76 $content = get_option('chat-field-settings-var-content') ? get_option('chat-field-settings-var-content') : '' ; 77 77 ?> 78 <input type="text" value="<?php echo $content; ?>" id="chat-field-settings-var" name="chat-field-settings-var" />78 <input type="text" value="<?php echo esc_attr($content); ?>" id="chat-field-settings-var" name="chat-field-settings-var" /> 79 79 </td> 80 80 </tr> … … 85 85 $old_style = get_option('chat-field-settings-enable-old-widget-style') ? get_option('chat-field-settings-enable-old-widget-style') : false; 86 86 ?> 87 <input type="checkbox" name="enable-old-widget-style" id="enable-old-widget-style" <?php echo ($old_style ? 'checked="checked"': '') ?>/>87 <input type="checkbox" name="enable-old-widget-style" id="enable-old-widget-style" <?php echo ($old_style ? esc_attr('checked="checked"') : '') ?>/> 88 88 </td> 89 89 </tr> -
chat2/tags/3.6.3/chat2.php
r3258147 r3293154 5 5 * Description: This plugin adds Chat2 live chat to your wordpress website. 6 6 * Version: 3.6.3 7 * Tested up to: 6. 7.27 * Tested up to: 6.8.1 8 8 * Author: Chat2 9 9 * Author URI: http://chat2.com -
chat2/tags/3.6.3/readme.txt
r3258147 r3293154 3 3 Tags: Chat2, Live Chat 4 4 Requires at least: 3.2.0 5 Tested up to: 6. 7.25 Tested up to: 6.8.1 6 6 Stable tag: 3.6.3 7 7 License: GPLv2 or later -
chat2/tags/3.6.3/views/old-widget.php
r3184323 r3293154 34 34 var refferer = (document.referrer) ? encodeURIComponent(document.referrer.substr(document.referrer.indexOf('://')+1)) : ''; 35 35 var location = (document.location) ? encodeURIComponent(window.location.href.substring(window.location.protocol.length)) : ''; 36 po.src = '//<?php echo $subdomain;?>.chat2.com/eng/chat/getstatus/(click)/internal/(position)/bottom_right/(ma)/br/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true?r='+refferer+'&l='+location;36 po.src = '//<?php echo esc_js($subdomain); ?>.chat2.com/eng/chat/getstatus/(click)/internal/(position)/bottom_right/(ma)/br/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true?r='+refferer+'&l='+location; 37 37 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); 38 38 })(); -
chat2/tags/3.6.3/views/widget.php
r3184323 r3293154 29 29 ?> 30 30 <script>var CHAT2_API = CHAT2_API||{}; 31 CHAT2_API.args = {mode:'widget',chat2_base_url:'//<?php echo $subdomain;?>.chat2.com/',wheight:450,wwidth:350,pheight:520,pwidth:500,leaveamessage:true,check_messages:false,lang:'eng/'};31 CHAT2_API.args = {mode:'widget',chat2_base_url:'//<?php echo esc_js($subdomain); ?>.chat2.com/',wheight:450,wwidth:350,pheight:520,pwidth:500,leaveamessage:true,check_messages:false,lang:'eng/'}; 32 32 (function() { 33 33 var po = document.createElement('script'); po.type = 'text/javascript'; po.setAttribute('crossorigin','anonymous'); po.async = true; 34 var date = new Date();po.src = '//<?php echo $subdomain;?>.chat2.com/design/defaulttheme/js/widgetv2/index.js?'+(""+date.getFullYear() + date.getMonth() + date.getDate());34 var date = new Date();po.src = '//<?php echo esc_js($subdomain); ?>.chat2.com/design/defaulttheme/js/widgetv2/index.js?'+(""+date.getFullYear() + date.getMonth() + date.getDate()); 35 35 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); 36 36 })();
Note: See TracChangeset
for help on using the changeset viewer.