Version Description
- Fix CSRF issue in the plugin deactivation functionality.
Download this release
Release Info
Developer | zendesk_official |
Plugin | Zendesk Chat |
Version | 1.4.6 |
Comparing to | |
See all releases |
Code changes from version 1.4.5 to 1.4.6
- assets/css/zopim.css +9 -0
- includes/class-admin.php +3 -3
- includes/class-linked-view.php +13 -0
- includes/views/linked-view.php +7 -2
- readme.txt +4 -1
- zopim.php +2 -2
assets/css/zopim.css
CHANGED
@@ -60,6 +60,15 @@ a.no-underline {
|
|
60 |
height: 200px;
|
61 |
}
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
.animate {
|
64 |
background: url('https://dashboard.zopim.com/dashboard/images/spinner.gif') !important;
|
65 |
background-repeat: no-repeat !important;
|
60 |
height: 200px;
|
61 |
}
|
62 |
|
63 |
+
.zopim-deactivate-button {
|
64 |
+
color: #0073aa;
|
65 |
+
background: none;
|
66 |
+
border: none;
|
67 |
+
padding: 0;
|
68 |
+
text-decoration: underline;
|
69 |
+
cursor: pointer;
|
70 |
+
}
|
71 |
+
|
72 |
.animate {
|
73 |
background: url('https://dashboard.zopim.com/dashboard/images/spinner.gif') !important;
|
74 |
background-repeat: no-repeat !important;
|
includes/class-admin.php
CHANGED
@@ -66,9 +66,9 @@ class Zopim_Admin
|
|
66 |
?>
|
67 |
<div class="wrap">
|
68 |
<?php
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
}
|
73 |
|
74 |
$authenticated = FALSE;
|
66 |
?>
|
67 |
<div class="wrap">
|
68 |
<?php
|
69 |
+
|
70 |
+
if ( isset( $_POST[ 'action' ] ) && $_POST[ 'action' ] == 'deactivate' ) {
|
71 |
+
$linkedView->deactivate_plugin();
|
72 |
}
|
73 |
|
74 |
$authenticated = FALSE;
|
includes/class-linked-view.php
CHANGED
@@ -36,6 +36,19 @@ class Zopim_Linked_View extends Zopim_Base_View
|
|
36 |
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
/**
|
40 |
* Renders the Zendesk Chat update options form.
|
41 |
*
|
36 |
|
37 |
}
|
38 |
|
39 |
+
/**
|
40 |
+
* Handles POST request when deactivating the plugin
|
41 |
+
*/
|
42 |
+
public function deactivate_plugin()
|
43 |
+
{
|
44 |
+
if (!( isset($_POST['_wpnonce'] ) ) || (! wp_verify_nonce($_POST['_wpnonce'], 'zopim_plugin_deactivate'))) {
|
45 |
+
update_option( Zopim_Options::ZOPIM_OPTION_SALT, 'wronglogin' );
|
46 |
+
} else {
|
47 |
+
update_option( Zopim_Options::ZOPIM_OPTION_SALT, '' );
|
48 |
+
update_option( Zopim_Options::ZOPIM_OPTION_CODE, 'zopim' );
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
/**
|
53 |
* Renders the Zendesk Chat update options form.
|
54 |
*
|
includes/views/linked-view.php
CHANGED
@@ -3,8 +3,13 @@
|
|
3 |
<br/>
|
4 |
<div class="zopim-linked-view-wrapper">
|
5 |
<span>
|
6 |
-
<
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
</span>
|
9 |
<?php echo $messages[ 'current-account-label' ] ?> →
|
10 |
<b><?php echo get_option( Zopim_Options::ZOPIM_OPTION_USERNAME ); ?></b>
|
3 |
<br/>
|
4 |
<div class="zopim-linked-view-wrapper">
|
5 |
<span>
|
6 |
+
<form method="post" action="admin.php?page=zopim_account_config">
|
7 |
+
<?php wp_nonce_field('zopim_plugin_deactivate') ?>
|
8 |
+
<input type="hidden" name="action" value="deactivate"/>
|
9 |
+
<button class="zopim-deactivate-button">
|
10 |
+
<?php echo $messages[ 'deactivate' ] ?>
|
11 |
+
</button>
|
12 |
+
</form>
|
13 |
</span>
|
14 |
<?php echo $messages[ 'current-account-label' ] ?> →
|
15 |
<b><?php echo get_option( Zopim_Options::ZOPIM_OPTION_USERNAME ); ?></b>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: zendesk_official
|
|
3 |
Tags: chat, chat online, contact plugin, contact us, customer support, free chat, chat software, IM chat, live chat, live chat inc, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, live help, live support, olark, online chat, online support, php live chat, snapengage, support software, website chat, wordpress chat, wordpress live chat, wordpress live chat plugin, Zopim, zendesk, Zopim live chat, banckle, clickdesk, click desk
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 1.4.
|
7 |
|
8 |
Zendesk Chat (previously Zopim) lets you monitor and chat with visitors surfing your store in real-time. Impress them personally and ease them into their purchase.
|
9 |
|
@@ -48,6 +48,9 @@ What are you waiting for? Download Zendesk Chat plugin now and <a href="https://
|
|
48 |
* Arabic | Bulgarian | Chinese | Croatian | Czech | Danish | Dutch; Flemish | Estonian | Faroese | Finnish | French | Georgian | German | Greek | Hebrew | Hungarian | Icelandic | Indonesian | Italian | Japanese | Korean | Kurdish | Latvian | Lithuanian | Macedonian | Malay | Norwegian Bokmal | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish; Castilian | Swedish | Thai | Turkish | Ukranian | Urdu | Vietnamese
|
49 |
|
50 |
== Changelog ==
|
|
|
|
|
|
|
51 |
= 1.4.5 =
|
52 |
* Updated support and video URLs
|
53 |
|
3 |
Tags: chat, chat online, contact plugin, contact us, customer support, free chat, chat software, IM chat, live chat, live chat inc, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, live help, live support, olark, online chat, online support, php live chat, snapengage, support software, website chat, wordpress chat, wordpress live chat, wordpress live chat plugin, Zopim, zendesk, Zopim live chat, banckle, clickdesk, click desk
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 1.4.6
|
7 |
|
8 |
Zendesk Chat (previously Zopim) lets you monitor and chat with visitors surfing your store in real-time. Impress them personally and ease them into their purchase.
|
9 |
|
48 |
* Arabic | Bulgarian | Chinese | Croatian | Czech | Danish | Dutch; Flemish | Estonian | Faroese | Finnish | French | Georgian | German | Greek | Hebrew | Hungarian | Icelandic | Indonesian | Italian | Japanese | Korean | Kurdish | Latvian | Lithuanian | Macedonian | Malay | Norwegian Bokmal | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish; Castilian | Swedish | Thai | Turkish | Ukranian | Urdu | Vietnamese
|
49 |
|
50 |
== Changelog ==
|
51 |
+
= 1.4.6 =
|
52 |
+
* Fix CSRF issue in the plugin deactivation functionality.
|
53 |
+
|
54 |
= 1.4.5 =
|
55 |
* Updated support and video URLs
|
56 |
|
zopim.php
CHANGED
@@ -5,13 +5,13 @@ Plugin Name: Zendesk Chat Widget
|
|
5 |
Plugin URI: http://www.zendesk.com/chat?iref=wp_plugin
|
6 |
Description: Zendesk Chat is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
|
7 |
Author: Zopim
|
8 |
-
Version: 1.4.
|
9 |
Author URI: http://www.zendesk.com/chat?iref=wp_plugin
|
10 |
Text Domain: zopim
|
11 |
Domain path: /language
|
12 |
*/
|
13 |
|
14 |
-
define( 'VERSION_NUMBER', "1.4.
|
15 |
define( 'ZOPIM_BASE_URL', "https://www.zopim.com/" );
|
16 |
define( 'ZOPIM_ACCOUNT_URL', "https://account.zopim.com/" );
|
17 |
define( 'ZOPIM_SIGNUP_REDIRECT_URL', ZOPIM_ACCOUNT_URL . "?aref=MjUxMjY4:1TeORR:9SP1e-iPTuAVXROJA6UU5seC8x4&visit_id=6ffe00ec3cfc11e2b5ab22000a1db8fa&utm_source=account%2Bsetup%2Bpage&utm_medium=link&utm_campaign=wp%2Bsignup2#signup" );
|
5 |
Plugin URI: http://www.zendesk.com/chat?iref=wp_plugin
|
6 |
Description: Zendesk Chat is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
|
7 |
Author: Zopim
|
8 |
+
Version: 1.4.6
|
9 |
Author URI: http://www.zendesk.com/chat?iref=wp_plugin
|
10 |
Text Domain: zopim
|
11 |
Domain path: /language
|
12 |
*/
|
13 |
|
14 |
+
define( 'VERSION_NUMBER', "1.4.6" );
|
15 |
define( 'ZOPIM_BASE_URL', "https://www.zopim.com/" );
|
16 |
define( 'ZOPIM_ACCOUNT_URL', "https://account.zopim.com/" );
|
17 |
define( 'ZOPIM_SIGNUP_REDIRECT_URL', ZOPIM_ACCOUNT_URL . "?aref=MjUxMjY4:1TeORR:9SP1e-iPTuAVXROJA6UU5seC8x4&visit_id=6ffe00ec3cfc11e2b5ab22000a1db8fa&utm_source=account%2Bsetup%2Bpage&utm_medium=link&utm_campaign=wp%2Bsignup2#signup" );
|