WP Live Chat Support - Version 6.0.03

Version Description

  • 2016-02-04 - Low priority =
  • Fixed a bug that caused a warning if an incorrect IP address was in the banned IP address field
  • Offline messaging bug fixed
Download this release

Release Info

Developer WP-LiveChat
Plugin Icon 128x128 WP Live Chat Support
Version 6.0.03
Comparing to
See all releases

Code changes from version 6.0.02 to 6.0.03

Files changed (3) hide show
  1. functions.php +22 -13
  2. readme.txt +9 -1
  3. wp-live-chat-support.php +6 -2
functions.php CHANGED
@@ -975,7 +975,12 @@ function wplcmail($reply_to,$reply_to_name,$subject,$msg) {
975
  if(isset($wplc_pro_settings['wplc_pro_chat_email_address'])){
976
  $email_address = $wplc_pro_settings['wplc_pro_chat_email_address'];
977
  } else {
978
- $email_address = get_option('admin_email');
 
 
 
 
 
979
  }
980
 
981
  $email_address = explode(',', $email_address);
@@ -1495,21 +1500,25 @@ function wplc_is_user_banned_basic(){
1495
  if($banned_ip){
1496
  $banned_ip = maybe_unserialize($banned_ip);
1497
  $banned = 0;
1498
- foreach($banned_ip as $ip){
 
1499
 
1500
- if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARTDED_FOR'] != '') {
1501
- $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
1502
- } else {
1503
- $ip_address = $_SERVER['REMOTE_ADDR'];
1504
- }
1505
-
1506
- if(isset($ip_address)){
1507
- if($ip == $ip_address){
1508
- $banned++;
 
 
 
1509
  }
1510
- } else {
1511
- $banned = 0;
1512
  }
 
 
1513
  }
1514
  } else {
1515
  $banned = 0;
975
  if(isset($wplc_pro_settings['wplc_pro_chat_email_address'])){
976
  $email_address = $wplc_pro_settings['wplc_pro_chat_email_address'];
977
  } else {
978
+ $wplc_pro_settings = get_option("WPLC_SETTINGS");
979
+ if(isset($wplc_pro_settings['wplc_pro_chat_email_address'])){
980
+ $email_address = $wplc_pro_settings['wplc_pro_chat_email_address'];
981
+ }else{
982
+ $email_address = get_option('admin_email');
983
+ }
984
  }
985
 
986
  $email_address = explode(',', $email_address);
1500
  if($banned_ip){
1501
  $banned_ip = maybe_unserialize($banned_ip);
1502
  $banned = 0;
1503
+ if (is_array($banned_ip)) {
1504
+ foreach($banned_ip as $ip){
1505
 
1506
+ if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARTDED_FOR'] != '') {
1507
+ $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
1508
+ } else {
1509
+ $ip_address = $_SERVER['REMOTE_ADDR'];
1510
+ }
1511
+
1512
+ if(isset($ip_address)){
1513
+ if($ip == $ip_address){
1514
+ $banned++;
1515
+ }
1516
+ } else {
1517
+ $banned = 0;
1518
  }
 
 
1519
  }
1520
+ } else {
1521
+ return 0;
1522
  }
1523
  } else {
1524
  $banned = 0;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: WP-LiveChat, NickDuncan, CodeCabin_, Jarryd Long
3
  Donate link: http://www.wp-livechat.com
4
  Tags: live chat, live support, chat plugin, live help, wordpress chat, customer support, chat, chat services, live chat plugin, live support plugin, live chat support plugin, wordpress live chat, wordpress live chat plugin, live chat software, live chat services, chat plugin, support plugin, support, chat software, chat online, visitor chat, chat, free chat, free live chat, customer support, online support, live help, live chat help, chat widget, live chat widget
5
  Requires at least: 3.8
6
- Tested up to: 4.4.1
7
  Stable tag: trunk
8
  License: GPLv2
9
 
@@ -70,6 +70,10 @@ Coming soon. Answer and initiate live chats from anywhere using your mobile devi
70
 
71
  Coming soon. Answer and initiate live chats from your desktop with the [Mobile and Desktop App](http://wp-livechat.com/extensions/mobile-desktop-app-extension/?utm_source=readme&utm_medium=wordpress&utm_campaign=desktop_ic)
72
 
 
 
 
 
73
  **Advanced Live Chat Box Control**
74
 
75
  Change your display name, add a company logo, add your avatar and control when the live chat box should be displayed with the [Advanced Chat Box Control Extension](http://wp-livechat.com/extensions/advanced-chat-box-control/?utm_source=readme&utm_medium=wordpress&utm_campaign=acbc_ic)
@@ -219,6 +223,10 @@ It is highly recommended that you upgrade to WP Live Chat Support version 4.1.4
219
 
220
  == Changelog ==
221
 
 
 
 
 
222
  = 6.0.02 - 2016-02-03 - Low priority =
223
  * Added a new filter to fix a bug with WP Live Chat Support - Advanced Chat Box Control Extension
224
 
3
  Donate link: http://www.wp-livechat.com
4
  Tags: live chat, live support, chat plugin, live help, wordpress chat, customer support, chat, chat services, live chat plugin, live support plugin, live chat support plugin, wordpress live chat, wordpress live chat plugin, live chat software, live chat services, chat plugin, support plugin, support, chat software, chat online, visitor chat, chat, free chat, free live chat, customer support, online support, live help, live chat help, chat widget, live chat widget
5
  Requires at least: 3.8
6
+ Tested up to: 4.4.2
7
  Stable tag: trunk
8
  License: GPLv2
9
 
70
 
71
  Coming soon. Answer and initiate live chats from your desktop with the [Mobile and Desktop App](http://wp-livechat.com/extensions/mobile-desktop-app-extension/?utm_source=readme&utm_medium=wordpress&utm_campaign=desktop_ic)
72
 
73
+ **Cloud Server**
74
+
75
+ Host all live chat functions on our cloud server and improve your site performance with the [Cloud Server Extension](http://wp-livechat.com/extensions/cloud-server-extension/?utm_source=readme&utm_medium=wordpress&utm_campaign=desktop_cloud)
76
+
77
  **Advanced Live Chat Box Control**
78
 
79
  Change your display name, add a company logo, add your avatar and control when the live chat box should be displayed with the [Advanced Chat Box Control Extension](http://wp-livechat.com/extensions/advanced-chat-box-control/?utm_source=readme&utm_medium=wordpress&utm_campaign=acbc_ic)
223
 
224
  == Changelog ==
225
 
226
+ = 6.0.03 - 2016-02-04 - Low priority =
227
+ * Fixed a bug that caused a warning if an incorrect IP address was in the banned IP address field
228
+ * Offline messaging bug fixed
229
+
230
  = 6.0.02 - 2016-02-03 - Low priority =
231
  * Added a new filter to fix a bug with WP Live Chat Support - Advanced Chat Box Control Extension
232
 
wp-live-chat-support.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Live Chat Support
4
  Plugin URI: http://www.wp-livechat.com
5
  Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
6
- Version: 6.0.02
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
@@ -11,6 +11,10 @@
11
  */
12
 
13
  /*
 
 
 
 
14
  * 6.0.02 - 2016-02-03 - Low priority
15
  * Added a new filter to fix a bug with WP Live Chat Support - Advanced Chat Box Control Extension
16
  *
@@ -312,7 +316,7 @@ global $wplc_tblname_offline_msgs;
312
  $wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
313
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
314
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
315
- $wplc_version = "6.0.02";
316
 
317
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
318
  define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");
3
  Plugin Name: WP Live Chat Support
4
  Plugin URI: http://www.wp-livechat.com
5
  Description: The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP Live Chat Support. No third party connection required!
6
+ Version: 6.0.03
7
  Author: WP-LiveChat
8
  Author URI: http://www.wp-livechat.com
9
  Text Domain: wplivechat
11
  */
12
 
13
  /*
14
+ * 6.0.03 - 2016-02-04 - Low priority
15
+ * Fixed a bug that caused a warning if an incorrect IP address was in the banned IP address field
16
+ * Offline messaging bug fixed
17
+ *
18
  * 6.0.02 - 2016-02-03 - Low priority
19
  * Added a new filter to fix a bug with WP Live Chat Support - Advanced Chat Box Control Extension
20
  *
316
  $wplc_tblname_offline_msgs = $wpdb->prefix . "wplc_offline_messages";
317
  $wplc_tblname_chats = $wpdb->prefix . "wplc_chat_sessions";
318
  $wplc_tblname_msgs = $wpdb->prefix . "wplc_chat_msgs";
319
+ $wplc_version = "6.0.03";
320
 
321
  define('WPLC_BASIC_PLUGIN_DIR', dirname(__FILE__));
322
  define('WPLC_BASIC_PLUGIN_URL', plugins_url() . "/wp-live-chat-support/");