WP Content Copy Protection & No Right Click - Version 2.6

Version Description

  • Test all features with wordpress version 5.5
Download this release

Release Info

Developer wp-buy
Plugin Icon 128x128 WP Content Copy Protection & No Right Click
Version 2.6
Comparing to
See all releases

Code changes from version 2.3 to 2.6

Files changed (4) hide show
  1. admin-core.php +18 -26
  2. preventer-index.php +86 -8
  3. readme.txt +14 -3
  4. the_globals.php +5 -0
admin-core.php CHANGED
@@ -215,7 +215,6 @@ if(localStorage.getItem('wpccp_subscribed') =='wpccp_subsbc_user')
215
  <li><a href="#"><?php _e('Premium RightClick Protection','wp-content-copy-protector'); ?></a></li>
216
  <li><a href="#"><?php _e('Premium Protection by CSS','wp-content-copy-protector'); ?></a></li>
217
  <li><a href="#"><?php _e('More with pro','wp-content-copy-protector'); ?></a></li>
218
- <li><a href="#"><?php _e('Other products','wp-content-copy-protector'); ?></a></li>
219
  </ul>
220
  <div class="simpleTabsContent">
221
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
@@ -481,33 +480,26 @@ if(localStorage.getItem('wpccp_subscribed') =='wpccp_subsbc_user')
481
  </ul>
482
  <p><a href="https://www.wp-buy.com/wpccp-subscribe">Subscribe</a> to our mailing list to get flash discounts</p>
483
  </div>
484
- <div class="simpleTabsContent" id="a55">
485
- <h4><?php _e('Other products:','wp-content-copy-protector'); ?></h4>
486
- <div id="other-products">
487
- <?php
488
- $before_url = '';
489
- if(is_multisite()) $before_url = "network/";
490
- ?>
491
- <a href="<?php echo $before_url ?>plugin-install.php?s=wp-buy+codepressplugins++WP+Maintenance+Mode+Site+Under+Construction&tab=search&type=term">
492
- <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/other-products/1.gif" style="margin: 10px">
493
- </a>
494
- <a href="<?php echo $before_url ?>plugin-install.php?s=Post+List+Creator&tab=search&type=tag">
495
- <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/other-products/2.gif" style="margin: 10px">
496
- </a>
497
- <a href="<?php echo $before_url ?>plugin-install.php?s=wp-buy+Captchinoo&tab=search&type=term">
498
- <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/other-products/3.gif" style="margin: 10px">
499
- </a>
500
- <a href="<?php echo $before_url ?>plugin-install.php?s=wp-buy+Login+LockDown+–+Limit+Failed+Login+Attempts&tab=search&type=term">
501
- <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/other-products/4.gif" style="margin: 10px">
502
- </a>
503
- <style>
504
- #other-products a,#other-products a:active,#other-products a:focus{
505
- color: #fff;
506
- }
507
- </style>
508
- </div>
509
  </div><!-- simple tabs div end -->
510
  <p align="right"><input class="btn btn-success" type="submit" value=" <?php _e('Save Settings','wp-content-copy-protector'); ?> " name="B4" style="width: 193; height: 29;">&nbsp;&nbsp;</p>
511
  </form>
512
  </div>
513
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  <li><a href="#"><?php _e('Premium RightClick Protection','wp-content-copy-protector'); ?></a></li>
216
  <li><a href="#"><?php _e('Premium Protection by CSS','wp-content-copy-protector'); ?></a></li>
217
  <li><a href="#"><?php _e('More with pro','wp-content-copy-protector'); ?></a></li>
 
218
  </ul>
219
  <div class="simpleTabsContent">
220
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
480
  </ul>
481
  <p><a href="https://www.wp-buy.com/wpccp-subscribe">Subscribe</a> to our mailing list to get flash discounts</p>
482
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
483
  </div><!-- simple tabs div end -->
484
  <p align="right"><input class="btn btn-success" type="submit" value=" <?php _e('Save Settings','wp-content-copy-protector'); ?> " name="B4" style="width: 193; height: 29;">&nbsp;&nbsp;</p>
485
  </form>
486
  </div>
487
 
488
+ <div id="other-products">
489
+ <?php
490
+ $before_url = '';
491
+ if(is_multisite()) $before_url = "network/";
492
+ ?>
493
+ <p>Recommended for you:</p>
494
+ <a href="<?php echo $before_url ?>plugin-install.php?s=wp-buy+Captchinoo&tab=search&type=term">
495
+ <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/other-products/3.gif" style="margin: 10px">
496
+ </a>
497
+ <a href="<?php echo $before_url ?>plugin-install.php?s=wp-buy+Login+LockDown+–+Limit+Failed+Login+Attempts&tab=search&type=term">
498
+ <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/other-products/4.gif" style="margin: 10px">
499
+ </a>
500
+ <style>
501
+ #other-products a,#other-products a:active,#other-products a:focus{
502
+ color: #fff;
503
+ }
504
+ </style>
505
+ </div>
preventer-index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Content Copy Protection & No Right Click
4
  Plugin URI: http://wordpress.org/plugins/w-p-content-copy-protector/
5
  Description: This wp plugin protect the posts content from being copied by any other web site author , you dont want your content to spread without your permission!!
6
- Version: 2.3
7
  Author: wp-buy
8
  Text Domain: wp-content-copy-protector
9
  Domain Path: /languages
@@ -65,7 +65,7 @@ function wpcp_disable_selection()
65
  global $wccp_settings;
66
  ?>
67
  <script id="wpcp_disable_selection" type="text/javascript">
68
- //<![CDATA[
69
  var image_save_msg='You Can Not Save images!';
70
  var no_menu_msg='Context Menu disabled!';
71
  var smessage = "<?php echo $wccp_settings['smessage'];?>";
@@ -163,7 +163,79 @@ function disableSelection(target)
163
  }
164
  //Calling the JS function directly just after body load
165
  window.onload = function(){disableSelection(document.body);};
166
- //]]>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  </script>
168
  <?php
169
  }
@@ -497,18 +569,23 @@ $wccpadminurl = get_admin_url();
497
  //The properties of the new item. Read More about the missing 'parent' parameter below
498
  $args = array(
499
  'id' => 'Protection',
500
- 'title' => __('<img src="'.$pluginsurl.'/images/adminbaricon.png" style="vertical-align:middle;margin-right:5px;width: 22px;" alt="Protection" title="Protection" />Protection' ),
501
  'href' => $wccpadminurl.'options-general.php?page=wccpoptionspro',
502
- 'meta' => array('title' => __('WP Content Copy Protection'),)
503
  );
504
 
505
  //This is where the magic works.
506
  $admin_bar->add_menu( $args);
507
  }
508
  //---------------------------------------- Add plugin settings link to Plugins page
509
- function wccp_plugin_add_settings_link( $links ) {
510
- $settings_link = '<a href="options-general.php?page=wccpoptionspro">' . __( 'Settings' ) . '</a>';
 
511
  array_push( $links, $settings_link );
 
 
 
 
512
  return $links;
513
  }
514
  $plugin = plugin_basename( __FILE__ );
@@ -532,7 +609,7 @@ function wpccp_after_plugin_row( $plugin_file, $plugin_data, $status ) {
532
  echo '<th class="check-column" scope="row"></th>';
533
  echo '<td colspan="3" class="plugin-update">';
534
  echo '<div id="wccp-update-message" style="background:#edf4f7;padding:10px;" >';
535
- echo __('You are running WP Content Copy Protection & No Right Click (free). To get more features, you can ') . '<a href="' .$p_url. '" target="_blank"><strong>' . __('Upgrade Now') . '</strong></a>, <a id="HideMe" href="javascript:void(0)"><strong>' . __('Dismiss') . '</strong></a>.';
536
  echo '</div>';
537
  echo '</td>';
538
  echo '</tr>';
@@ -563,6 +640,7 @@ function wpccp_after_plugin_row( $plugin_file, $plugin_data, $status ) {
563
  }
564
 
565
  });
 
566
  </script>
567
  <?php
568
  }
3
  Plugin Name: WP Content Copy Protection & No Right Click
4
  Plugin URI: http://wordpress.org/plugins/w-p-content-copy-protector/
5
  Description: This wp plugin protect the posts content from being copied by any other web site author , you dont want your content to spread without your permission!!
6
+ Version: 2.6
7
  Author: wp-buy
8
  Text Domain: wp-content-copy-protector
9
  Domain Path: /languages
65
  global $wccp_settings;
66
  ?>
67
  <script id="wpcp_disable_selection" type="text/javascript">
68
+ /*<![CDATA[*/
69
  var image_save_msg='You Can Not Save images!';
70
  var no_menu_msg='Context Menu disabled!';
71
  var smessage = "<?php echo $wccp_settings['smessage'];?>";
163
  }
164
  //Calling the JS function directly just after body load
165
  window.onload = function(){disableSelection(document.body);};
166
+
167
+ //////////////////special for safari Start////////////////
168
+ var onlongtouch;
169
+ var timer;
170
+ var touchduration = 1000; //length of time we want the user to touch before we do something
171
+
172
+ var elemtype = "";
173
+ function touchstart(e) {
174
+ var e = e || window.event;
175
+ // also there is no e.target property in IE.
176
+ // instead IE uses window.event.srcElement
177
+ var target = e.target || e.srcElement;
178
+
179
+ elemtype = window.event.srcElement.nodeName;
180
+
181
+ elemtype = elemtype.toUpperCase();
182
+
183
+ if(!wccp_pro_is_passive()) e.preventDefault();
184
+ if (!timer) {
185
+ timer = setTimeout(onlongtouch, touchduration);
186
+ }
187
+ }
188
+
189
+ function touchend() {
190
+ //stops short touches from firing the event
191
+ if (timer) {
192
+ clearTimeout(timer);
193
+ timer = null;
194
+ }
195
+ onlongtouch();
196
+ }
197
+
198
+ onlongtouch = function(e) { //this will clear the current selection if anything selected
199
+
200
+ if (elemtype != "TEXT" && elemtype != "TEXTAREA" && elemtype != "INPUT" && elemtype != "PASSWORD" && elemtype != "SELECT" && elemtype != "EMBED" && elemtype != "OPTION")
201
+ {
202
+ if (window.getSelection) {
203
+ if (window.getSelection().empty) { // Chrome
204
+ window.getSelection().empty();
205
+ } else if (window.getSelection().removeAllRanges) { // Firefox
206
+ window.getSelection().removeAllRanges();
207
+ }
208
+ } else if (document.selection) { // IE?
209
+ document.selection.empty();
210
+ }
211
+ return false;
212
+ }
213
+ };
214
+
215
+ document.addEventListener("DOMContentLoaded", function(event) {
216
+ window.addEventListener("touchstart", touchstart, false);
217
+ window.addEventListener("touchend", touchend, false);
218
+ });
219
+
220
+ function wccp_pro_is_passive() {
221
+
222
+ var cold = false,
223
+ hike = function() {};
224
+
225
+ try {
226
+ const object1 = {};
227
+ var aid = Object.defineProperty(object1, 'passive', {
228
+ get() {cold = true}
229
+ });
230
+ window.addEventListener('test', hike, aid);
231
+ window.removeEventListener('test', hike, aid);
232
+ } catch (e) {}
233
+
234
+ return cold;
235
+ }
236
+ /*special for safari End*/
237
+
238
+ /*]]>*/
239
  </script>
240
  <?php
241
  }
569
  //The properties of the new item. Read More about the missing 'parent' parameter below
570
  $args = array(
571
  'id' => 'Protection',
572
+ 'title' => '<img src="'.$pluginsurl.'/images/adminbaricon.png" style="vertical-align:middle;margin-right:5px;width: 22px;" alt="Protection" title="Protection" />' . __('Protection', 'wp-content-copy-protector'),
573
  'href' => $wccpadminurl.'options-general.php?page=wccpoptionspro',
574
+ 'meta' => array('title' => __('WP Content Copy Protection', 'wp-content-copy-protector'),)
575
  );
576
 
577
  //This is where the magic works.
578
  $admin_bar->add_menu( $args);
579
  }
580
  //---------------------------------------- Add plugin settings link to Plugins page
581
+ function wccp_plugin_add_settings_link( $links )
582
+ {
583
+ $settings_link = '<a href="options-general.php?page=wccpoptionspro">' . __( 'Settings', 'wp-content-copy-protector') . '</a>';
584
  array_push( $links, $settings_link );
585
+
586
+ $go_pro_link = '<a title="Upgrade to PRO verion Now" target="_blank" style="font-weight:bold;color: chocolate;" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/#wccp_go_pro">' . __( 'Go PRO', 'wp-content-copy-protector') . '</a>';
587
+ array_push( $links, $go_pro_link );
588
+
589
  return $links;
590
  }
591
  $plugin = plugin_basename( __FILE__ );
609
  echo '<th class="check-column" scope="row"></th>';
610
  echo '<td colspan="3" class="plugin-update">';
611
  echo '<div id="wccp-update-message" style="background:#edf4f7;padding:10px;" >';
612
+ echo __('You are running WP Content Copy Protection & No Right Click (free). To get more features, you can ', 'wp-content-copy-protector') . '<a href="' .$p_url. '" target="_blank"><strong>' . __('Upgrade Now', 'wp-content-copy-protector') . '</strong></a>, <a id="HideMe" href="javascript:void(0)"><strong>' . __('Dismiss', 'wp-content-copy-protector') . '</strong></a>.';
613
  echo '</div>';
614
  echo '</td>';
615
  echo '</tr>';
640
  }
641
 
642
  });
643
+
644
  </script>
645
  <?php
646
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp-buy
3
  Donate link: http://goo.gl/UJVpbi
4
  Tags: content, content copy protection, content protection, copy protection, prevent copy, protect blog, image protect, image protection, no right click, plagiarism, secure content, content theft
5
  Requires at least: 3.5
6
- Tested up to: 5.4
7
  Stable tag: trunk
8
 
9
  This wp plugin protect the posts content from being copied by any other web site author (content copy protection) , you dont want your content to spread without your permission!!
@@ -30,6 +30,7 @@ your posts extremely simple without yelling at your readers</li>
30
 
31
  **The Pro Edition Features include:**
32
  <ul>
 
33
  <li>Watermarking</li>
34
  <li>Using htacsess rules</li>
35
  <li>Support jquery overlay protection</li>
@@ -64,9 +65,19 @@ your posts extremely simple without yelling at your readers</li>
64
  </ul>
65
 
66
  == Changelog ==
67
- =2.4=
68
  <ul>
69
- <li>This update is happen because of help, alot of help from Kenedy Torcatt https://wordpress.org/support/users/kenedyt/, So many thanks to him forever</li>
 
 
 
 
 
 
 
 
 
 
70
  </ul>
71
  = 2.3 =
72
  <ul>
3
  Donate link: http://goo.gl/UJVpbi
4
  Tags: content, content copy protection, content protection, copy protection, prevent copy, protect blog, image protect, image protection, no right click, plagiarism, secure content, content theft
5
  Requires at least: 3.5
6
+ Tested up to: 5.5
7
  Stable tag: trunk
8
 
9
  This wp plugin protect the posts content from being copied by any other web site author (content copy protection) , you dont want your content to spread without your permission!!
30
 
31
  **The Pro Edition Features include:**
32
  <ul>
33
+ <li><a href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"><strong>PRO version product page</strong></li>
34
  <li>Watermarking</li>
35
  <li>Using htacsess rules</li>
36
  <li>Support jquery overlay protection</li>
65
  </ul>
66
 
67
  == Changelog ==
68
+ = 2.6 =
69
  <ul>
70
+ <li>Test all features with wordpress version 5.5</li>
71
+ </ul>
72
+ = 2.5 =
73
+ <ul>
74
+ <li>Code fix</li>
75
+ </ul>
76
+ = 2.4 =
77
+ <ul>
78
+ <li>Safari update and fix</li>
79
+ <li>checking with new wordpress version</li>
80
+ <li>Admin page Fix</li>
81
  </ul>
82
  = 2.3 =
83
  <ul>
the_globals.php CHANGED
@@ -2,4 +2,9 @@
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  //Get The Plugins URL as http://www.yrsite.com/dir/subdir
4
  $pluginsurl = plugins_url( '', __FILE__ );
 
 
 
 
 
5
  ?>
2
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  //Get The Plugins URL as http://www.yrsite.com/dir/subdir
4
  $pluginsurl = plugins_url( '', __FILE__ );
5
+ if(is_ssl())
6
+ {
7
+ $pluginsurl = str_replace("https:", "http:", $pluginsurl);// just to make sure that there is no https there
8
+ $pluginsurl = str_replace("http:", "https:", $pluginsurl);
9
+ }
10
  ?>