WP Content Copy Protection - Version 1.1.8.7

Version Description

= Version 1.1.8.3 =

Download this release

Release Info

Developer Dhruvin
Plugin Icon 128x128 WP Content Copy Protection
Version 1.1.8.7
Comparing to
See all releases

Code changes from version 1.1.8.5 to 1.1.8.7

includes/component/welcome-page/ts-welcome.php CHANGED
@@ -93,6 +93,10 @@ class WPCCPL_TS_Welcome {
93
  self::$plugin_file_path = $ts_plugin_dir_name;
94
 
95
 
 
 
 
 
96
  //Update plugin
97
  add_action( 'admin_init', array( &$this, 'ts_update_db_check' ) );
98
 
@@ -111,6 +115,38 @@ class WPCCPL_TS_Welcome {
111
  self::$template_base = $this->ts_get_template_path();
112
  }
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  /**
115
  * This function returns the plugin version number.
116
  *
@@ -263,9 +299,16 @@ class WPCCPL_TS_Welcome {
263
  return;
264
  }
265
 
266
- if( !get_option( self::$plugin_prefix . '_pro_welcome_page_shown' ) ) {
267
- wp_safe_redirect( admin_url( 'index.php?page=' . self::$plugin_prefix . '-pro-about' ) );
268
- exit;
 
 
 
 
 
 
 
269
  }
270
  }
271
 
93
  self::$plugin_file_path = $ts_plugin_dir_name;
94
 
95
 
96
+ add_action( 'admin_init', array( &$this, 'ts_add_plugin_active_check' ),1 );
97
+
98
+ register_deactivation_hook( self::$plugin_file_path, array( &$this, 'ts_delete_plugin_from_active_check' ) );
99
+
100
  //Update plugin
101
  add_action( 'admin_init', array( &$this, 'ts_update_db_check' ) );
102
 
115
  self::$template_base = $this->ts_get_template_path();
116
  }
117
 
118
+ /**
119
+ * It will remove the plguin from the all activated plugin of TS.
120
+ * @hook register_deactivation_hook
121
+ */
122
+ function ts_delete_plugin_from_active_check ( ){
123
+
124
+ $active_ts_plugins = get_option( 'active_TS_plugins', array() );
125
+ if ( in_array ( self::$plugin_name , $active_ts_plugins) ){
126
+
127
+ $ts_plugin_name = array ( self::$plugin_name );
128
+
129
+ $updated_activated_ts_plugins = array_diff( $active_ts_plugins, $ts_plugin_name );
130
+ update_option( 'active_TS_plugins', $updated_activated_ts_plugins );
131
+ }
132
+ }
133
+
134
+ /**
135
+ * It will add the plugin in the array. This array contain all activated plugin of TS.
136
+ * @hook admin_init
137
+ */
138
+ function ts_add_plugin_active_check () {
139
+
140
+ $active_ts_plugins = get_option( 'active_TS_plugins', array() );
141
+
142
+ if ( !in_array ( self::$plugin_name , $active_ts_plugins) ){
143
+
144
+ $active_ts_plugins [] = self::$plugin_name;
145
+
146
+ update_option( 'active_TS_plugins', $active_ts_plugins );
147
+ }
148
+ }
149
+
150
  /**
151
  * This function returns the plugin version number.
152
  *
299
  return;
300
  }
301
 
302
+ $active_ts_plugins = get_option( 'active_TS_plugins', array() );
303
+
304
+ /**
305
+ * This count of active plugins indicate that we will not redirect to the welcome page when there are more than 2 of our plugins are activated.
306
+ */
307
+ if( count ( $active_ts_plugins ) == 1 ) {
308
+ if( !get_option( self::$plugin_prefix . '_pro_welcome_page_shown' ) ) {
309
+ wp_safe_redirect( admin_url( 'index.php?page=' . self::$plugin_prefix . '-pro-about' ) );
310
+ exit;
311
+ }
312
  }
313
  }
314
 
includes/wpccpl-all-component.php CHANGED
@@ -56,14 +56,20 @@ if ( ! class_exists( 'WPCCPL_Component' ) ) {
56
 
57
  $wpccpl_deativate = new WPCCPL_TS_deactivate;
58
  $wpccpl_deativate->init ( $wpccpl_file_name, $wpccpl_plugin_name );
59
-
60
- new WPCCPL_TS_Welcome ( $wpccpl_plugin_name, $wpccpl_plugin_prefix, $wpccpl_locale, $wpccpl_plugin_folder_name, $wpccpl_plugin_dir_name, $wpccpl_get_previous_version );
 
 
 
 
61
 
62
  $ts_pro_wpccpl = self::wpccpl_get_faq ();
63
  new WPCCPL_TS_Faq_Support( $wpccpl_plugin_name, $wpccpl_plugin_prefix, $wpccpl_plugins_page, $wpccpl_locale, $wpccpl_plugin_folder_name, $wpccpl_plugin_slug, $ts_pro_wpccpl, '', $wpccpl_file_name );
64
-
65
- $ts_pro_notices = self::wpccpl_get_notice_text ();
66
- new WPCCPL_ts_pro_notices( $wpccpl_plugin_name, $wpccpl_lite_plugin_prefix, $wpccpl_plugin_prefix, $ts_pro_notices, $wpccpl_file_name, $wpccpl_pro_file_name );
 
 
67
 
68
  }
69
  }
56
 
57
  $wpccpl_deativate = new WPCCPL_TS_deactivate;
58
  $wpccpl_deativate->init ( $wpccpl_file_name, $wpccpl_plugin_name );
59
+
60
+ // $user = wp_get_current_user();
61
+
62
+ // if ( in_array( 'administrator', (array) $user->roles ) ) {
63
+ // new WPCCPL_TS_Welcome ( $wpccpl_plugin_name, $wpccpl_plugin_prefix, $wpccpl_locale, $wpccpl_plugin_folder_name, $wpccpl_plugin_dir_name, $wpccpl_get_previous_version );
64
+ // }
65
 
66
  $ts_pro_wpccpl = self::wpccpl_get_faq ();
67
  new WPCCPL_TS_Faq_Support( $wpccpl_plugin_name, $wpccpl_plugin_prefix, $wpccpl_plugins_page, $wpccpl_locale, $wpccpl_plugin_folder_name, $wpccpl_plugin_slug, $ts_pro_wpccpl, '', $wpccpl_file_name );
68
+
69
+ /*if ( in_array('woocommerce/woocommerce.php', get_option('active_plugins') ) ) {
70
+ $ts_pro_notices = self::wpccpl_get_notice_text ();
71
+ new WPCCPL_ts_pro_notices( $wpccpl_plugin_name, $wpccpl_lite_plugin_prefix, $wpccpl_plugin_prefix, $ts_pro_notices, $wpccpl_file_name, $wpccpl_pro_file_name );
72
+ }*/
73
 
74
  }
75
  }
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
- === WP Content Copy Protection ===
2
 
3
  Contributors: tychesoftwares
4
  Donate link: https://www.paypal.me/TycheSoftwares
5
  Tags: protection, copyright, theft, no right click, content protection, image protection, image protect, copyprotect, security, copy protection, protect blog, plagiarism, duplicate, seo, context menu
6
  Requires at least: 3.0
7
- Tested up to: 4.9.7
8
- Stable tag: 1.1.8.5
9
  License: GPLv2 or Later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -371,4 +371,14 @@ This plugin inheritently disables right click/copy/save functions on your defaul
371
 
372
  = 1.1.8.5 =
373
 
374
- * Usage Tracking has been added in the plugin. It provides an option to allow tracking of the non-sensitive data of our plugin from the website. You can read more about it [here](https://www.tychesoftwares.com/docs/docs/wp-content-copy-protection/usage-tracking/).
 
 
 
 
 
 
 
 
 
 
1
+ === WP Content Copy Protection ===
2
 
3
  Contributors: tychesoftwares
4
  Donate link: https://www.paypal.me/TycheSoftwares
5
  Tags: protection, copyright, theft, no right click, content protection, image protection, image protect, copyprotect, security, copy protection, protect blog, plagiarism, duplicate, seo, context menu
6
  Requires at least: 3.0
7
+ Tested up to: 5.2
8
+ Stable tag: 1.1.8.7
9
  License: GPLv2 or Later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
371
 
372
  = 1.1.8.5 =
373
 
374
+ * Usage Tracking has been added in the plugin. It provides an option to allow tracking of the non-sensitive data of our plugin from the website. You can read more about it [here](https://www.tychesoftwares.com/docs/docs/wp-content-copy-protection/usage-tracking/).
375
+
376
+ = 1.1.8.6 =
377
+
378
+ * When the plugin is activated, it was blocking the FavIcon of the website. It has been fixed.
379
+
380
+ * While using MAC, the customers are able to print the screen using the Command + p key. It has been fixed.
381
+
382
+ = 1.1.8.7 =
383
+
384
+ * Removed the promotional notices being displayed at the backend of WordPress website.
wpccpl.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WP Content Copy Protection
5
  Plugin URI: https://www.tychesoftwares.com/premium-plugins/
6
  Description: WP Content Copy Protection prevents plagiarism and protects your valuable online content (such as source code, text and images) from being copied illegally. Copy methods are disabled via mouse and keyboard. See <a href="options-general.php?page=wpcp_options">Settings > WP Content Copy Protection</a> to learn more about WP Content Copy Protection - The complete content protection plugin for WordPress.
7
- Version: 1.1.8.5
8
  Text Domain: wpccpl
9
  Author: Tyche Softwares
10
  Author URI: https://www.tychesoftwares.com/
@@ -12,7 +12,7 @@
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html/
13
  */
14
 
15
- define ( 'wpccpl_version', '1.1.8.5' );
16
 
17
  /*
18
  Original work: Copyright 2013-2015 Rynaldo Stoltz (email: rcstoltz@gmail.com )
@@ -194,10 +194,12 @@ function fwpcon_pro() {
194
 
195
  <!-- WP Content Copy Protection script by Rynaldo Stoltz Starts -->
196
 
197
- <div align="center"><noscript>
198
- <div style="position:fixed; top:0px; left:0px; z-index:3000; height:100%; width:100%; background-color:#FFFFFF">
199
- <div style="font-family: Trebuchet MS; font-size: 14px; background-color:#FFF000; padding: 10pt;">Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!</div></div>
200
- </noscript></div>
 
 
201
 
202
  <script type="text/javascript">
203
  function disableSelection(e){if(typeof e.onselectstart!="undefined")e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!="undefined")e.style.MozUserSelect="none";else e.onmousedown=function(){return false};e.style.cursor="default"}window.onload=function(){disableSelection(document.body)}
@@ -224,8 +226,14 @@ img {
224
 
225
  <script type="text/javascript">
226
  window.addEventListener("keydown",function(e){if(e.ctrlKey&&(e.which==65||e.which==66||e.which==67||e.which==70||e.which==73||e.which==80||e.which==83||e.which==85||e.which==86)){e.preventDefault()}});document.keypress=function(e){if(e.ctrlKey&&(e.which==65||e.which==66||e.which==70||e.which==67||e.which==73||e.which==80||e.which==83||e.which==85||e.which==86)){}return false}
 
 
 
 
 
227
  </script>
228
 
 
229
  <script type="text/javascript">
230
  document.onkeydown=function(e){e=e||window.event;if(e.keyCode==123||e.keyCode==18){return false}}
231
  </script>
4
  Plugin Name: WP Content Copy Protection
5
  Plugin URI: https://www.tychesoftwares.com/premium-plugins/
6
  Description: WP Content Copy Protection prevents plagiarism and protects your valuable online content (such as source code, text and images) from being copied illegally. Copy methods are disabled via mouse and keyboard. See <a href="options-general.php?page=wpcp_options">Settings > WP Content Copy Protection</a> to learn more about WP Content Copy Protection - The complete content protection plugin for WordPress.
7
+ Version: 1.1.8.7
8
  Text Domain: wpccpl
9
  Author: Tyche Softwares
10
  Author URI: https://www.tychesoftwares.com/
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html/
13
  */
14
 
15
+ define ( 'wpccpl_version', '1.1.8.7' );
16
 
17
  /*
18
  Original work: Copyright 2013-2015 Rynaldo Stoltz (email: rcstoltz@gmail.com )
194
 
195
  <!-- WP Content Copy Protection script by Rynaldo Stoltz Starts -->
196
 
197
+
198
+ <noscript>
199
+ <div style="position:fixed; top:0px; left:0px; z-index:3000; height:100%; width:100%; background-color:#FFFFFF">
200
+ <div style="font-family: Trebuchet MS; font-size: 14px; background-color:#FFF000; padding: 10pt;">Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!</div></div>
201
+ </noscript>
202
+
203
 
204
  <script type="text/javascript">
205
  function disableSelection(e){if(typeof e.onselectstart!="undefined")e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!="undefined")e.style.MozUserSelect="none";else e.onmousedown=function(){return false};e.style.cursor="default"}window.onload=function(){disableSelection(document.body)}
226
 
227
  <script type="text/javascript">
228
  window.addEventListener("keydown",function(e){if(e.ctrlKey&&(e.which==65||e.which==66||e.which==67||e.which==70||e.which==73||e.which==80||e.which==83||e.which==85||e.which==86)){e.preventDefault()}});document.keypress=function(e){if(e.ctrlKey&&(e.which==65||e.which==66||e.which==70||e.which==67||e.which==73||e.which==80||e.which==83||e.which==85||e.which==86)){}return false}
229
+ /**
230
+ * For mac we need to check metakey
231
+ */
232
+ window.addEventListener("keydown",function(e){if( event.metaKey&&(e.which==65||e.which==66||e.which==67||e.which==70||e.which==73||e.which==80||e.which==83||e.which==85||e.which==86)){e.preventDefault()}});document.keypress=function(e){if(e.ctrlKey&&(e.which==65||e.which==66||e.which==70||e.which==67||e.which==73||e.which==80||e.which==83||e.which==85||e.which==86)){}return false}
233
+
234
  </script>
235
 
236
+
237
  <script type="text/javascript">
238
  document.onkeydown=function(e){e=e||window.event;if(e.keyCode==123||e.keyCode==18){return false}}
239
  </script>