WP-CopyProtect [Protect your blog posts] - Version 2.0.0

Version Description

Download this release

Release Info

Developer cchetanonline
Plugin Icon wp plugin WP-CopyProtect [Protect your blog posts]
Version 2.0.0
Comparing to
See all releases

Code changes from version 1.9.1 to 2.0.0

Files changed (3) hide show
  1. readme.txt +23 -17
  2. screenshot-1.jpeg +0 -0
  3. wp-copyprotect.php +98 -70
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === WP-CopyProtect [Protect your posts] ===
2
  Contributors: cchetanonline
3
- Donate link: http://www.thechetan.com/wp-copyprotect/#donate
4
  Tags: post, posts, copy, protect, right, click, disable, copyprotect, Google, SEO, page, plugin, access, content, javascript, security, wp-copyprotect, RSS, fetcher, duplicate, Bing,
5
  Requires at least: 2
6
- Tested up to: 2.9
7
- Stable tag: 1.9.1
8
 
9
  Protect your blog content from getting copied. A simple plug-in developed to stop the Copy cats
10
 
@@ -14,19 +14,19 @@ Protect your blog content from getting copied. A simple plug-in developed to sto
14
 
15
  = This plug-in will =
16
  * **Disable selection of text**
17
- * **Disable right click** on your blog
 
18
 
19
  So that no one can simply copy and paste the content of your blog in there blog or site.
20
 
21
  = Please note =
22
  * Both *disable right click* and *disable selection of text* can be switch ON or OFF through *Settings* menu.
23
- * **You must enable the options** from WP-CopyProtect settings page after installing the plugin, to enable the protection to your blog.
24
-
25
- Why dont you rate the plugin if you like it !! :) >>
26
-
27
- ** *Latest* release 1.9.1 : VALID XHTML (Validation errors removed) + Compatable with WP-2.9 **
28
-
29
 
 
 
 
 
30
  By [Chetan Gole](http://chetangole.com/).
31
 
32
  == Installation ==
@@ -39,19 +39,25 @@ By [Chetan Gole](http://chetangole.com/).
39
 
40
  = Why Disable content selection is not working ? =
41
 
42
- Actually your theme doesn't have `<?php wp_footer(); ?>` in footer, so please edit the footer of your theme and insert that code.
43
  To edit the theme go to Design >> Theme Editor >> Select "Footer.php" from right hand list >> and paste `<?php wp_footer(); ?>` just before the '< /body >' tag.
44
  If possible add this code near to Wordpress link.
45
  The "disable Content selection" will start working.
46
 
 
 
 
 
47
  = I have problems and questions =
48
 
49
- Catch me on [Wp-CopyProtect Homepage](http://www.thechetan.com/wp-copyprotect/)
50
 
51
  == Screenshots ==
52
  1. Configuration page
53
 
54
- == Change Log ==
55
- * ver : 1.9.1.0 : Compatiblility tag added for Wp 2.9 .
56
- * ver : 1.9.0.0 : VALID XHTML (Validation errors removed).
57
- * ver : 1.8.0.0 : Update for Wordpress 2.8 with change in settng page.
 
 
1
+ === WP-CopyProtect [Protect your blog posts] ===
2
  Contributors: cchetanonline
3
+ Donate link: http://chetangole.com/blog/wp-copyprotect/#donate
4
  Tags: post, posts, copy, protect, right, click, disable, copyprotect, Google, SEO, page, plugin, access, content, javascript, security, wp-copyprotect, RSS, fetcher, duplicate, Bing,
5
  Requires at least: 2
6
+ Tested up to: 3.0.1
7
+ Stable tag: 2.1.0
8
 
9
  Protect your blog content from getting copied. A simple plug-in developed to stop the Copy cats
10
 
14
 
15
  = This plug-in will =
16
  * **Disable selection of text**
17
+ * **Disable right click** on your blog. (Diable right click with popup message or without popup message.)
18
+ * **will not affect SEO**. Search engines can read your content without any problem.
19
 
20
  So that no one can simply copy and paste the content of your blog in there blog or site.
21
 
22
  = Please note =
23
  * Both *disable right click* and *disable selection of text* can be switch ON or OFF through *Settings* menu.
24
+ * *You must enable the options* from WP-CopyProtect settings page after installing the plugin, to enable the protection to your blog.
 
 
 
 
 
25
 
26
+ What's new new version 2.1.0 ? check [release notes](http://chetangole.com/blog/?p=1957).
27
+
28
+ Why dont you rate the plugin if you like it !! :) >>
29
+
30
  By [Chetan Gole](http://chetangole.com/).
31
 
32
  == Installation ==
39
 
40
  = Why Disable content selection is not working ? =
41
 
42
+ Most probably your theme doesn't have `<?php wp_footer(); ?>` in footer, so please edit the footer of your theme and insert that code.
43
  To edit the theme go to Design >> Theme Editor >> Select "Footer.php" from right hand list >> and paste `<?php wp_footer(); ?>` just before the '< /body >' tag.
44
  If possible add this code near to Wordpress link.
45
  The "disable Content selection" will start working.
46
 
47
+ = WP Copyprotect is bad for the SEO? =
48
+
49
+ This plug-in is developed in PHP and javascript, for this reason the plug-in does not affect search engines, it only affects the user's browser that tries to copy your content.
50
+
51
  = I have problems and questions =
52
 
53
+ Catch me on [Wp-CopyProtect Homepage](http://chetangole.com/blog/wp-copyprotect/)
54
 
55
  == Screenshots ==
56
  1. Configuration page
57
 
58
+ == Changelog ==
59
+ * ver : 2.1.0 : Footer link is now optional.
60
+ * ver : 2.0.0 : New option added for disabling right click without popup message, UI changes.
61
+ * ver : 1.9.1 : Compatiblility tag added for Wp 2.9 .
62
+ * ver : 1.9.0 : VALID XHTML (Validation errors removed).
63
+ * ver : 1.8.0 : Update for Wordpress 2.8 with change in settings panel.
screenshot-1.jpeg CHANGED
Binary file
wp-copyprotect.php CHANGED
@@ -1,44 +1,41 @@
1
  <?php
2
  /*
3
- Plugin Name: WP-CopyProtect [Protect your posts]
4
- Plugin URI: http://www.thechetan.com/wp-copyprotect/
5
  Description: This plug-in will protect your blog content [posts] from being copied. A simple plug-in developed to stop the Copy cats.
6
- Version: 1.9.1
7
  Author: Chetan Gole
8
- Author URI: http://www.thechetan.com/
9
  */
10
 
11
  /*
12
- Copyright 2010 Chetan Gole, IN (http://www.thechetan.com/)
13
 
14
- This program is free software; you can redistribute it and/or modify
15
- it under the terms of the GNU General Public License as published by
16
- the Free Software Foundation; either version 2 of the License, or
17
- (at your option) any later version.
18
 
19
  This program is distributed in the hope that it will be useful,
20
  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
- GNU General Public License for more details: http://www.gnu.org/licenses/gpl.txt
23
- */
24
-
25
 
 
 
 
 
26
 
27
- // No right click - Problem for copy cats NO RIGHT CLICK
28
  function CopyProtect_no_right_click($CopyProtect_click_message)
29
  {
30
  ?>
31
  <script type="text/javascript">
32
  <!--
33
-
34
- /***************************************************************************************************************
35
- *Copyprotection for this site is provided by WP-CopyProtect v1.9.1 visit www.TheChetan.com/wp-copyprotect/ for more details
36
- *RightClick Disabled, Please DO NOT COPY.
37
- ***************************************************************************************************************/
38
-
39
  var message="<?php echo $CopyProtect_click_message; ?>";
40
-
41
- ///////////////////////////////////
42
  function clickIE4(){
43
  if (event.button==2){
44
  alert(message);
@@ -62,24 +59,54 @@ document.onmousedown=clickNS4;
62
  else if (document.all&&!document.getElementById){
63
  document.onmousedown=clickIE4;
64
  }
65
-
66
  document.oncontextmenu=new Function("alert(message);return false")
67
-
68
  // -->
69
  </script>
70
 
71
  <?php
72
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  // No selection header - Now your content is protected from copy and paste guys
75
  function CopyProtect_no_select()
76
  {
77
  ?>
78
  <script type="text/javascript">
79
- /***************************************************************************************************************
80
- *Copyprotection for this site is provided by WP-CopyProtect v1.9.1 visit www.TheChetan.com/wp-copyprotect/ for more details
81
- *Selection Disabled, Please DO NOT COPY.
82
- **************************************************************************************************************/
83
  function disableSelection(target){
84
  if (typeof target.onselectstart!="undefined") //For IE
85
  target.onselectstart=function(){return false}
@@ -89,95 +116,93 @@ else //All other route (For Opera)
89
  target.onmousedown=function(){return false}
90
  target.style.cursor = "default"
91
  }
92
-
93
  </script>
94
-
95
  <?php
96
  }
97
-
98
  // No selection footer
99
- // Yes, You can remove this link from footer, but why ?, This plugin is protecting your content, so just donate me a backlink.
100
- // If you are removing this link please consider adding me in your blogroll or write a post about this plugin.
101
  function CopyProtect_no_select_footer()
102
  {
103
  ?>
104
  <script type="text/javascript">
105
  disableSelection(document.body)
106
  </script>
107
- <small>Copy Protected by <a href="http://www.thechetan.com/" target="_blank">Chetan</a>'s <a href="http://www.thechetan.com/wp-copyprotect/" target="_blank">WP-CopyProtect</a>.</small>
108
  <?php
109
  }
110
-
111
-
 
 
 
 
112
  // Tuning your WP-CopyProtect
113
  function CopyProtect_options_page()
114
  {
 
 
 
 
 
 
115
  if($_POST['CopyProtect_save']){
116
  update_option('CopyProtect_nrc',$_POST['CopyProtect_nrc']);
117
  update_option('CopyProtect_nts',$_POST['CopyProtect_nts']);
118
  update_option('CopyProtect_nrc_text',$_POST['CopyProtect_nrc_text']);
 
119
 
120
- echo '<div class="updated"><p>Commands accepted</p></div>';
121
  }
122
  $wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
123
  $wp_CopyProtect_nts = get_option('CopyProtect_nts');
 
124
  ?>
125
- <div class="wrap">
126
- <h1>WP-CopyProtect</h1> ver. 1.9.1
127
- | <a href="http://www.thechetan.com/wp-copyprotect/" target="_blank" title="Visit homepage of wordpress plugin WP-CopyProtect">Visit Plugin page</a> | <a href="http://www.thechetan.com/wp-copyprotect/#donate" target="_blank" title="Donate some amount to WP-CopyProtect plugin developer to help him to develope more such plugins">Donate</a> | <a href="http://www.thechetan.com/wp-copyprotect/#donors" target="_blank" title="Few power donors,special thanks to them">Power Donors</a> |
128
- <h2>WP-CopyProtect Options</h2>
129
  <form method="post" id="CopyProtect_options">
130
  <fieldset class="options">
131
- <legend>Now, its the time to bang the copy cats.</legend>
132
- <legend>Select the proper options as per your needs</legend>
133
- <table class="form-table">
134
-
135
  <tr valign="top">
136
  <th width="33%" scope="row">Disable right mouse click:</th>
137
  <td>
138
- <input type="checkbox" id="CopyProtect_nrc" name="CopyProtect_nrc" value="CopyProtect_nrc" <?php if($wp_CopyProtect_nrc == true) { echo('checked="checked"'); } ?> />
139
- check to activate <br />
 
 
 
 
140
  <input name="CopyProtect_nrc_text" type="text" id="CopyProtect_nrc_text" value="<?php echo get_option('CopyProtect_nrc_text') ;?>" size="30"/>
141
- This warning will be given to right clickers.
142
  </td>
143
- </tr>
144
  <tr valign="top">
145
  <th width="33%" scope="row">Disable text selection:</th>
146
  <td>
147
  <input type="checkbox" id="CopyProtect_nts" name="CopyProtect_nts" value="CopyProtect_nts" <?php if($wp_CopyProtect_nts == true) { echo('checked="checked"'); } ?> />
148
- check to activate. <a href="http://www.thechetan.com/wp-copyprotect/#kp" target="_blank">Not working ?</a>
 
 
 
 
 
 
 
149
  </td>
150
- </tr>
151
-
152
  <tr>
153
  <th width="33%" scope="row">Save settings :</th>
154
  <td>
155
  <input type="submit" name="CopyProtect_save" value="Save Settings" />
156
  </td>
157
  </tr>
158
- <tr>
159
- <th width="33%" scope="row">Please note :</th>
160
- <td>
161
-
162
- This is just a basic copy protect plug-in, if someone want to copy your content he/she can go to source of the blog and can easily copy the stuff from there.
163
- Most copy cats use your blogs <a href="/feed/" target="_blank">RSS feeds</a> to steal the content. Always select "Summary" at "For each article in a feed, show" in Wordpress admin panel "<a href="options-reading.php">Reading Settings</a>" so that even if someone try to copy your content from feeds he/she can not copy the whole post.
164
-
165
- </td>
166
- </tr>
167
-
168
  <tr>
169
  <th scope="row" style="text-align:right; vertical-align:top;">
170
  <td>
171
  <h3>Whats next ?</h3>
172
- <p>Why don't you <a href="/wp-admin/post-new.php">write a post</a> about <a href="http://www.thechetan.com/wp-copyprotect/" target="_blank">WP-CopyProtect</a> ?</p>
173
  <h3>Problems, Questions, Suggestions ?</h3>
174
- <p>Catch me on <a href="http://www.thechetan.com/wp-copyprotect/" target="_blank">WP-CopyProtect Homepage</a></p>
175
  </td>
176
  </tr>
177
  </table>
178
  <h3>Thank you</h3>
179
- Plug in developed by <a href="http://www.thechetan.com/" target="_blank">Chetan Gole</a>. <br />
180
- <small>Follow me on Twitter <a href="http://twitter.com/Chetan_Gole" target="_blank">@Chetan_Gole</a></small>
181
  </fieldset>
182
  </form>
183
  </table>
@@ -185,17 +210,18 @@ Most copy cats use your blogs <a href="/feed/" target="_blank">RSS feeds</a> to
185
  <?php
186
  }
187
 
188
- //We are calling you, function
189
  function CopyProtect()
190
  {
191
-
192
  $wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
193
  $wp_CopyProtect_nts = get_option('CopyProtect_nts');
194
  $wp_CopyProtect_nrc_text = get_option('CopyProtect_nrc_text');
 
195
  $pos = strpos(strtolower(getenv("REQUEST_URI")), '?preview=true');
196
 
197
  if ($pos === false) {
198
- if($wp_CopyProtect_nrc == true) { CopyProtect_no_right_click($wp_CopyProtect_nrc_text); }
 
199
  if($wp_CopyProtect_nts == true) { CopyProtect_no_select(); }
200
  }
201
  }
@@ -203,8 +229,10 @@ function CopyProtect()
203
  function CopyProtect_footer()
204
  {
205
  $wp_CopyProtect_nts = get_option('CopyProtect_nts');
 
206
 
207
  if($wp_CopyProtect_nts == true) { CopyProtect_no_select_footer(); }
 
208
  }
209
 
210
  function CopyProtect_adminmenu()
@@ -214,8 +242,8 @@ function CopyProtect_adminmenu()
214
  }
215
  }
216
 
217
- // Commanding the Wordpress
218
  add_action('wp_head','CopyProtect');
219
  add_action('wp_footer','CopyProtect_footer');
220
  add_action('admin_menu','CopyProtect_adminmenu',1);
221
- ?>
1
  <?php
2
  /*
3
+ Plugin Name: WP-CopyProtect [Protect your blog posts]
4
+ Plugin URI: http://chetangole.com/blog/wp-copyprotect/
5
  Description: This plug-in will protect your blog content [posts] from being copied. A simple plug-in developed to stop the Copy cats.
6
+ Version: 2.1.0
7
  Author: Chetan Gole
8
+ Author URI: http://chetangole.com/
9
  */
10
 
11
  /*
12
+ Copyright (C) 2010 Chetan Gole - chetangole.com
13
 
14
+ This program is free software; you can redistribute it and/or
15
+ modify it under the terms of the GNU General Public License
16
+ as published by the Free Software Foundation; either version 2
17
+ of the License, or (at your option) any later version.
18
 
19
  This program is distributed in the hope that it will be useful,
20
  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
 
 
23
 
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27
+ */
28
 
29
+ // No right click (with message) - Problem for copy cats NO RIGHT CLICK
30
  function CopyProtect_no_right_click($CopyProtect_click_message)
31
  {
32
  ?>
33
  <script type="text/javascript">
34
  <!--
35
+ /*****************************************************************
36
+ *** COPY PROTECTED BY CHETANGOLE.COM/BLOG/WP-COPYPROTECT ****
37
+ ******************************************************************/
 
 
 
38
  var message="<?php echo $CopyProtect_click_message; ?>";
 
 
39
  function clickIE4(){
40
  if (event.button==2){
41
  alert(message);
59
  else if (document.all&&!document.getElementById){
60
  document.onmousedown=clickIE4;
61
  }
 
62
  document.oncontextmenu=new Function("alert(message);return false")
 
63
  // -->
64
  </script>
65
 
66
  <?php
67
  }
68
+ // No right click (without message) - Problem for copy cats NO RIGHT CLICK
69
+ function CopyProtect_no_right_click_without_message()
70
+ {
71
+ ?>
72
+ <script type="text/javascript">
73
+ <!--
74
+ /*****************************************************************
75
+ *** COPY PROTECTED BY CHETANGOLE.COM/BLOG/WP-COPYPROTECT ****
76
+ ******************************************************************/
77
+ function clickIE4(){
78
+ if (event.button==2){
79
+ return false;
80
+ }
81
+ }
82
+ function clickNS4(e){
83
+ if (document.layers||document.getElementById&&!document.all){
84
+ if (e.which==2||e.which==3){
85
+ return false;
86
+ }
87
+ }
88
+ }
89
 
90
+ if (document.layers){
91
+ document.captureEvents(Event.MOUSEDOWN);
92
+ document.onmousedown=clickNS4;
93
+ }
94
+ else if (document.all&&!document.getElementById){
95
+ document.onmousedown=clickIE4;
96
+ }
97
+
98
+ document.oncontextmenu=new Function("return false")
99
+ // -->
100
+ </script>
101
+
102
+ <?php
103
+ }
104
  // No selection header - Now your content is protected from copy and paste guys
105
  function CopyProtect_no_select()
106
  {
107
  ?>
108
  <script type="text/javascript">
109
+
 
 
 
110
  function disableSelection(target){
111
  if (typeof target.onselectstart!="undefined") //For IE
112
  target.onselectstart=function(){return false}
116
  target.onmousedown=function(){return false}
117
  target.style.cursor = "default"
118
  }
 
119
  </script>
 
120
  <?php
121
  }
 
122
  // No selection footer
 
 
123
  function CopyProtect_no_select_footer()
124
  {
125
  ?>
126
  <script type="text/javascript">
127
  disableSelection(document.body)
128
  </script>
 
129
  <?php
130
  }
131
+ function CopyProtectCredit()
132
+ {
133
+ ?>
134
+ <small>Copy Protected by <a href="http://chetangole.com/" target="_blank">Chetan</a>s <a href="http://chetangole.com/blog/wp-copyprotect/" target="_blank">WP-Copyprotect</a>.</small>
135
+ <?php
136
+ }
137
  // Tuning your WP-CopyProtect
138
  function CopyProtect_options_page()
139
  {
140
+ ?>
141
+ <div class="wrap">
142
+ <h1>WP-CopyProtect <font size="2">ver 2.0.0</font></h1>
143
+ | <a href="http://chetangole.com/blog/wp-copyprotect/" target="_blank" title="Visit homepage of wordpress plugin WP-CopyProtect">Visit Plugin page</a> | <a href="http://chetangole.com/blog/wp-copyprotect/#donate" target="_blank" title="Donate some amount to WP-CopyProtect plugin developer to help him to develope more such plugins">Donate</a> | <a href="http://chetangole.com/blog/wp-copyprotect/#donors" target="_blank" title="Few power donors,special thanks to them">Power Donors</a> |
144
+ <h3>- settings page -</h3>
145
+ <?php
146
  if($_POST['CopyProtect_save']){
147
  update_option('CopyProtect_nrc',$_POST['CopyProtect_nrc']);
148
  update_option('CopyProtect_nts',$_POST['CopyProtect_nts']);
149
  update_option('CopyProtect_nrc_text',$_POST['CopyProtect_nrc_text']);
150
+ update_option('CopyProtect_credit',$_POST['CopyProtect_credit']);
151
 
152
+ echo '<div class="updated"><p>Settings saved</p></div>';
153
  }
154
  $wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
155
  $wp_CopyProtect_nts = get_option('CopyProtect_nts');
156
+ $wp_CopyProtect_credit = get_option('CopyProtect_credit');
157
  ?>
 
 
 
 
158
  <form method="post" id="CopyProtect_options">
159
  <fieldset class="options">
160
+ <table class="form-table">
 
 
 
161
  <tr valign="top">
162
  <th width="33%" scope="row">Disable right mouse click:</th>
163
  <td>
164
+ <input type="radio" name="CopyProtect_nrc" value="0" <?php if($wp_CopyProtect_nrc == 0) echo('checked'); ?> />
165
+ Do not disable right click.<br />
166
+ <input type="radio" name="CopyProtect_nrc" value="1" <?php if($wp_CopyProtect_nrc == 1) echo('checked'); ?> />
167
+ Disable right click, no message.<br />
168
+ <input type="radio" name="CopyProtect_nrc" value="2" <?php if($wp_CopyProtect_nrc == 2) echo('checked'); ?> />
169
+ Disable right click and show message :
170
  <input name="CopyProtect_nrc_text" type="text" id="CopyProtect_nrc_text" value="<?php echo get_option('CopyProtect_nrc_text') ;?>" size="30"/>
 
171
  </td>
172
+ </tr>
173
  <tr valign="top">
174
  <th width="33%" scope="row">Disable text selection:</th>
175
  <td>
176
  <input type="checkbox" id="CopyProtect_nts" name="CopyProtect_nts" value="CopyProtect_nts" <?php if($wp_CopyProtect_nts == true) { echo('checked="checked"'); } ?> />
177
+ Activate. <a href="http://www.thechetan.com/wp-copyprotect/#kp" target="_blank">Not working ?</a>
178
+ </td>
179
+ </tr>
180
+ <tr valign="top">
181
+ <th width="33%" scope="row">Display protection information:</th>
182
+ <td>
183
+ <input type="checkbox" id="CopyProtect_credit" name="CopyProtect_credit" value="CopyProtect_credit" <?php if($wp_CopyProtect_credit == true) { echo('checked="checked"'); } ?> />
184
+ Activate.
185
  </td>
186
+ </tr>
 
187
  <tr>
188
  <th width="33%" scope="row">Save settings :</th>
189
  <td>
190
  <input type="submit" name="CopyProtect_save" value="Save Settings" />
191
  </td>
192
  </tr>
 
 
 
 
 
 
 
 
 
 
193
  <tr>
194
  <th scope="row" style="text-align:right; vertical-align:top;">
195
  <td>
196
  <h3>Whats next ?</h3>
197
+ <p>Why don't you <a href="/wp-admin/post-new.php">write a post</a> about <a href="http://chetangole.com/blog/wp-copyprotect/" target="_blank">WP-CopyProtect</a> ?</p>
198
  <h3>Problems, Questions, Suggestions ?</h3>
199
+ <p>Send me mail via: <a href="http://chetangole.com/blog/wp-copyprotect/" target="_blank">WP-CopyProtect Homepage</a></p>
200
  </td>
201
  </tr>
202
  </table>
203
  <h3>Thank you</h3>
204
+ Plug in developed by <a href="http://chetangole.com/blog/" target="_blank">Chetan Gole</a>. <br />
205
+ <small>Follow me on Twitter <a href="http://twitter.com/_techie" target="_blank">@_techie</a></small>
206
  </fieldset>
207
  </form>
208
  </table>
210
  <?php
211
  }
212
 
213
+ //call to function
214
  function CopyProtect()
215
  {
 
216
  $wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
217
  $wp_CopyProtect_nts = get_option('CopyProtect_nts');
218
  $wp_CopyProtect_nrc_text = get_option('CopyProtect_nrc_text');
219
+ $wp_CopyProtect_credit = get_option('CopyProtect_credit');
220
  $pos = strpos(strtolower(getenv("REQUEST_URI")), '?preview=true');
221
 
222
  if ($pos === false) {
223
+ if($wp_CopyProtect_nrc == 1) { CopyProtect_no_right_click_without_message(); }
224
+ if($wp_CopyProtect_nrc == 2) { CopyProtect_no_right_click($wp_CopyProtect_nrc_text); }
225
  if($wp_CopyProtect_nts == true) { CopyProtect_no_select(); }
226
  }
227
  }
229
  function CopyProtect_footer()
230
  {
231
  $wp_CopyProtect_nts = get_option('CopyProtect_nts');
232
+ $wp_CopyProtect_credit = get_option('CopyProtect_credit');
233
 
234
  if($wp_CopyProtect_nts == true) { CopyProtect_no_select_footer(); }
235
+ if($wp_CopyProtect_credit == true) { CopyProtectCredit(); }
236
  }
237
 
238
  function CopyProtect_adminmenu()
242
  }
243
  }
244
 
245
+ //Commanding the Wordpress
246
  add_action('wp_head','CopyProtect');
247
  add_action('wp_footer','CopyProtect_footer');
248
  add_action('admin_menu','CopyProtect_adminmenu',1);
249
+ ?>