PluginProbe ʕ •ᴥ•ʔ
WP Content Copy Protection & No Right Click / 1.7
WP Content Copy Protection & No Right Click v1.7
trunk 1.0 1.2 1.3 1.5.0.3 1.5.0.4 1.6 1.7 1.7.3 1.9 2.3 2.6 2.8.1 2.9 3.1 3.1.5 3.4 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.9 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7
wp-content-copy-protector / admin-core.php
wp-content-copy-protector Last commit date
css 6 years ago images 6 years ago js 6 years ago admin-core.php 6 years ago preventer-index.php 6 years ago readme.txt 6 years ago right-click-protection.jpg 6 years ago the_globals.php 6 years ago watermark-adv.jpg 6 years ago watermarking-adv-examples.png 6 years ago
admin-core.php
478 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3 if ( !current_user_can('edit_others_pages') ) { //protection for admin content
4 exit(0);
5 } ?>
6 <?php
7 //define all variables the needed alot
8 include 'the_globals.php';
9 $post_action = '';
10 if(isset($_POST["action"])) $post_action = sanitize_text_field($_POST["action"]);
11 if($post_action == 'update')
12 {
13 //----------------------------------------------------list the options array values
14 //----------------------------------------------------list the options array values
15 $single_posts_protection = '';
16 if(isset($_POST["single_posts_protection"])) $single_posts_protection = sanitize_text_field($_POST["single_posts_protection"]);
17 $home_page_protection = '';
18 if(isset($_POST["home_page_protection"])) $home_page_protection = sanitize_text_field($_POST["home_page_protection"]);
19 $page_protection = '';
20 if(isset($_POST["page_protection"])) $page_protection = sanitize_text_field($_POST["page_protection"]);
21
22 $exclude_admin_from_protection = '';
23 if(isset($_POST["exclude_admin_from_protection"])) $exclude_admin_from_protection = sanitize_text_field($_POST["exclude_admin_from_protection"]);
24
25 $home_css_protection = '';
26 if(isset($_POST["home_css_protection"])) $home_css_protection = sanitize_text_field($_POST["home_css_protection"]);
27 $posts_css_protection = '';
28 if(isset($_POST["posts_css_protection"])) $posts_css_protection = sanitize_text_field($_POST["posts_css_protection"]);
29 $pages_css_protection = '';
30 if(isset($_POST["pages_css_protection"])) $pages_css_protection = sanitize_text_field($_POST["pages_css_protection"]);
31
32 $right_click_protection_posts = '';
33 if(isset($_POST["right_click_protection_posts"])) $right_click_protection_posts = sanitize_text_field($_POST["right_click_protection_posts"]);
34 $right_click_protection_homepage = '';
35 if(isset($_POST["right_click_protection_homepage"])) $right_click_protection_homepage = sanitize_text_field($_POST["right_click_protection_homepage"]);
36 $right_click_protection_pages = '';
37 if(isset($_POST["right_click_protection_pages"])) $right_click_protection_pages = sanitize_text_field($_POST["right_click_protection_pages"]);
38
39 $img = '';
40 if(isset($_POST["img"])) $img = sanitize_text_field($_POST["img"]);
41 $a = '';
42 if(isset($_POST["a"])) $a = sanitize_text_field($_POST["a"]);
43 $pb = '';
44 if(isset($_POST["pb"])) $pb = sanitize_text_field($_POST["pb"]);
45 $input = '';
46 if(isset($_POST["input"])) $input = sanitize_text_field($_POST["input"]);
47 $h = '';
48 if(isset($_POST["h"])) $h = sanitize_text_field($_POST["h"]);
49 $textarea = '';
50 if(isset($_POST["textarea"])) $textarea = sanitize_text_field($_POST["textarea"]);
51 $emptyspaces = '';
52 if(isset($_POST["emptyspaces"])) $emptyspaces = sanitize_text_field($_POST["emptyspaces"]);
53
54 $smessage = '';
55 if(isset($_POST["smessage"])) $smessage = sanitize_text_field($_POST["smessage"]);
56 $alert_msg_img = '';
57 if(isset($_POST["alert_msg_img"])) $alert_msg_img = sanitize_text_field($_POST["alert_msg_img"]);
58 $alert_msg_a = '';
59 if(isset($_POST["alert_msg_a"])) $alert_msg_a = sanitize_text_field($_POST["alert_msg_a"]);
60 $alert_msg_pb = '';
61 if(isset($_POST["alert_msg_pb"])) $alert_msg_pb = sanitize_text_field($_POST["alert_msg_pb"]);
62 $alert_msg_input = '';
63 if(isset($_POST["alert_msg_input"])) $alert_msg_input = sanitize_text_field($_POST["alert_msg_input"]);
64 $alert_msg_h = '';
65 if(isset($_POST["alert_msg_h"])) $alert_msg_h = sanitize_text_field($_POST["alert_msg_h"]);
66 $alert_msg_textarea = '';
67 if(isset($_POST["alert_msg_textarea"])) $alert_msg_textarea = sanitize_text_field($_POST["alert_msg_textarea"]);
68 $alert_msg_emptyspaces = '';
69 if(isset($_POST["alert_msg_emptyspaces"])) $alert_msg_emptyspaces = sanitize_text_field($_POST["alert_msg_emptyspaces"]);
70 $prnt_scr_msg = '';
71 if(isset($_POST["prnt_scr_msg"])) $prnt_scr_msg = sanitize_text_field($_POST["prnt_scr_msg"]);
72
73 //----------------------------------------------------Get the options array values
74 $wccp_settings =
75 Array (
76 'single_posts_protection' => $single_posts_protection, // prevent content copy, take 2 parameters
77 'home_page_protection' => $home_page_protection, // PROTECT THE HOME PAGE OR NOT
78 'page_protection' => $page_protection, // protect pages by javascript
79 'right_click_protection_posts' => $right_click_protection_posts, //
80 'right_click_protection_homepage' => $right_click_protection_homepage, //
81 'right_click_protection_pages' => $right_click_protection_pages, //
82 'home_css_protection' => $home_css_protection, // premium option
83 'posts_css_protection' => 'No', // premium option
84 'pages_css_protection' => 'No', // premium option
85 'exclude_admin_from_protection' => 'No', // premium option
86 'img' => '', // premium option
87 'a' => '', // premium option
88 'pb' => '', // premium option
89 'input' => '', // premium option
90 'h' => '', // premium option
91 'textarea' => '', // premium option
92 'emptyspaces' => '', // premium option
93 'smessage' => $smessage,
94 'alert_msg_img' => $alert_msg_img,
95 'alert_msg_a' => $alert_msg_a,
96 'alert_msg_pb' => $alert_msg_pb,
97 'alert_msg_input' => $alert_msg_input,
98 'alert_msg_h' => $alert_msg_h,
99 'alert_msg_textarea' => $alert_msg_textarea,
100 'alert_msg_emptyspaces' => $alert_msg_emptyspaces,
101 'prnt_scr_msg' => $prnt_scr_msg
102 );
103
104 if ($wccp_settings != '' ) {
105 update_option( 'wccp_settings' , $wccp_settings );
106 } else {
107 $deprecated = ' ';
108 $autoload = 'no';
109 add_option( 'wccp_settings', $wccp_settings, $deprecated, $autoload );
110 }
111 }else //no update action
112 {
113 $wccp_settings = wccp_read_options();
114 }
115
116 ?>
117 <style>
118 #aio_admin_main {
119 text-align:left;
120 direction:ltr;
121 padding:10px;
122 margin: 10px;
123 background-color: #ffffff;
124 border:1px solid #EBDDE2;
125 display: relative;
126 overflow: auto;
127 }
128 .inner_block{
129 height: 370px;
130 display: inline;
131 min-width:770px;
132 }
133 #donate{
134 background-color: #EEFFEE;
135 border: 1px solid #66DD66;
136 border-radius: 10px 10px 10px 10px;
137 height: 58px;
138 padding: 10px;
139 margin: 15px;
140 }
141 .text-font {
142 color: #1ABC9C;
143 font-size: 14px;
144 line-height: 1.5;
145 padding-left: 3px;
146 transition: color 0.25s linear 0s;
147 }
148 .text-font:hover {
149 opacity: 1;
150 transition: color 0.25s linear 0s;
151 }
152 .simpleTabsContent{
153 border: 1px solid #E9E9E9;
154 padding: 4px;
155 }
156 div.simpleTabsContent{
157 margin-top:0;
158 border: 1px solid #E0E0E0;
159 display: none;
160 height: 100%;
161 min-height: 400px;
162 padding: 5px 15px 15px;
163 }
164 html {
165 background: #FFFFFF;
166 }
167 .size-full {
168 height: auto;
169 max-width: 100%;
170 }
171 </style>
172 <div id="aio_admin_main">
173 <form method="POST">
174 <input type="hidden" value="update" name="action">
175 <div class="simpleTabs">
176 <ul class="simpleTabsNavigation">
177 <li><a href="#">Main Settings</a></li>
178 <li><a href="#">Premium RightClick Protection</a></li>
179 <li><a href="#">Premium Protection by CSS</a></li>
180 <li><a href="#">More with pro</a></li>
181 </ul>
182 <div class="simpleTabsContent">
183 <table border="0" width="100%" cellspacing="0" cellpadding="0">
184 <tr>
185 <td width="77%">
186 <h4>Copy Protection using JavaScript (<font color="#008000">Basic Layer</font>):</h4>
187 <p><font face="Tahoma" size="2">This is the basic protection layer that uses
188 <u>JavaScript</u> to protect the posts, home page content from being copied by any other
189 web site author.</font></p>
190 <table border="0" width="100%" cellspacing="0" cellpadding="0">
191 <tr>
192 <td width="60%">
193 <div style="float: left;padding: 4px" id="layer3">
194 <table border="0" width="100%" height="320" cellspacing="0" cellpadding="0">
195 <tr>
196 <td width="221" height="33"><font face="Tahoma" size="2">Posts protection
197 by
198 <u>JavaScript</u></font></td>
199 <td>
200 <select size="1" name="single_posts_protection">
201 <?php
202 if ($wccp_settings['single_posts_protection'] == 'Enabled')
203 {
204 echo '<option selected>Enabled</option>';
205 echo '<option>Disabled</option>';
206 }
207 else
208 {
209 echo '<option>Enabled</option>';
210 echo '<option selected>Disabled</option>';
211 }
212 ?>
213 </select>
214 </td>
215 <td align="left">
216 <p><font face="Tahoma" size="2">&nbsp;For single posts content</font></p></td>
217 </tr>
218 <tr>
219 <td width="221" height="33"><font face="Tahoma" size="2">Homepage
220 protection
221 by
222 <u>JavaScript</u></font></td>
223 <td>
224 <select size="1" name="home_page_protection">
225 <?php
226 if ($wccp_settings['home_page_protection'] == 'Enabled')
227 {
228 echo '<option selected>Enabled</option>';
229 echo '<option>Disabled</option>';
230 }
231 else
232 {
233 echo '<option>Enabled</option>';
234 echo '<option selected>Disabled</option>';
235 }
236 ?>
237 </select>
238 </td>
239 <td align="left">
240 <p><font face="Tahoma" size="2">&nbsp;Don't copy any thing!
241 even from my homepage</font></td>
242 </tr>
243 <tr>
244 <td width="221" height="33"><font face="Tahoma" size="2">Static page's protection</font></td>
245 <td>
246 <select size="1" name="page_protection">
247 <?php
248 if ($wccp_settings['page_protection'] == 'Enabled')
249 {
250 echo '<option selected>Enabled</option>';
251 echo '<option>Disabled</option>';
252 }
253 else
254 {
255 echo '<option selected>Disabled</option>';
256 echo '<option>Enabled</option>';
257 }
258 ?>
259 </select></td>
260 <td align="left">
261 <p><font face="Tahoma" size="2">&nbsp;Use Premium Settings tab to customize more options</font></td>
262 </tr>
263 <tr>
264 <td width="221" height="33"><font face="Tahoma" size="2">Exclude
265 <u>Admin</u> from protection</font></td>
266 <td>
267 <p align="center"><font color="#FF0000">Premium</font></td>
268 <td align="left">
269 <font face="Tahoma" size="2">&nbsp;If <u>Yes</u>, The protection
270 functions will be inactive for the admin when he is logged in</font></td>
271 </tr>
272 <tr>
273 <td width="221" height="33"><font face="Tahoma" size="2">Selection disabled message</font></td>
274 <td colspan="2">
275 <table border="0" width="59%" cellspacing="0" cellpadding="0">
276 <tr>
277 <td>
278 <input type="text" style="width: 100%;" placeholder="Enter something" class="form-control" name="smessage" value="<?php echo $wccp_settings['smessage']; ?>"></td>
279 </tr>
280 </table>
281 </td>
282 </tr>
283 <tr>
284 <td width="221" height="33"><font face="Tahoma" size="2">Print preview message</font></td>
285 <td colspan="2">
286 <table border="0" width="99%" cellspacing="0" cellpadding="0">
287 <tr>
288 <td>
289 <textarea placeholder="Enter something" style="height: 110px; width: 100%;" class="form-control" name="prnt_scr_msg"><?php echo $wccp_settings['prnt_scr_msg']; ?></textarea></td>
290 </tr>
291 </table>
292 </td>
293 </tr>
294 </table></div>
295 </td>
296 </tr>
297 </table>
298 </td>
299 </tr>
300 </table></div>
301 <div class="simpleTabsContent">
302 <h4>Copy Protection on RightClick (<font color="#008000">Premium Layer 2</font>):</h4>
303 <p><font face="Tahoma" size="2">In this protection layer your visitors will
304 be able to <u>right click</u> on a specific page elements only (such as
305 Links as an example)</font></p>
306 <div id="layer4">
307 <table border="0" width="100%" height="361" cellspacing="0" cellpadding="0">
308 <tr>
309 <td height="53" width="21%"><font face="Tahoma" size="2">Disable <u>RightClick</u> on</font></td>
310 <td height="53">
311 <table border="0" width="521" height="100%" cellspacing="1" cellpadding="0">
312 <tr>
313 <td width="161" height="46">
314 <label class="checkbox" for="checkbox1">
315 <font face="Tahoma">
316 <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
317 </font></font>
318 </label>
319 </td>
320 <td width="161" height="46">
321 <label class="checkbox" for="checkbox1">
322 <font face="Tahoma">
323 <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
324 </font></font>
325 </label>
326 </td>
327 <td width="185" height="46">
328 <label class="checkbox" for="checkbox1">
329 <font face="Tahoma">
330 <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
331 pages
332 </font></font>
333 </label>
334 </td>
335 </tr>
336 </table>
337 </td>
338 </tr>
339 <tr>
340 <td height="44" colspan="2">
341 <p align="left"><font color="#FF0000" face="Tahoma" size="2">
342 Remaining premium options preview image </font>
343 <img src="<?php echo $pluginsurl ?>/images/click-here-arrow.png" id="irc_mi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
344 <b><font color="#0909FF"><u>
345 <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
346 <font color="#0909FF">Preview &amp; Pricing</font></a></u></font></b>
347 </td>
348 </tr>
349 <tr>
350 <td height="264" colspan="2">
351 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
352 <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
353 <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/right-click-protection.jpg" style="border: 1px dotted #C0C0C0"></a><p>&nbsp;</td>
354 </tr>
355 </table></div>
356 </div>
357 <div class="simpleTabsContent">
358 <h4>Protection by CSS Techniques (<font color="#008000">Premium Layer 3</font>):</h4>
359 <p><font face="Tahoma" size="2">In this protection layer your website will
360 be protected by some <u>CSS</u> tricks that will word even if <u>JavaScript</u>
361 is disabled from the browser settings</font></p>
362 <table border="0" width="100%" cellspacing="0" cellpadding="0">
363 <tr>
364 <td width="60%">
365 <div style="float: left;padding: 4px" id="layer5">
366 <table border="0" width="100%" height="232" cellspacing="0" cellpadding="0">
367 <tr>
368 <td width="221" height="74"><font face="Tahoma" size="2"><b>Home Page</b> Protection by CSS</font></td>
369 <td height="74">
370 <select size="1" name="home_css_protection">
371 <?php
372 if ($wccp_settings['home_css_protection'] == 'Enabled')
373 {
374 echo '<option selected>Enabled</option>';
375 echo '<option>Disabled</option>';
376 }
377 else
378 {
379 echo '<option>Enabled</option>';
380 echo '<option selected>Disabled</option>';
381 }
382 ?>
383 </select>
384 </td>
385 <td align="left" height="74">
386 <font face="Tahoma" size="2">Protect your Homepage by CSS tricks</font></td>
387 </tr>
388 <tr>
389 <td width="221" height="77"><font face="Tahoma" size="2"><b>Posts</b> Protection by CSS</font></td>
390 <td align="center">
391 <font color="#FF0000">Premium </font>
392 </td>
393 <td align="left">
394 <font face="Tahoma" size="2">Protect your single posts by CSS tricks</font></td>
395 </tr>
396 <tr>
397 <td width="221"><font face="Tahoma" size="2"><b>Pages</b> Protection by CSS</font></td>
398 <td align="center">
399 <font color="#FF0000">Premium&nbsp;
400
401 </font>
402 </td>
403 <td align="left"><font face="Tahoma" size="2">Protect your static pages by CSS tricks</font></td>
404 </tr>
405 </table></div>
406 </td>
407 </tr>
408 </table>
409
410 </div>
411 <div class="simpleTabsContent" id="layer1">
412 <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
413 <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/smart-phones-protection.png" style="border: 1px dotted #C0C0C0">
414 </a>
415 <p></p>
416 <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
417 <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/watermark-adv.jpg" style="border: 1px dotted #C0C0C0">
418 </a>
419 <p></p>
420 <a href="http://www.wp-buy.com/product/wp-content-copy-protection-pro/">
421 <img class="size-full" border="1" src="<?php echo $pluginsurl ?>/images/watermarking-adv-examples.png" style="border: 1px dotted #C0C0C0">
422 </a>
423 <p></p>
424 <p><b><font face="Tahoma" size="2" color="#FFFFFF">
425 <span style="background-color: #008000">Basic features:</span></font></b></p>
426 <ul>
427 <li><font style="font-size: 10pt" face="Tahoma">Protect your content
428 from selection and copy. this plugin makes protecting your posts
429 extremely simple without yelling at your readers</font></li>
430 <li><font style="font-size: 10pt" face="Tahoma">No one can save
431 images from your site.</font></li>
432 <li><font style="font-size: 10pt" face="Tahoma">No right click or
433 context menu.</font></li>
434 <li><font style="font-size: 10pt" face="Tahoma">Show alert message,
435 Image Ad or HTML Ad on save images or right click.</font></li>
436 <li><font style="font-size: 10pt" face="Tahoma">Disable the
437 following keys&nbsp; CTRL+A, CTRL+C, CTRL+X,CTRL+S or CTRL+V.</font></li>
438 <li><font style="font-size: 10pt" face="Tahoma">Advanced and easy to
439 use control panel.</font></li>
440 <li><font style="font-size: 10pt" face="Tahoma">No one can right
441 click images on your site if you want</font></li>
442 </ul>
443 <p><b><font face="Tahoma" size="2" color="#FFFFFF">
444 <span style="background-color: #5B2473">Premium features:</span></font></b></p>
445 <ul>
446 <li><font style="font-size: 10pt" face="Tahoma">Get full Control on
447 Right click or context menu</font></li>
448 <li><font style="font-size: 10pt" face="Tahoma">Full watermarking</font></li>
449 <li><font style="font-size: 10pt" face="Tahoma">Show alert messages,
450 when user made right click on images, text boxes, links, plain
451 text.. etc</font></li>
452 <li><font style="font-size: 10pt" face="Tahoma">Admin can exclude
453 Home page Or Single posts from being copy protected </font></li>
454 <li><font style="font-size: 10pt" face="Tahoma">Admin can disable
455 copy protection for admin users.</font></li>
456 <li><font face="Tahoma" size="2">3 protection layers (JavaScript
457 protection, RightClick protection, CSS protection)</font></li>
458 <li><font style="font-size: 10pt" face="Tahoma">Aggressive image
459 protection (its near impossible for expert users to steal
460 your images !!)</font></li>
461 <li><font style="font-size: 10pt" face="Tahoma">compatible with all
462 major theme frameworks</font></li>
463 <li><font style="font-size: 10pt" face="Tahoma">compatible with all major browsers</font></li>
464 <li><font style="font-size: 10pt" face="Tahoma">Tested in IE9, IE10,
465 Firefox, Google Chrome, Opera</font></li>
466 <li><font style="font-size: 10pt" face="Tahoma">Disables image drag
467 and drop function</font></li>
468 <li><font style="font-size: 10pt" face="Tahoma">Works on smart
469 phones.</font></li>
470 <li><font style="font-size: 10pt" face="Tahoma">Ability to set
471 varying levels of protection per page or post.</font></li>
472 </ul>
473 </div>
474 </div><!-- simple tabs div end -->
475 <p align="right"><input class="btn btn-success" type="submit" value=" Save Settings " name="B4" style="width: 193; height: 29;">&nbsp;&nbsp;</p>
476 </form>
477 </div>
478 <iframe height="100" frameborder=0 width="470" src="https://wp-buy.com/ads/stats.php"></iframe>