Version Description
- Fixed compatibility for servers without allow_url_fopen enabled.
Download this release
Release Info
Developer | livechat |
Plugin | LiveChat – WP live chat plugin for WordPress |
Version | 3.6.1 |
Comparing to | |
See all releases |
Code changes from version 3.6.0 to 3.6.1
- livechat.php +1 -1
- plugin_files/LiveChatAdmin.class.php +29 -9
- readme.txt +4 -1
livechat.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.livechatinc.com/addons/wordpress/
|
|
5 |
Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
|
6 |
Author: LiveChat
|
7 |
Author URI: http://www.livechatinc.com
|
8 |
-
Version: 3.6.
|
9 |
Text Domain: wp-live-chat-software-for-wordpress
|
10 |
Domain Path: /languages
|
11 |
*/
|
5 |
Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
|
6 |
Author: LiveChat
|
7 |
Author URI: http://www.livechatinc.com
|
8 |
+
Version: 3.6.1
|
9 |
Text Domain: wp-live-chat-software-for-wordpress
|
10 |
Domain Path: /languages
|
11 |
*/
|
plugin_files/LiveChatAdmin.class.php
CHANGED
@@ -267,17 +267,37 @@ final class LiveChatAdmin extends LiveChat
|
|
267 |
{
|
268 |
$url = 'https://api.livechatinc.com/v2/license/' . $license_number;
|
269 |
try {
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
)
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
} catch(Exception $exception) {
|
279 |
-
|
|
|
|
|
|
|
|
|
|
|
280 |
}
|
|
|
281 |
}
|
282 |
|
283 |
public function show_review_notice()
|
267 |
{
|
268 |
$url = 'https://api.livechatinc.com/v2/license/' . $license_number;
|
269 |
try {
|
270 |
+
if(function_exists('curl_init')) {
|
271 |
+
$curl = curl_init($url);
|
272 |
+
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
|
273 |
+
$response = curl_exec( $curl );
|
274 |
+
$code = curl_getinfo( $curl, CURLINFO_HTTP_CODE );
|
275 |
+
curl_close( $curl );
|
276 |
+
|
277 |
+
if ( $code === 200 ) {
|
278 |
+
return json_decode( $response )->license_active;
|
279 |
+
} else {
|
280 |
+
throw new Exception( $code );
|
281 |
+
}
|
282 |
+
} else if(ini_get('allow_url_fopen') === '1' || strtolower(ini_get('allow_url_fopen')) === 'on') {
|
283 |
+
$options = array(
|
284 |
+
'http' => array(
|
285 |
+
'method' => 'GET'
|
286 |
+
),
|
287 |
+
);
|
288 |
+
$context = stream_context_create($options);
|
289 |
+
$result = file_get_contents($url, false, $context);
|
290 |
+
return json_decode( $result )->license_active;
|
291 |
+
}
|
292 |
} catch(Exception $exception) {
|
293 |
+
error_log(
|
294 |
+
'check_if_license_is_active() error ' .
|
295 |
+
$exception->getCode() .
|
296 |
+
': ' .
|
297 |
+
$exception->getMessage()
|
298 |
+
);
|
299 |
}
|
300 |
+
return false;
|
301 |
}
|
302 |
|
303 |
public function show_review_notice()
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== LiveChat - WP live chat plugin for WordPress ===
|
2 |
Contributors: LiveChat
|
3 |
Tags: chat plugin, live chat, live chat plugin, wordpress live chat, wordpress chat, wordpress live chat plugin, wordpress chat plugin, live chat software, live support, help desk, help desk software, online ticketing system, ticketing system, online support, ecommerce chat, chat online, chat software, sales, customer help, customer support, livechat, customer service software, chat, customer service chat, live chat button, live chat support, live chat tool, live chat widget, live support button, live chat solution, online live chat, online chat, wp chat, wp live chat, livechat inc, livechatinc, live chat inc, wp livechat support, smartsupp, smart supp, tidio, jivochat, formilla, tawk, tawkto, tawk.to, facebook, facebook messenger, messenger, facebook live chat, facebook chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, websitealive, website alive, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack, casengo, tagove, wisechat, wise chat, mylivechat, my live chat, livezilla, chatrify
|
4 |
-
Stable tag: 3.6.
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 4.9.8
|
7 |
Requires at least: 3.4
|
@@ -307,6 +307,9 @@ For more detailed instructions, go to the [live chat plugin page](https://www.li
|
|
307 |
|
308 |
== Changelog ==
|
309 |
|
|
|
|
|
|
|
310 |
= 3.6.0 =
|
311 |
* Translation ready plugin
|
312 |
|
1 |
=== LiveChat - WP live chat plugin for WordPress ===
|
2 |
Contributors: LiveChat
|
3 |
Tags: chat plugin, live chat, live chat plugin, wordpress live chat, wordpress chat, wordpress live chat plugin, wordpress chat plugin, live chat software, live support, help desk, help desk software, online ticketing system, ticketing system, online support, ecommerce chat, chat online, chat software, sales, customer help, customer support, livechat, customer service software, chat, customer service chat, live chat button, live chat support, live chat tool, live chat widget, live support button, live chat solution, online live chat, online chat, wp chat, wp live chat, livechat inc, livechatinc, live chat inc, wp livechat support, smartsupp, smart supp, tidio, jivochat, formilla, tawk, tawkto, tawk.to, facebook, facebook messenger, messenger, facebook live chat, facebook chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, websitealive, website alive, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack, casengo, tagove, wisechat, wise chat, mylivechat, my live chat, livezilla, chatrify
|
4 |
+
Stable tag: 3.6.1
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 4.9.8
|
7 |
Requires at least: 3.4
|
307 |
|
308 |
== Changelog ==
|
309 |
|
310 |
+
= 3.6.1 =
|
311 |
+
* Fixed compatibility for servers without allow_url_fopen enabled.
|
312 |
+
|
313 |
= 3.6.0 =
|
314 |
* Translation ready plugin
|
315 |
|