WP Content Copy Protection & No Right Click - Version 1.5.0.3

Version Description

  • Adding adminbar link and icon redirecting you to the plugin settings page
  • Adding settings link into the plugins list page
Download this release

Release Info

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

Code changes from version 1.3 to 1.5.0.3

admin-core.php CHANGED
@@ -1,47 +1,88 @@
1
  <?php
2
  //define all variables the needed alot
3
  include 'the_globals.php';
4
- if($_POST["action"] == 'update')
 
 
5
  {
6
  //----------------------------------------------------list the options array values
7
- $single_posts_protection = $_POST["single_posts_protection"];
8
- $css_protection = $_POST["css_protection"];
9
- $home_page_protection = $_POST["home_page_protection"];
10
- $show_protection_info = $_POST["show_protection_info"];
11
- $protect_admin = $_POST["protect_admin"];
 
 
 
 
 
12
 
13
- $img = $_POST["img"];
14
- $a = $_POST["a"];
15
- $pb = $_POST["pb"];
16
- $input = $_POST["input"];
17
- $h= $_POST["h"];
18
- $textarea = $_POST["textarea"];
19
- $emptyspaces = $_POST["emptyspaces"];
20
 
21
- $smessage = $_POST["smessage"];
22
- $alert_msg_img = $_POST["alert_msg_img"];
23
- $alert_msg_a = $_POST["alert_msg_a"];
24
- $alert_msg_pb = $_POST["alert_msg_pb"];
25
- $alert_msg_input = $_POST["alert_msg_input"];
26
- $alert_msg_h = $_POST["alert_msg_h"];
27
- $alert_msg_textarea = $_POST["alert_msg_textarea"];
28
- $alert_msg_emptyspaces = $_POST["alert_msg_emptyspaces"];
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  //----------------------------------------------------Get the options array values
31
  $wccp_settings =
32
  Array (
33
  'single_posts_protection' => $single_posts_protection, // prevent content copy, take 2 parameters
34
- 'css_protection' => $css_protection, // PROTECTION BY CSS TECHNIQUES
35
  'home_page_protection' => $home_page_protection, // PROTECT THE HOME PAGE OR NOT
36
- 'show_protection_info' => $show_protection_info, // about the plugin
37
- 'protect_admin' => $protect_admin,
38
- 'img' => $img,
39
- 'a' => $a,
40
- 'pb' => $pb,
41
- 'input' => $input,
42
- 'h' => $h,
43
- 'textarea' => $textarea,
44
- 'emptyspaces' => $emptyspaces,
 
 
 
 
 
 
45
  'smessage' => $smessage,
46
  'alert_msg_img' => $alert_msg_img,
47
  'alert_msg_a' => $alert_msg_a,
@@ -51,6 +92,7 @@ if($_POST["action"] == 'update')
51
  'alert_msg_textarea' => $alert_msg_textarea,
52
  'alert_msg_emptyspaces' => $alert_msg_emptyspaces
53
  );
 
54
  if ($wccp_settings != '' ) {
55
  update_option( 'wccp_settings' , $wccp_settings );
56
  } else {
@@ -102,70 +144,50 @@ min-width:770px;
102
  .simpleTabsContent{
103
  border: 1px solid #E9E9E9;
104
  padding: 4px;
105
- //overflow: hidden;
106
  }
107
  div.simpleTabsContent{
108
  margin-top:0;
 
 
 
 
 
 
 
 
109
  }
110
- #sell-message{
111
- margin-top: 10px;
112
- background-color: #FFFFFF;
113
- border-left: 4px solid #7AD03A;
114
- box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
115
- padding: 1px 12px;
116
- color: #444444;
117
- width: 520px;
118
  }
119
  </style>
120
- <!-- SimpleTabs -->
121
- <script type="text/javascript" src="<?php echo $pluginsurl; ?>/js/simpletabs_1.3.js"></script>
122
- <style type="text/css" media="screen">
123
- @import "<?php echo $pluginsurl; ?>/css/simpletabs.css";
124
- </style>
125
- <!-- /SimpleTabs -->
126
- <!-- Loading Bootstrap -->
127
- <link href="<?php echo $pluginsurl; ?>/flat-ui/css/bootstrap.css" rel="stylesheet">
128
- <!-- Loading Flat UI -->
129
- <link href="<?php echo $pluginsurl; ?>/flat-ui/css/flat-ui.css" rel="stylesheet">
130
- <!-- Load JS here for greater good =============================-->
131
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/jquery-1.8.3.min.js"></script>
132
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/jquery-ui-1.10.3.custom.min.js"></script>
133
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/jquery.ui.touch-punch.min.js"></script>
134
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/bootstrap.min.js"></script>
135
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/bootstrap-select.js"></script>
136
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/bootstrap-switch.js"></script>
137
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/flatui-checkbox.js"></script>
138
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/flatui-radio.js"></script>
139
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/jquery.tagsinput.js"></script>
140
- <script src="<?php echo $pluginsurl; ?>/flat-ui/js/jquery.placeholder.js"></script>
141
- <div id="sell-message">
142
- <p>Want to thank us? give us a good rating
143
- <a href="http://wordpress.org/plugins/wp-content-copy-protector/">here</a></p></div>
144
  <div id="aio_admin_main">
145
  <form method="POST">
146
  <input type="hidden" value="update" name="action">
147
  <div class="simpleTabs">
148
  <ul class="simpleTabsNavigation">
149
  <li><a href="#">Main Settings</a></li>
150
- <li><a href="#">Premium Settings</a></li>
151
- <li><a href="#">About</a></li>
 
152
  </ul>
153
  <div class="simpleTabsContent">
154
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
155
  <tr>
156
  <td width="77%">
157
-
158
- <div class="inner_block">
159
- <h4>WP Content Copy Protection:</h4>
160
- <p><font face="Tahoma" size="2">This wp plugin protect the posts content from being copied by any other
161
- web site author , you dont want your content to spread without your
162
- permission!!</font></p>
163
- <table border="0" width="100%" cellspacing="0" cellpadding="0" height="370">
164
  <tr>
165
- <td>
166
- <table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
 
167
  <tr>
168
- <td width="221" height="33"><font face="Tahoma" size="2"><b>Posts</b> Protection</font></td>
 
 
169
  <td>
170
  <select size="1" name="single_posts_protection">
171
  <?php
@@ -186,7 +208,10 @@ div.simpleTabsContent{
186
  <p><font face="Tahoma" size="2">&nbsp;For single posts content</font></p></td>
187
  </tr>
188
  <tr>
189
- <td width="221" height="33"><font face="Tahoma" size="2"><b>Home Page</b> Protection</font></td>
 
 
 
190
  <td>
191
  <select size="1" name="home_page_protection">
192
  <?php
@@ -204,85 +229,229 @@ div.simpleTabsContent{
204
  </select>
205
  </td>
206
  <td align="left">
207
- <p><font face="Tahoma" size="2">&nbsp;Dont copy any thing!
208
  even from my homepage</font></td>
209
  </tr>
210
  <tr>
211
- <td width="221" height="33"><font face="Tahoma" size="2">Protection by <b>CSS</b></font></td>
212
  <td>
213
- <select size="1" name="css_protection">
214
  <?php
215
- if ($wccp_settings['css_protection'] == 'Enabled')
216
  {
217
  echo '<option selected>Enabled</option>';
218
  echo '<option>Disabled</option>';
219
  }
220
  else
221
  {
222
- echo '<option>Enabled</option>';
223
  echo '<option selected>Disabled</option>';
 
224
  }
225
  ?>
226
- </select>
227
- </td>
228
  <td align="left">
229
- <p><font face="Tahoma" size="2">&nbsp;Using CSS special code
230
- to protect the content without JavaScript</font></td>
231
  </tr>
232
  <tr>
233
- <td width="221" height="33"><font face="Tahoma" size="2">Right Click protection</font></td>
 
234
  <td>
235
- <select size="1" name="D1">
236
- <option selected value="Customized">Customized</option>
237
- </select></td>
238
  <td align="left">
239
- <p><font face="Tahoma" size="2">&nbsp;Use Premium Settings tab to
240
- Customize its options</font></td>
 
 
 
 
 
 
 
 
 
 
 
241
  </tr>
242
- </table>
243
  </td>
244
  </tr>
245
  </table>
246
- </div>
247
  </td>
248
  </tr>
249
  </table></div>
250
  <div class="simpleTabsContent">
251
- <h4>WP Content Copy Protection (<font color="#008000">Premium options</font>):</h4>
252
- <p style="text-align: center"><b>
253
- <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
254
- <font size="7" color="#0606FF">Preview</font></a></b></p>
255
- <p style="text-align: center">
256
- <img class="decoded overflowing" alt="http://www.wp-buy.com/wp-content/uploads/2014/01/screenshot-1.png" src="http://www.wp-buy.com/wp-content/uploads/2014/01/screenshot-1.png"></p>
257
- </div>
258
- <div class="simpleTabsContent" style="border: 1px solid #E9E9E9; padding: 4px" id="layer1">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
 
260
- <h6 class="text-font">About WP Content Copy Protection:</h6>
261
- <p><font face="Tahoma" style="font-size: 10pt">This wp plugin protect the posts content from being copied by any
262
- other web site author , you dont want your content to spread without
263
- your permission!!</font></p>
264
- <h6 class="text-font">Description:</h6>
265
- <p><font face="Tahoma" style="font-size: 10pt">This wp plugin protect the posts content from being copied by any
266
- other web site author , you dont want your content to spread without
267
- your permission!!</font></p>
268
- <h6 class="text-font">Improve your seo score in Google and Yahoo and other SE's:</h6>
269
- <p><font face="Tahoma" style="font-size: 10pt">Our plugin protect your content from being copied by any other web
270
- sites so your posts will still uniqe content, this is the best option
271
- for seo</font></p>
272
- <h6 class="text-font">Don't Let Your Stories Go to web thief !</h6>
273
- <p><font face="Tahoma" style="font-size: 10pt">The plugin will keep your posts and home page protected by multiple
274
- techniques (JavaScript + CSS), this techniques does not found in any
275
- other wordpress plugin and you will own it for free with this plugin</font></p>
276
- <h6 class="text-font">Easy to Install:</h6>
277
- <p><font face="Tahoma" style="font-size: 10pt">Read the installation steps to find that this plugin does not need
278
- any coding or theme editing, just use your mouse..</font></div>
279
- <!-- new tab -->
280
- <div class="simpleTabsContent" style="border: 1px solid #E9E9E9; padding: 4px">
281
- </div>
282
- <!-- /new tab -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  </div><!-- simple tabs div end -->
284
- <script>$("select").selectpicker({style: 'btn-hg btn-primary', menuStyle: 'dropdown-inverse'});
285
- $(':checkbox').checkbox('check');
286
- </script>
287
  <p align="right"><input class="btn btn-success" type="submit" value=" Save Settings " name="B4" style="width: 193; height: 29;">&nbsp;&nbsp;</p>
288
- </form></div>
1
  <?php
2
  //define all variables the needed alot
3
  include 'the_globals.php';
4
+ $post_action = '';
5
+ if(isset($_POST["action"])) $post_action = $_POST["action"];
6
+ if($post_action == 'update')
7
  {
8
  //----------------------------------------------------list the options array values
9
+ //----------------------------------------------------list the options array values
10
+ $single_posts_protection = '';
11
+ if(isset($_POST["single_posts_protection"])) $single_posts_protection = $_POST["single_posts_protection"];
12
+ $home_page_protection = '';
13
+ if(isset($_POST["home_page_protection"])) $home_page_protection = $_POST["home_page_protection"];
14
+ $page_protection = '';
15
+ if(isset($_POST["page_protection"])) $page_protection = $_POST["page_protection"];
16
+
17
+ $exclude_admin_from_protection = '';
18
+ if(isset($_POST["exclude_admin_from_protection"])) $exclude_admin_from_protection = $_POST["exclude_admin_from_protection"];
19
 
20
+ $home_css_protection = '';
21
+ if(isset($_POST["home_css_protection"])) $home_css_protection = $_POST["home_css_protection"];
22
+ $posts_css_protection = '';
23
+ if(isset($_POST["posts_css_protection"])) $posts_css_protection = $_POST["posts_css_protection"];
24
+ $pages_css_protection = '';
25
+ if(isset($_POST["pages_css_protection"])) $pages_css_protection = $_POST["pages_css_protection"];
 
26
 
27
+ $right_click_protection_posts = '';
28
+ if(isset($_POST["right_click_protection_posts"])) $right_click_protection_posts = $_POST["right_click_protection_posts"];
29
+ $right_click_protection_homepage = '';
30
+ if(isset($_POST["right_click_protection_homepage"])) $right_click_protection_homepage = $_POST["right_click_protection_homepage"];
31
+ $right_click_protection_pages = '';
32
+ if(isset($_POST["right_click_protection_pages"])) $right_click_protection_pages = $_POST["right_click_protection_pages"];
 
 
33
 
34
+ $img = '';
35
+ if(isset($_POST["img"])) $img = $_POST["img"];
36
+ $a = '';
37
+ if(isset($_POST["a"])) $a = $_POST["a"];
38
+ $pb = '';
39
+ if(isset($_POST["pb"])) $pb = $_POST["pb"];
40
+ $input = '';
41
+ if(isset($_POST["input"])) $input = $_POST["input"];
42
+ $h = '';
43
+ if(isset($_POST["h"])) $h = $_POST["h"];
44
+ $textarea = '';
45
+ if(isset($_POST["textarea"])) $textarea = $_POST["textarea"];
46
+ $emptyspaces = '';
47
+ if(isset($_POST["emptyspaces"])) $emptyspaces = $_POST["emptyspaces"];
48
+
49
+ $smessage = '';
50
+ if(isset($_POST["smessage"])) $smessage = $_POST["smessage"];
51
+ $alert_msg_img = '';
52
+ if(isset($_POST["alert_msg_img"])) $alert_msg_img = $_POST["alert_msg_img"];
53
+ $alert_msg_a = '';
54
+ if(isset($_POST["alert_msg_a"])) $alert_msg_a = $_POST["alert_msg_a"];
55
+ $alert_msg_pb = '';
56
+ if(isset($_POST["alert_msg_pb"])) $alert_msg_pb = $_POST["alert_msg_pb"];
57
+ $alert_msg_input = '';
58
+ if(isset($_POST["alert_msg_input"])) $alert_msg_input = $_POST["alert_msg_input"];
59
+ $alert_msg_h = '';
60
+ if(isset($_POST["alert_msg_h"])) $alert_msg_h = $_POST["alert_msg_h"];
61
+ $alert_msg_textarea = '';
62
+ if(isset($_POST["alert_msg_textarea"])) $alert_msg_textarea = $_POST["alert_msg_textarea"];
63
+ $alert_msg_emptyspaces = '';
64
+ if(isset($_POST["alert_msg_emptyspaces"])) $alert_msg_emptyspaces = $_POST["alert_msg_emptyspaces"];
65
+
66
  //----------------------------------------------------Get the options array values
67
  $wccp_settings =
68
  Array (
69
  'single_posts_protection' => $single_posts_protection, // prevent content copy, take 2 parameters
 
70
  'home_page_protection' => $home_page_protection, // PROTECT THE HOME PAGE OR NOT
71
+ 'page_protection' => $page_protection, // protect pages by javascript
72
+ 'right_click_protection_posts' => $right_click_protection_posts, //
73
+ 'right_click_protection_homepage' => $right_click_protection_homepage, //
74
+ 'right_click_protection_pages' => $right_click_protection_pages, //
75
+ 'home_css_protection' => $home_css_protection, // premium option
76
+ 'posts_css_protection' => 'No', // premium option
77
+ 'pages_css_protection' => 'No', // premium option
78
+ 'exclude_admin_from_protection' => 'No', // premium option
79
+ 'img' => '', // premium option
80
+ 'a' => '', // premium option
81
+ 'pb' => '', // premium option
82
+ 'input' => '', // premium option
83
+ 'h' => '', // premium option
84
+ 'textarea' => '', // premium option
85
+ 'emptyspaces' => '', // premium option
86
  'smessage' => $smessage,
87
  'alert_msg_img' => $alert_msg_img,
88
  'alert_msg_a' => $alert_msg_a,
92
  'alert_msg_textarea' => $alert_msg_textarea,
93
  'alert_msg_emptyspaces' => $alert_msg_emptyspaces
94
  );
95
+
96
  if ($wccp_settings != '' ) {
97
  update_option( 'wccp_settings' , $wccp_settings );
98
  } else {
144
  .simpleTabsContent{
145
  border: 1px solid #E9E9E9;
146
  padding: 4px;
 
147
  }
148
  div.simpleTabsContent{
149
  margin-top:0;
150
+ border: 1px solid #E0E0E0;
151
+ display: none;
152
+ height: 100%;
153
+ min-height: 400px;
154
+ padding: 5px 15px 15px;
155
+ }
156
+ html {
157
+ background: #FFFFFF;
158
  }
159
+ .size-full {
160
+ height: auto;
161
+ max-width: 100%;
 
 
 
 
 
162
  }
163
  </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  <div id="aio_admin_main">
165
  <form method="POST">
166
  <input type="hidden" value="update" name="action">
167
  <div class="simpleTabs">
168
  <ul class="simpleTabsNavigation">
169
  <li><a href="#">Main Settings</a></li>
170
+ <li><a href="#">Premium RightClick Protection</a></li>
171
+ <li><a href="#">Premium Protection by CSS</a></li>
172
+ <li><a href="#">More with pro</a></li>
173
  </ul>
174
  <div class="simpleTabsContent">
175
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
176
  <tr>
177
  <td width="77%">
178
+ <h4>Copy Protection using JavaScript (<font color="#008000">Basic Layer</font>):</h4>
179
+ <p><font face="Tahoma" size="2">This is the basic protection layer that uses
180
+ <u>JavaScript</u> to protect the posts, home page content from being copied by any other
181
+ web site author.</font></p>
182
+ <table border="0" width="100%" cellspacing="0" cellpadding="0">
 
 
183
  <tr>
184
+ <td width="60%">
185
+ <div style="float: left;padding: 4px" id="layer3">
186
+ <table border="0" width="100%" height="320" cellspacing="0" cellpadding="0">
187
  <tr>
188
+ <td width="221" height="33"><font face="Tahoma" size="2">Posts protection
189
+ by
190
+ <u>JavaScript</u></font></td>
191
  <td>
192
  <select size="1" name="single_posts_protection">
193
  <?php
208
  <p><font face="Tahoma" size="2">&nbsp;For single posts content</font></p></td>
209
  </tr>
210
  <tr>
211
+ <td width="221" height="33"><font face="Tahoma" size="2">Homepage
212
+ protection
213
+ by
214
+ <u>JavaScript</u></font></td>
215
  <td>
216
  <select size="1" name="home_page_protection">
217
  <?php
229
  </select>
230
  </td>
231
  <td align="left">
232
+ <p><font face="Tahoma" size="2">&nbsp;Don't copy any thing!
233
  even from my homepage</font></td>
234
  </tr>
235
  <tr>
236
+ <td width="221" height="33"><font face="Tahoma" size="2">Static page's protection</font></td>
237
  <td>
238
+ <select size="1" name="page_protection">
239
  <?php
240
+ if ($wccp_settings['page_protection'] == 'Enabled')
241
  {
242
  echo '<option selected>Enabled</option>';
243
  echo '<option>Disabled</option>';
244
  }
245
  else
246
  {
 
247
  echo '<option selected>Disabled</option>';
248
+ echo '<option>Enabled</option>';
249
  }
250
  ?>
251
+ </select></td>
 
252
  <td align="left">
253
+ <p><font face="Tahoma" size="2">&nbsp;Use Premium Settings tab to customize more options</font></td>
 
254
  </tr>
255
  <tr>
256
+ <td width="221" height="33"><font face="Tahoma" size="2">Exclude
257
+ <u>Admin</u> from protection</font></td>
258
  <td>
259
+ <p align="center"><font color="#FF0000">Premium</font></td>
 
 
260
  <td align="left">
261
+ <font face="Tahoma" size="2">&nbsp;If <u>Yes</u>, The protection
262
+ functions will be inactive for the admin when he is logged in</font></td>
263
+ </tr>
264
+ <tr>
265
+ <td width="221" height="33"><font face="Tahoma" size="2">Selection disabled message</font></td>
266
+ <td colspan="2">
267
+ <table border="0" width="49%" cellspacing="0" cellpadding="0">
268
+ <tr>
269
+ <td>
270
+ <input type="text" placeholder="Enter something" class="form-control" name="smessage" value="<?php echo $wccp_settings['smessage']; ?>"></td>
271
+ </tr>
272
+ </table>
273
+ </td>
274
  </tr>
275
+ </table></div>
276
  </td>
277
  </tr>
278
  </table>
 
279
  </td>
280
  </tr>
281
  </table></div>
282
  <div class="simpleTabsContent">
283
+ <h4>Copy Protection on RightClick (<font color="#008000">Premium Layer 2</font>):</h4>
284
+ <p><font face="Tahoma" size="2">In this protection layer your visitors will
285
+ be able to <u>right click</u> on a specific page elements only (such as
286
+ Links as an example)</font></p>
287
+ <div id="layer4">
288
+ <table border="0" width="100%" height="361" cellspacing="0" cellpadding="0">
289
+ <tr>
290
+ <td height="53" width="21%"><font face="Tahoma" size="2">Disable <u>RightClick</u> on</font></td>
291
+ <td height="53">
292
+ <table border="0" width="521" height="100%" cellspacing="1" cellpadding="0">
293
+ <tr>
294
+ <td width="161" height="46">
295
+ <label class="checkbox" for="checkbox1">
296
+ <font face="Tahoma">
297
+ <input data-toggle="checkbox" type="checkbox" name="right_click_protection_posts" value="checked" <?php echo $wccp_settings['right_click_protection_posts']; ?>><font size="2">Posts
298
+ </font></font>
299
+ </label>
300
+ </td>
301
+ <td width="161" height="46">
302
+ <label class="checkbox" for="checkbox1">
303
+ <font face="Tahoma">
304
+ <input data-toggle="checkbox" type="checkbox" name="right_click_protection_homepage" value="checked" <?php echo $wccp_settings['right_click_protection_homepage']; ?>><font size="2">HomePage
305
+ </font></font>
306
+ </label>
307
+ </td>
308
+ <td width="185" height="46">
309
+ <label class="checkbox" for="checkbox1">
310
+ <font face="Tahoma">
311
+ <input data-toggle="checkbox" type="checkbox" name="right_click_protection_pages" value="checked" <?php echo $wccp_settings['right_click_protection_pages']; ?>><font size="2">Static
312
+ pages
313
+ </font></font>
314
+ </label>
315
+ </td>
316
+ </tr>
317
+ </table>
318
+ </td>
319
+ </tr>
320
+ <tr>
321
+ <td height="44" colspan="2">
322
+ <p align="left"><font color="#FF0000" face="Tahoma" size="2">
323
+ Remaining premium options preview image </font>
324
+ <img src="<?php echo $pluginsurl ?>/images/click-here-arrow.png" id="irc_mi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
325
+ <b><font color="#0909FF"><u>
326
+ <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
327
+ <font color="#0909FF">Preview &amp; Pricing</font></a></u></font></b>
328
+ </td>
329
+ </tr>
330
+ <tr>
331
+ <td height="264" colspan="2">
332
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
333
+ <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
334
+ <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/right-click-protection.jpg" style="border: 1px dotted #C0C0C0"></a><p>&nbsp;</td>
335
+ </tr>
336
+ </table></div>
337
+ </div>
338
+ <div class="simpleTabsContent">
339
+ <h4>Protection by CSS Techniques (<font color="#008000">Premium Layer 3</font>):</h4>
340
+ <p><font face="Tahoma" size="2">In this protection layer your website will
341
+ be protected by some <u>CSS</u> tricks that will word even if <u>JavaScript</u>
342
+ is disabled from the browser settings</font></p>
343
+ <table border="0" width="100%" cellspacing="0" cellpadding="0">
344
+ <tr>
345
+ <td width="60%">
346
+ <div style="float: left;padding: 4px" id="layer5">
347
+ <table border="0" width="100%" height="232" cellspacing="0" cellpadding="0">
348
+ <tr>
349
+ <td width="221" height="74"><font face="Tahoma" size="2"><b>Home Page</b> Protection by CSS</font></td>
350
+ <td height="74">
351
+ <select size="1" name="home_css_protection">
352
+ <?php
353
+ if ($wccp_settings['home_css_protection'] == 'Enabled')
354
+ {
355
+ echo '<option selected>Enabled</option>';
356
+ echo '<option>Disabled</option>';
357
+ }
358
+ else
359
+ {
360
+ echo '<option>Enabled</option>';
361
+ echo '<option selected>Disabled</option>';
362
+ }
363
+ ?>
364
+ </select>
365
+ </td>
366
+ <td align="left" height="74">
367
+ <font face="Tahoma" size="2">Protect your Homepage by CSS tricks</font></td>
368
+ </tr>
369
+ <tr>
370
+ <td width="221" height="77"><font face="Tahoma" size="2"><b>Posts</b> Protection by CSS</font></td>
371
+ <td align="center">
372
+ <font color="#FF0000">Premium </font>
373
+ </td>
374
+ <td align="left">
375
+ <font face="Tahoma" size="2">Protect your single posts by CSS tricks</font></td>
376
+ </tr>
377
+ <tr>
378
+ <td width="221"><font face="Tahoma" size="2"><b>Pages</b> Protection by CSS</font></td>
379
+ <td align="center">
380
+ <font color="#FF0000">Premium&nbsp;
381
+ <script>$("select").selectpicker({style: 'btn-hg btn-primary', menuStyle: 'dropdown-inverse'});</script>
382
+ </font>
383
+ </td>
384
+ <td align="left"><font face="Tahoma" size="2">Protect your static pages by CSS tricks</font></td>
385
+ </tr>
386
+ </table></div>
387
+ </td>
388
+ </tr>
389
+ </table>
390
 
391
+ </div>
392
+ <div class="simpleTabsContent" id="layer1">
393
+ <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
394
+ <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/smart-phones-protection.png" style="border: 1px dotted #C0C0C0">
395
+ </a>
396
+ <p></p>
397
+ <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
398
+ <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/watermark-adv.jpg" style="border: 1px dotted #C0C0C0">
399
+ </a>
400
+ <p></p>
401
+ <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
402
+ <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/watermarking-adv-examples.png" style="border: 1px dotted #C0C0C0">
403
+ </a>
404
+ <p></p>
405
+ <p><b><font face="Tahoma" size="2" color="#FFFFFF">
406
+ <span style="background-color: #008000">Basic features:</span></font></b></p>
407
+ <ul>
408
+ <li><font style="font-size: 10pt" face="Tahoma">Protect your content
409
+ from selection and copy. this plugin makes protecting your posts
410
+ extremely simple without yelling at your readers</font></li>
411
+ <li><font style="font-size: 10pt" face="Tahoma">No one can save
412
+ images from your site.</font></li>
413
+ <li><font style="font-size: 10pt" face="Tahoma">No right click or
414
+ context menu.</font></li>
415
+ <li><font style="font-size: 10pt" face="Tahoma">Show alert message,
416
+ Image Ad or HTML Ad on save images or right click.</font></li>
417
+ <li><font style="font-size: 10pt" face="Tahoma">Disable the
418
+ following keys&nbsp; CTRL+A, CTRL+C, CTRL+X,CTRL+S or CTRL+V.</font></li>
419
+ <li><font style="font-size: 10pt" face="Tahoma">Advanced and easy to
420
+ use control panel.</font></li>
421
+ <li><font style="font-size: 10pt" face="Tahoma">No one can right
422
+ click images on your site if you want</font></li>
423
+ </ul>
424
+ <p><b><font face="Tahoma" size="2" color="#FFFFFF">
425
+ <span style="background-color: #5B2473">Premium features:</span></font></b></p>
426
+ <ul>
427
+ <li><font style="font-size: 10pt" face="Tahoma">Get full Control on
428
+ Right click or context menu</font></li>
429
+ <li><font style="font-size: 10pt" face="Tahoma">Full watermarking</font></li>
430
+ <li><font style="font-size: 10pt" face="Tahoma">Show alert messages,
431
+ when user made right click on images, text boxes, links, plain
432
+ text.. etc</font></li>
433
+ <li><font style="font-size: 10pt" face="Tahoma">Admin can exclude
434
+ Home page Or Single posts from being copy protected </font></li>
435
+ <li><font style="font-size: 10pt" face="Tahoma">Admin can disable
436
+ copy protection for admin users.</font></li>
437
+ <li><font face="Tahoma" size="2">3 protection layers (JavaScript
438
+ protection, RightClick protection, CSS protection)</font></li>
439
+ <li><font style="font-size: 10pt" face="Tahoma">Aggressive image
440
+ protection (its near impossible for expert users to steal
441
+ your images !!)</font></li>
442
+ <li><font style="font-size: 10pt" face="Tahoma">compatible with all
443
+ major theme frameworks</font></li>
444
+ <li><font style="font-size: 10pt" face="Tahoma">compatible with all major browsers</font></li>
445
+ <li><font style="font-size: 10pt" face="Tahoma">Tested in IE9, IE10,
446
+ Firefox, Google Chrome, Opera</font></li>
447
+ <li><font style="font-size: 10pt" face="Tahoma">Disables image drag
448
+ and drop function</font></li>
449
+ <li><font style="font-size: 10pt" face="Tahoma">Works on smart
450
+ phones.</font></li>
451
+ <li><font style="font-size: 10pt" face="Tahoma">Ability to set
452
+ varying levels of protection per page or post.</font></li>
453
+ </ul>
454
+ <p class="text-font">&nbsp;</div>
455
  </div><!-- simple tabs div end -->
 
 
 
456
  <p align="right"><input class="btn btn-success" type="submit" value=" Save Settings " name="B4" style="width: 193; height: 29;">&nbsp;&nbsp;</p>
457
+ </form></div>
css/simpletabs.css CHANGED
@@ -9,8 +9,15 @@
9
  div.simpleTabs { padding:10px; }
10
  ul.simpleTabsNavigation { margin:0 0px; padding:0; text-align:left; }
11
  ul.simpleTabsNavigation li { list-style:none; display:inline; margin:0; padding:0; }
12
- ul.simpleTabsNavigation li a {border-radius: 3px 12px 0 0; border:1px solid #E0E0E0; padding:3px 6px; background:#F0F0F0; font-size:14px; text-decoration:none; font-family:Georgia, "Times New Roman", Times, serif; }
 
 
 
 
 
 
 
13
  ul.simpleTabsNavigation li a:hover { background-color:#F6F6F6; }
14
  ul.simpleTabsNavigation li a.current { background:#fff; color:#222; border-bottom:1px solid #fff; }
15
- div.simpleTabsContent { border:1px solid #E0E0E0; padding:5px 15px 15px; margin-top:3px; display:none; }
16
  div.simpleTabsContent.currentTab { display:block; }
9
  div.simpleTabs { padding:10px; }
10
  ul.simpleTabsNavigation { margin:0 0px; padding:0; text-align:left; }
11
  ul.simpleTabsNavigation li { list-style:none; display:inline; margin:0; padding:0; }
12
+ ul.simpleTabsNavigation li a {border-radius: 3px 12px 0 0;
13
+ border:1px solid #E0E0E0;
14
+ padding:6px;
15
+ background:#F0F0F0;
16
+ font-size:14px;
17
+ text-decoration:none;
18
+ transition: all 1.2s ease 0s;
19
+ font-family:Georgia, "Times New Roman", Times, serif; }
20
  ul.simpleTabsNavigation li a:hover { background-color:#F6F6F6; }
21
  ul.simpleTabsNavigation li a.current { background:#fff; color:#222; border-bottom:1px solid #fff; }
22
+ div.simpleTabsContent { border:1px solid #E0E0E0; padding:5px 15px 15px; margin-top:0; display:none; }
23
  div.simpleTabsContent.currentTab { display:block; }
images/adminbaricon.png ADDED
Binary file
images/click-here-arrow.png ADDED
Binary file
images/error.png ADDED
Binary file
images/live-demo.png ADDED
Binary file
images/notice.png ADDED
Binary file
images/premium.png DELETED
Binary file
images/right-click-protection.jpg ADDED
Binary file
images/smart-phones-protection.png ADDED
Binary file
images/success.png ADDED
Binary file
images/warning.png ADDED
Binary file
images/watermark-adv.jpg ADDED
Binary file
images/watermarking-adv-examples.png ADDED
Binary file
preventer-index.php CHANGED
@@ -1,134 +1,380 @@
1
  <?php ob_start();
2
  /*
3
  Plugin Name: WP Content Copy Protection & No Right Click
4
- Plugin URI: http://www.wp-buy.com/
5
- Description: This wp plugin (WP Content Copy Protection) 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: 1.3
7
- Author: wp-buy.com
8
  Author URI: http://www.wp-buy.com/
9
  */
10
  ?>
11
  <?php
 
12
  //define all variables the needed alot
13
  include 'the_globals.php';
14
  $wccp_settings = wccp_read_options();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  //------------------------------------------------------------------------
16
- function wccp_header()
17
- {
18
- global $wccp_settings;
19
- if ($wccp_settings['css_protection'] == 'Enabled') {
20
- ?>
21
- <style>
22
- .unselectable
23
- {
24
- -moz-user-select:none;
25
- -webkit-user-select:none;
26
- }
27
- </style>
28
- <script type="text/javascript">
29
- var e = document.getElementsByTagName('body')[0];
30
- e.setAttribute('unselectable',on);
31
- </script>
32
- <?php }
33
- if ( (is_home() && $wccp_settings['home_page_protection'] == 'Enabled') || (is_single() && $wccp_settings['single_posts_protection'] == 'Enabled') )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  {
35
- ?>
36
- <script type="text/javascript">
37
- function disable_copy(hotkey)
 
 
 
 
 
 
 
 
38
  {
39
- if(!hotkey) var hotkey = document.body;
40
- if (typeof hotkey.onselectstart!="undefined") //For IE
41
- hotkey.onselectstart=function(){return false}
42
- else if (typeof hotkey.style.MozUserSelect!="undefined") //For Firefox
43
- hotkey.style.MozUserSelect="none"
44
- else //Opera
45
- hotkey.onmousedown=function(){return false}
46
- hotkey.style.cursor = "default"
47
  }
48
-
49
- function disableEnterKey(e)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  {
51
- if (!e) var e = window.event;
52
- if (e.ctrlKey){
53
- alert('content is protected!');
54
- var key;
55
- if(window.event)
56
- key = window.event.keyCode; //IE
57
- else
58
- key = e.which; //firefox (97)
59
- if (key == 97 || key == 65 || key == 67 || key == 88 || key == 43 || key == 26 || key == 5)
60
- return false;
61
- else
62
- return true;
63
- }
64
-
65
  }
66
  </script>
67
- <?php
68
- }
69
- }
70
- //----------------------------------------------------------------
71
- function wccp_footer()
72
- {
73
- global $wccp_settings;
74
- if ( $wccp_settings['right_click_by_mouse_protection'] == 'Enabled')
75
- {
76
- ?>
77
- <script type="text/javascript">
78
- //disable right click
79
- function md(e)
80
- {
81
- try { if (event.button==2||event.button==3) return false; }
82
- catch (e) { if (e.which == 3) return false; }
83
- }
84
- document.oncontextmenu = function() { return false; }
85
- document.ondragstart = function() { return false; }
86
- document.onmousedown = md;
87
- </script>
88
- <?php } ?>
89
- <script type="text/javascript">
90
- disable_copy(document.body);
91
- document.body.onkeypress = disableEnterKey; //this disable Ctrl+A select action for firefox specially
92
- //chrome + mac
93
- $(document).keydown(function(event) {
94
- if(event.which == 17) return false; //chrome ctrl key
95
- if(event.which == 157) return false; //mac command key
96
- if(event.ctrlKey) return false; //random
97
- //event.preventDefault();
98
- //return false;
99
- });
100
-
101
- </script>
102
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
104
  //------------------------------------------------------------------------
105
- // Add specific CSS class by filter
106
- function wccp_class_names($classes) {
107
- if ( (is_home() && $wccp_settings['home_page_protection'] == 'Enabled' && $wccp_settings['css_protection'] == 'Enabled') || (is_single() && $wccp_settings['single_posts_protection'] == 'Enabled') && $wccp_settings['css_protection'] == 'Enabled' )
108
- {
109
- $classes[] = 'unselectable';
110
- return $classes;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
112
- else{
113
- $classes[] = 'none';
114
- return $classes;
115
- }//problem fixed here
116
  }
117
  //------------------------------------------------------------------------
118
- function set_wccp_div_and_code($content)
119
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  global $wccp_settings;
121
- if (is_single() && $wccp_settings['css_protection'] == 'Enabled') {
122
- return '<div id="wccp" name="wccp" class="unselectable" unselectable="on">'.$content.'</div>';
123
- }else {
124
- return $content;
125
- }
 
 
 
 
 
 
 
 
 
 
 
 
126
  }
127
  //------------------------------------------------------------------------
128
- add_action('wp_head','wccp_header');
129
- add_action('wp_footer','wccp_footer');
 
 
130
  add_filter('body_class','wccp_class_names');
131
- add_filter('the_content','set_wccp_div_and_code');
132
  //-------------------------------------------------------Function to read options from the database
133
  function wccp_read_options()
134
  {
@@ -144,23 +390,84 @@ function wccp_default_options(){
144
  $pluginsurl = plugins_url( '', __FILE__ );
145
  $wccp_settings =
146
  Array (
147
- 'single_posts_protection' => 'Enabled', // prevent content copy, take 3 parameters, 1.content: to prevent content copy only 2.all 3.none
148
- 'right_click_by_mouse_protection' => 'Enabled', // prevent right click by mouse
149
- 'css_protection' => 'Enabled', // idle
150
- 'home_page_protection' => 'Enabled', // idle
151
- 'show_protection_info' => 'yes' // about the plugin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  );
153
  return $wccp_settings;
154
  }
155
- //------------------------------------------------------------------------
156
- //First use the add_action to add onto the WordPress menu.
157
- add_action('admin_menu', 'wccp_add_options');
158
- //Make our function to call the WordPress function to add to the correct menu.
159
- function wccp_add_options() {
160
- add_options_page('WP Content Copy Protection', 'WP Content Copy Protection', 8, 'wccpoptions', 'wccp_options_page');
 
 
 
 
 
 
 
 
 
 
161
  }
 
 
 
 
 
 
 
 
162
  //------------------------------------------------------------------------
163
- function wccp_options_page() {
164
  include 'admin-core.php';
165
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  ?>
1
  <?php ob_start();
2
  /*
3
  Plugin Name: WP Content Copy Protection & No Right Click
4
+ Plugin URI: http://wordpress.org/plugins/wp-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: 1.5.0.3
7
+ Author: wp-buy
8
  Author URI: http://www.wp-buy.com/
9
  */
10
  ?>
11
  <?php
12
+ //delete_option('wccp_settings');
13
  //define all variables the needed alot
14
  include 'the_globals.php';
15
  $wccp_settings = wccp_read_options();
16
+ //---------------------------------------------------------<!-- SimpleTabs -->
17
+ function wccp_enqueue_scripts() {
18
+ global $pluginsurl;
19
+ $admincore = '';
20
+ if (isset($_GET['page'])) $admincore = $_GET['page'];
21
+ if( is_admin() && $admincore == 'wccpoptionspro') {
22
+ wp_enqueue_script('jquery');
23
+ wp_register_script('simpletabsjs', $pluginsurl.'/js/simpletabs_1.3.js');
24
+ wp_enqueue_script('simpletabsjs');
25
+
26
+ wp_register_style('simpletabscss', $pluginsurl.'/css/simpletabs.css');
27
+ wp_enqueue_style('simpletabscss');
28
+
29
+ wp_register_style('bootstrapcss', $pluginsurl.'/flat-ui/css/bootstrap.css');
30
+ wp_enqueue_style('bootstrapcss');
31
+
32
+ wp_register_style('flat-ui-css', $pluginsurl.'/flat-ui/css/flat-ui.css');
33
+ wp_enqueue_style('flat-ui-css');
34
+
35
+ wp_register_script('jquery-1.8.3.min.js', $pluginsurl.'/flat-ui/js/jquery-1.8.3.min.js');
36
+ wp_enqueue_script('jquery-1.8.3.min.js');
37
+
38
+ wp_register_script('jquery-ui-1.10.3.custom.min.js', $pluginsurl.'/flat-ui/js/jquery-ui-1.10.3.custom.min.js');
39
+ wp_enqueue_script('jquery-ui-1.10.3.custom.min.js');
40
+
41
+ wp_register_script('jquery.ui.touch-punch.min.js', $pluginsurl.'/flat-ui/js/jquery.ui.touch-punch.min.js');
42
+ wp_enqueue_script('jquery.ui.touch-punch.min.js');
43
+
44
+ wp_register_script('bootstrap.min.js', $pluginsurl.'/flat-ui/js/bootstrap.min.js');
45
+ wp_enqueue_script('bootstrap.min.js');
46
+
47
+ wp_register_script('bootstrap-select.js', $pluginsurl.'/flat-ui/js/bootstrap-select.js');
48
+ wp_enqueue_script('bootstrap-select.js');
49
+
50
+ wp_register_script('bootstrap-switch.js', $pluginsurl.'/flat-ui/js/bootstrap-switch.js');
51
+ wp_enqueue_script('bootstrap-switch.js');
52
+
53
+ wp_register_script('flatui-checkbox.js', $pluginsurl.'/flat-ui/js/flatui-checkbox.js');
54
+ wp_enqueue_script('flatui-checkbox.js');
55
+
56
+ wp_register_script('flatui-radio.js', $pluginsurl.'/flat-ui/js/flatui-radio.js');
57
+ wp_enqueue_script('flatui-radio.js');
58
+
59
+ wp_register_script('jquery.tagsinput.js', $pluginsurl.'/flat-ui/js/jquery.tagsinput.js');
60
+ wp_enqueue_script('jquery.tagsinput.js');
61
+
62
+ wp_register_script('jquery.placeholder.js', $pluginsurl.'/flat-ui/js/jquery.placeholder.js');
63
+ wp_enqueue_script('jquery.placeholder.js');
64
+ }
65
+ }
66
+ // Hook into the 'wp_enqueue_scripts' action
67
+ //add_action( 'admin_head', 'wccp_enqueue_scripts' );
68
+ add_action('admin_enqueue_scripts', 'wccp_enqueue_scripts');
69
  //------------------------------------------------------------------------
70
+ function wpcp_disable_Right_Click()
71
+ {
72
+ global $wccp_settings;
73
+ ?>
74
+ <script id="wpcp_disable_Right_Click" type="text/javascript">
75
+ //<![CDATA[
76
+ document.ondragstart = function() { return false;}
77
+ /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
+ Disable context menu on images by GreenLava Version 1.0
79
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
80
+ function nocontext(e) {
81
+ return false;
82
+ }
83
+ document.oncontextmenu = nocontext;
84
+ //]]>
85
+ </script>
86
+ <?php
87
+ }
88
+ //////////////////////////////////////////////////////////////////////////////////////
89
+ function wpcp_disable_selection()
90
+ {
91
+ global $wccp_settings;
92
+ ?>
93
+ <script id="wpcp_disable_selection" type="text/javascript">
94
+ //<![CDATA[
95
+ var image_save_msg='You Can Not Save images!';
96
+ var no_menu_msg='Context Menu disabled!';
97
+ var smessage = "<?php echo $wccp_settings['smessage'];?>";
98
+
99
+ function disableEnterKey(e)
100
+ {
101
+ if (e.ctrlKey){
102
+ var key;
103
+ if(window.event)
104
+ key = window.event.keyCode; //IE
105
+ else
106
+ key = e.which; //firefox (97)
107
+ //if (key != 17) alert(key);
108
+ if (key == 97 || key == 65 || key == 67 || key == 99 || key == 88 || key == 120 || key == 26 || key == 85 || key == 86 || key == 83 || key == 43)
109
+ {
110
+ show_wpcp_message('You are not allowed to copy content or view source');
111
+ return false;
112
+ }else
113
+ return true;
114
+ }
115
+ }
116
+
117
+ function disable_copy(e)
118
+ {
119
+ var elemtype = e.target.nodeName;
120
+ elemtype = elemtype.toUpperCase();
121
+ var checker_IMG = '<?php echo $wccp_settings['img'];?>';
122
+ if (elemtype == "IMG" && checker_IMG == 'checked' && e.detail >= 2) {show_wpcp_message(alertMsg_IMG);return false;}
123
+ if (elemtype != "TEXT" && elemtype != "TEXTAREA" && elemtype != "INPUT" && elemtype != "PASSWORD" && elemtype != "SELECT")
124
  {
125
+ if (smessage !== "" && e.detail >= 2)
126
+ show_wpcp_message(smessage);
127
+ return false;
128
+ }
129
+ }
130
+ function disable_copy_ie()
131
+ {
132
+ var elemtype = window.event.srcElement.nodeName;
133
+ elemtype = elemtype.toUpperCase();
134
+ if (elemtype == "IMG") {show_wpcp_message(alertMsg_IMG);return false;}
135
+ if (elemtype != "TEXT" && elemtype != "TEXTAREA" && elemtype != "INPUT" && elemtype != "PASSWORD" && elemtype != "SELECT")
136
  {
137
+ //alert(navigator.userAgent.indexOf('MSIE'));
138
+ //if (smessage !== "") show_wpcp_message(smessage);
139
+ return false;
 
 
 
 
 
140
  }
141
+ }
142
+ function reEnable()
143
+ {
144
+ return true;
145
+ }
146
+ document.onkeydown = disableEnterKey;
147
+ document.onselectstart = disable_copy_ie;
148
+ if(navigator.userAgent.indexOf('MSIE')==-1)
149
+ {
150
+ document.onmousedown = disable_copy;
151
+ document.onclick = reEnable;
152
+ }
153
+ function disableSelection(target)
154
+ {
155
+ //For IE This code will work
156
+ if (typeof target.onselectstart!="undefined")
157
+ target.onselectstart = disable_copy_ie;
158
+
159
+ //For Firefox This code will work
160
+ else if (typeof target.style.MozUserSelect!="undefined")
161
+ {target.style.MozUserSelect="none";}
162
+
163
+ //All other (ie: Opera) This code will work
164
+ else
165
+ target.onmousedown=function(){return false}
166
+ target.style.cursor = "default";
167
+ }
168
+ //Calling the JS function directly just after body load
169
+ window.onload = function(){disableSelection(document.body);};
170
+ //]]>
171
+ </script>
172
+ <?php
173
+ }
174
+ //------------------------------------------------------------------------
175
+ function alert_message()
176
+ {
177
+ global $wccp_settings;
178
+ ?>
179
+ <div id="wpcp-error-message" class="msgmsg-box-wpcp warning-wpcp hideme"><span>error: </span><?php echo $wccp_settings['smessage'];?></div>
180
+ <script>
181
+ var timeout_result;
182
+ function show_wpcp_message(smessage)
183
  {
184
+ if (smessage !== "")
185
+ {
186
+ var smessage_text = '<span>Alert: </span>'+smessage;
187
+ document.getElementById("wpcp-error-message").innerHTML = smessage_text;
188
+ document.getElementById("wpcp-error-message").className = "msgmsg-box-wpcp warning-wpcp showme";
189
+ clearTimeout(timeout_result);
190
+ timeout_result = setTimeout(hide_message, 3000);
191
+ }
192
+ }
193
+ function hide_message()
194
+ {
195
+ document.getElementById("wpcp-error-message").className = "msgmsg-box-wpcp warning-wpcp hideme";
 
 
196
  }
197
  </script>
198
+ <style type="text/css">
199
+ #wpcp-error-message {
200
+ direction: ltr;
201
+ text-align: center;
202
+ transition: opacity 900ms ease 0s;
203
+ z-index: 99999999;
204
+ }
205
+ .hideme {
206
+ opacity:0;
207
+ visibility: hidden;
208
+ }
209
+ .showme {
210
+ opacity:1;
211
+ visibility: visible;
212
+ }
213
+ .msgmsg-box-wpcp {
214
+ border-radius: 10px;
215
+ color: #555;
216
+ font-family: Tahoma;
217
+ font-size: 11px;
218
+ margin: 10px;
219
+ padding: 10px 36px;
220
+ position: fixed;
221
+ width: 255px;
222
+ top: 50%;
223
+ left: 50%;
224
+ margin-top: -10px;
225
+ margin-left: -130px;
226
+ -webkit-box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);
227
+ -moz-box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);
228
+ box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);
229
+ }
230
+ .msgmsg-box-wpcp span {
231
+ font-weight:bold;
232
+ text-transform:uppercase;
233
+ }
234
+ .error-wpcp {<?php global $pluginsurl; ?>
235
+ background:#ffecec url('<?php echo $pluginsurl ?>/images/error.png') no-repeat 10px 50%;
236
+ border:1px solid #f5aca6;
237
+ }
238
+ .success {
239
+ background:#e9ffd9 url('<?php echo $pluginsurl ?>/images/success.png') no-repeat 10px 50%;
240
+ border:1px solid #a6ca8a;
241
+ }
242
+ .warning-wpcp {
243
+ background:#ffecec url('<?php echo $pluginsurl ?>/images/warning.png') no-repeat 10px 50%;
244
+ border:1px solid #f5aca6;
245
+ }
246
+ .notice {
247
+ background:#e3f7fc url('<?php echo $pluginsurl ?>/images/notice.png') no-repeat 10px 50%;
248
+ border:1px solid #8ed9f6;
249
+ }
250
+ </style>
251
+ <?php
252
  }
253
  //------------------------------------------------------------------------
254
+ function wccp_css_script()
255
+ {
256
+ ?>
257
+ <style>
258
+ .unselectable
259
+ {
260
+ -moz-user-select:none;
261
+ -webkit-user-select:none;
262
+ cursor: default;
263
+ }
264
+ html
265
+ {
266
+ -webkit-touch-callout: none;
267
+ -webkit-user-select: none;
268
+ -khtml-user-select: none;
269
+ -moz-user-select: none;
270
+ -ms-user-select: none;
271
+ user-select: none;
272
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
273
+ }
274
+ </style>
275
+ <script id="wpcp_css_disable_selection" type="text/javascript">
276
+ var e = document.getElementsByTagName('body')[0];
277
+ if(e)
278
+ {
279
+ e.setAttribute('unselectable',on);
280
+ }
281
+ </script>
282
+ <?php
283
+ }
284
+ //------------------------------------------------------------------------
285
+ function wccp_css_settings()
286
+ {
287
+ global $wccp_settings;
288
+ if(!current_user_can( 'manage_options' ) || (current_user_can( 'manage_options' ) && $wccp_settings['exclude_admin_from_protection'] == 'No')){
289
+ if (((is_home() || is_front_page() || is_archive() || is_post_type_archive() || is_404() || is_attachment() || is_author() || is_category() || is_feed()) && $wccp_settings['home_css_protection'] == 'Enabled'))
290
+ {
291
+ wccp_css_script();
292
+ return;
293
+ }
294
+ if (is_single() && $wccp_settings['posts_css_protection'] == 'Enabled')
295
+ {
296
+ wccp_css_script();
297
+ return;
298
+ }
299
+ if (is_page() && !is_front_page() && $wccp_settings['pages_css_protection'] == 'Enabled')
300
+ {
301
+ wccp_css_script();
302
+ return;
303
+ }
304
+ }
305
+ }
306
+ //------------------------------------------------------------------------
307
+ function wccp_main_settings()
308
+ {
309
+ global $wccp_settings;
310
+ if(!current_user_can( 'manage_options' ) || (current_user_can( 'manage_options' ) && $wccp_settings['exclude_admin_from_protection'] == 'No')){
311
+ if (((is_home() || is_front_page() || is_archive() || is_post_type_archive() || is_404() || is_attachment() || is_author() || is_category() || is_feed() || is_search()) && $wccp_settings['home_page_protection'] == 'Enabled'))
312
+ {
313
+ wpcp_disable_selection();
314
+ return;
315
+ }
316
+ if (is_single() && $wccp_settings['single_posts_protection'] == 'Enabled')
317
+ {
318
+ wpcp_disable_selection();
319
+ return;
320
+ }
321
+ if (is_page() && !is_front_page() && $wccp_settings['page_protection'] == 'Enabled')
322
+ {
323
+ wpcp_disable_selection();
324
+ return;
325
+ }
326
  }
 
 
 
 
327
  }
328
  //------------------------------------------------------------------------
329
+ function right_click_premium_settings()
330
  {
331
+ global $wccp_settings;
332
+ if(!current_user_can( 'manage_options' ) || (current_user_can( 'manage_options' ) && $wccp_settings['exclude_admin_from_protection'] == 'No')){
333
+ if (((is_home() || is_front_page() || is_archive() || is_post_type_archive() || is_404() || is_attachment() || is_author() || is_category() || is_feed()) && $wccp_settings['right_click_protection_homepage'] == 'checked'))
334
+ {
335
+ wpcp_disable_Right_Click();
336
+ return;
337
+ }
338
+ if (is_single() && $wccp_settings['right_click_protection_posts'] == 'checked')
339
+ {
340
+ wpcp_disable_Right_Click();
341
+ return;
342
+ }
343
+ if (is_page() && !is_front_page() && $wccp_settings['right_click_protection_posts'] == 'checked')
344
+ {
345
+ wpcp_disable_Right_Click();
346
+ return;
347
+ }
348
+ }
349
+ }
350
+ //------------------------------------------------------------------------
351
+ // Add specific CSS class by filter
352
+ function wccp_class_names($classes) {
353
  global $wccp_settings;
354
+ if(!current_user_can( 'manage_options' ) || (current_user_can( 'manage_options' ) && $wccp_settings['exclude_admin_from_protection'] == 'No'))
355
+ {
356
+ if ($wccp_settings['home_css_protection'] == 'Enabled' || $wccp_settings['posts_css_protection'] == 'Enabled' || $wccp_settings['pages_css_protection'] == 'Enabled')
357
+ {
358
+ $classes[] = 'unselectable';
359
+ return $classes;
360
+ }
361
+ else
362
+ {
363
+ $classes[] = 'none';
364
+ return $classes;
365
+ }
366
+ }else
367
+ {
368
+ $classes[] = 'none';
369
+ return $classes;
370
+ }
371
  }
372
  //------------------------------------------------------------------------
373
+ add_action('wp_head','wccp_main_settings');
374
+ add_action('wp_head','right_click_premium_settings');
375
+ add_action('wp_head','wccp_css_settings');
376
+ add_action('wp_footer','alert_message');
377
  add_filter('body_class','wccp_class_names');
 
378
  //-------------------------------------------------------Function to read options from the database
379
  function wccp_read_options()
380
  {
390
  $pluginsurl = plugins_url( '', __FILE__ );
391
  $wccp_settings =
392
  Array (
393
+ 'single_posts_protection' => 'Enabled', // prevent content copy, take 3 parameters, 1.content: to prevent content copy only 2.all 3.none
394
+ 'home_page_protection' => 'Enabled', //
395
+ 'page_protection' => 'Enabled', //
396
+ 'right_click_protection_posts' => 'checked', //
397
+ 'right_click_protection_homepage' => 'checked', //
398
+ 'right_click_protection_pages' => 'checked', //
399
+ 'home_css_protection' => 'Enabled', // premium option
400
+ 'posts_css_protection' => 'Enabled', // premium option
401
+ 'pages_css_protection' => 'Enabled', // premium option
402
+ 'exclude_admin_from_protection' => 'No',
403
+ 'img' => '',
404
+ 'a' => '',
405
+ 'pb' => '',
406
+ 'input' => '',
407
+ 'h' => '',
408
+ 'textarea' => '',
409
+ 'emptyspaces' => '',
410
+ 'smessage' => 'Content is protected !!',
411
+ 'alert_msg_img' => '',
412
+ 'alert_msg_a' => '',
413
+ 'alert_msg_pb' => '',
414
+ 'alert_msg_input' => '',
415
+ 'alert_msg_h' => '',
416
+ 'alert_msg_textarea' => '',
417
+ 'alert_msg_emptyspaces' => ''
418
  );
419
  return $wccp_settings;
420
  }
421
+ //---------------------------------------------Add button to the admin bar
422
+ add_action('admin_bar_menu', 'add_items', 40);
423
+ function add_items($admin_bar)
424
+ {
425
+ global $pluginsurl;
426
+ $wccpadminurl = get_admin_url();
427
+ //The properties of the new item. Read More about the missing 'parent' parameter below
428
+ $args = array(
429
+ 'id' => 'Protection',
430
+ 'title' => __('<img src="'.$pluginsurl.'/images/adminbaricon.png" style="vertical-align:middle;margin-right:5px;width: 22px;" alt="Protection" title="Protection" />Protection' ),
431
+ 'href' => $wccpadminurl.'options-general.php?page=wccpoptionspro',
432
+ 'meta' => array('title' => __('WP Content Copy Protection'),)
433
+ );
434
+
435
+ //This is where the magic works.
436
+ $admin_bar->add_menu( $args);
437
  }
438
+ //---------------------------------------- Add plugin settings link to Plugins page
439
+ function plugin_add_settings_link( $links ) {
440
+ $settings_link = '<a href="options-general.php?page=wccpoptionspro">' . __( 'Settings' ) . '</a>';
441
+ array_push( $links, $settings_link );
442
+ return $links;
443
+ }
444
+ $plugin = plugin_basename( __FILE__ );
445
+ add_filter( "plugin_action_links_$plugin", 'plugin_add_settings_link' );
446
  //------------------------------------------------------------------------
447
+ function wccp_options_page_pro() {
448
  include 'admin-core.php';
449
  }
450
+ //------------------------------------------------------------------------
451
+ //Make a WordPress function to add to the correct menu.
452
+ function wpccp_after_plugin_row( $plugin_file, $plugin_data, $status ) {
453
+ $class_name = $plugin_data['slug'];
454
+ $p_url = "http://www.wp-buy.com/product/wp-content-copy-protection-pro/";
455
+ echo '<tr id="' .$class_name. '-plugin-update-tr" class="plugin-update-tr active">';
456
+ echo '<th class="check-column" scope="row"></th>';
457
+ echo '<td colspan="3" class="plugin-update">';
458
+ echo '<div class="update-message" style="background:#FFFF99;margin-left:1px;" >';
459
+ 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>.';
460
+ echo '</div>';
461
+ echo '</td>';
462
+ echo '</tr>';
463
+ }
464
+ $path = plugin_basename( __FILE__ );
465
+ add_action("after_plugin_row_{$path}", wpccp_after_plugin_row, 10, 3 );
466
+ //------------------------------------------------------------------------
467
+ //Make our function to call the WordPress function to add to the correct menu.
468
+ function wccp_add_options() {
469
+ add_options_page('WP Content Copy Protection', 'WP Content Copy Protection', 'manage_options', 'wccpoptionspro', 'wccp_options_page_pro');
470
+ }
471
+ //First use the add_action to add onto the WordPress menu.
472
+ add_action('admin_menu', 'wccp_add_options');
473
  ?>
readme.txt CHANGED
@@ -1,55 +1,102 @@
1
  === WP Content Copy Protection & No Right Click ===
2
  Contributors: wp-buy
3
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ashrafweb%40gmail%2ecom&lc=US&item_name=aio%20plugins&item_number=aio&amount=19%2e00&currency_code=USD&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
- Tags: content, content copy protection, content protection, copy protection, prevent copy, protect blog, image protect, image protection, no right click, plagiarism, secure, theft
5
  Requires at least: 2.5
6
- Tested up to: 3.9
7
- Stable tag: 1.3
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!!
10
 
11
 
12
  == Description ==
13
  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!!
14
-
15
- **Improve your seo score in Google and Yahoo and other SE's**:
16
- Our plugin protect your content from being copied by any other web sites so your posts will still uniqe content, this is the best option for seo
17
-
18
-
19
- **Don't Let Your Stories Go to web thief!**
20
  The plugin will keep your posts and home page protected by multiple techniques (JavaScript + CSS), this techniques does not found in any other wordpress plugin and you will own it for free with this plugin
21
 
22
  **Easy to Install**:
23
  Read the installation steps to find that this plugin does not need any coding or theme editing, just use your mouse..
24
 
25
- **Our Pro Edition Features include:**
26
- *Protect your content from selection and copy.
27
- *No one can right click on images from your site if you want
28
- *Get full Control on Right click or context menu
29
- *Show alert messages, when user made right click on images, text boxes, links, plain text.. etc
30
- *Disable the keys CTRL+A, CTRL+C, CTRL+X,CTRL+S or CTRL+V.
31
- *Advaced and easy to use control panel.
32
- *Admin can exclude Home page Or Single posts from being copy protected
33
- *Admin can disable copy protection for admin users.
34
- *Aggressive image protection (its not easy or its impossible for expert users to steal your images !!)
35
- * compatible with all major theme frameworks
36
- *compatible with all major browsers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  == Screenshots ==
39
- 1. WP Content Copy Protection admin page
40
 
41
- == Installation Guide ==
42
  **Installation steps**
43
- 1.Download the package.
44
- 2.Extract the contents of WP-Content-Copy-Protection.zip to wp-content/plugins/ folder You should get a folder called WP-Content-Copy-Protection
45
- 3.Activate the Plugin in WP-Admin.
46
- 4.Goto Settings > **WP-Content-Copy-Protection** to configure options.
47
- 5.You will find **4 options** to protect your content,images,homepage and css protection. dont forget to **save** the changes before exit
48
- Thanks!
49
-
50
 
51
  == Changelog ==
52
- * initial version
53
- * static pages bug fixed
54
- * home page problem fixed
55
- * Add new Style
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  === WP Content Copy Protection & No Right Click ===
2
  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: 2.5
6
+ Tested up to: 4.3.1
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!!
10
 
11
 
12
  == Description ==
13
  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!!
 
 
 
 
 
 
14
  The plugin will keep your posts and home page protected by multiple techniques (JavaScript + CSS), this techniques does not found in any other wordpress plugin and you will own it for free with this plugin
15
 
16
  **Easy to Install**:
17
  Read the installation steps to find that this plugin does not need any coding or theme editing, just use your mouse..
18
 
19
+ **Basic Features:**
20
+ <ul>
21
+ <li>Protect your content from selection and copy. this plugin makes protecting
22
+ your posts extremely simple without yelling at your readers</li>
23
+ <li>No one can save images from your site.</li>
24
+ <li>No right click or context menu.</li>
25
+ <li>Show alert message, Image Ad or HTML Ad on save images or right click.</li>
26
+ <li>Disable the following keys&nbsp; CTRL+A, CTRL+C, CTRL+X,CTRL+S or CTRL+V.</li>
27
+ <li>Advanced and easy to use control panel.</li>
28
+ <li>No one can right click images on your site if you want</li>
29
+ </ul>
30
+
31
+ **The Pro Edition Features include:**
32
+ <ul>
33
+ <li>Get full Control on Right click or context menu</li>
34
+ <li>Show alert messages, when user made right click on images, text boxes, links, plain text.. etc</li>
35
+ <li>Admin can exclude Home page Or Single posts from being copy protected </li>
36
+ <li>Admin can disable copy protection for admin users.</li>
37
+ <li>3 protection layers (JavaScript protection, RightClick protection, CSS protection)</li>
38
+ <li>Aggressive image protection (its near impossible for expert users to steal your images !!)</li>
39
+ <li>compatible with all major theme frameworks</li>
40
+ <li>compatible with all major browsers</li>
41
+ <li>Tested in IE9, IE10, Firefox, Google Chrome, Opera</li>
42
+ <li>Disables image drag and drop function</li>
43
+ <li>Works on smart phones. (except iphones - will be solved soon)</li>
44
+ <li>Ability to set varying levels of protection per page or post.</li>
45
+ </ul>
46
 
47
  == Screenshots ==
48
+ 1. WP Content Copy Protection premium admin page
49
 
50
+ == Installation ==
51
  **Installation steps**
52
+ <ul>
53
+ <li>Download the package.</li>
54
+ <li>Extract the contents of WP-Content-Copy-Protection.zip to wp-content/plugins/ folder You should get a folder called WP-Content-Copy-Protection</li>
55
+ <li>Activate the Plugin in WP-Admin.</li>
56
+ <li>Goto Settings > **WP-Content-Copy-Protection** to configure options.</li>
57
+ <li>You will find **4 options** to protect your content,images,homepage and css protection. dont forget to **save** the changes before exit</li>
58
+ </ul>
59
 
60
  == Changelog ==
61
+ = 1.5.0.4 =
62
+ <ul>
63
+ <li>Auto remove image url's</li>
64
+ <li>Fix javascript errors</li>
65
+ </ul>
66
+ = 1.5.0.3 =
67
+ <ul>
68
+ <li>Adding adminbar link and icon redirecting you to the plugin settings page</li>
69
+ <li>Adding settings link into the plugins list page</li>
70
+ </ul>
71
+ = 1.5.0.2 =
72
+ <ul>
73
+ <li>Adding isset() function to all variables</li>
74
+ <li>Improving alert message</li>
75
+ <li>Fixing CTRL + U issue</li>
76
+ <li>Fixing CSS tricks</li>
77
+ </ul>
78
+ = 1.5.0.1 =
79
+ <ul>
80
+ <li>Fixing error (Warning: join(): Invalid arguments passed in /home/retailmakeover/public_html/wp-includes/post-template.php on line 478)</li>
81
+ </ul>
82
+ = 1.4.0.1 =
83
+ <ul>
84
+ <li>Admin can disable copy protection for logged in/admin users</li>
85
+ <li>disable the possible shortcut keys for copying the Text</li>
86
+ <li>You can also choose where this Plugin should work like All Pages (including Home Page and all other Pages & Posts) or Home Page or Custom Pages/Posts using the Settings Page options.</li>
87
+ <li>Multiple Text and Image Protection methods</li>
88
+ <li>Advanced Image Protection using Responsive Lightbox</li>
89
+ <li>Protect your Text and Images by Disabling the Mouse Right Click and Possible Shortcut Keys for Cut (CTRL+x), Copy (CTRL+c), Paste (CTRL+v), Select All(CTRL+a), View Source (CTRL+u) etc.</li>
90
+ <li>control the protection to be on users only (if admin here dont protect)</li>
91
+ <li>Option to Display Alert Message on Mouse Right Click.</li>
92
+ <li>Enable Right Click on Hyperlink Option Added</li>
93
+ <li>Right click problem fixed on static pages</li>
94
+ <li>New flat interface</li>
95
+ </ul>
96
+ = 1.0 =
97
+ <ul>
98
+ <li>initial version</li>
99
+ <li>static pages bug fixed</li>
100
+ <li>home page problem fixed</li>
101
+ <li>Add new Style</li>
102
+ </ul>