Plugin Directory

Changeset 1021910


Ignore:
Timestamp:
11/08/2014 08:53:49 AM (11 years ago)
Author:
areafin5
Message:

Updated to 1.5 and WP 4.0 Support added.

Location:
wp-copy-protect/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-copy-protect/trunk/index.php

    r959190 r1021910  
    33 * Plugin Name: WP Copy Protect
    44 * Plugin URI: http://www.rapiditcare.com
    5  * Description: This plugins protect your site from copy your content and will disable the text selecting options for your privacy.
    6  * Version:  1.4
     5 * Description: This plugin protect your site from copy your content and will disable the text selecting and Right click options for your Content privacy.
     6 * Version:  1.5
    77 * Author: Sazzad Areafin
    88 * Author URI: http://www.rapiditcare.com
  • wp-copy-protect/trunk/lib/wp-copy-protect.php

    r947024 r1021910  
    1 <?php
    2 
    3 
    4 
    5 
    6 function wp_copy_protect(){
    7     ?>
    8     <!--WP Copy Protect Plugins-->
    9     <style type="text/css">body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}</style>
    10    
    11    
    12     <script type="text/javascript">
    13 
    14 jQuery(document).bind("keydown", function(e) {
    15 
    16 if(e.ctrlKey && (e.which == 65 || e.which == 67 || e.which == 88 || e.which == 83 ||e.which == 85)) {
    17 
    18 e.preventDefault();
    19 
    20 return false;
    21 
    22 }
    23 
    24 });
    25 
    26 jQuery(document).on( "mousedown", function(event) {
    27 
    28 if(event.which=="3")
    29 
    30 {
    31 
    32 document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
    33 
    34 }
    35 
    36 });
    37 
    38 </script>
    39     <?php
    40 }
    41 
    42 
    43 
    44    
    45    
     1<?php function wp_copy_protect(){ ?> <!--WP Copy Protect Plugins By www.rapiditcare.com --> <style type="text/css">body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}</style> <script type="text/javascript"> jQuery(document).bind("keydown", function(e) { if(e.ctrlKey && (e.which == 65 || e.which == 67 || e.which == 88 || e.which == 83 ||e.which == 85)) { e.preventDefault(); return false; } }); jQuery(document)on( "mousedown", function(event) { if(event.which=="3") { document.oncontextmenu = document.body.oncontextmenu = function() {return false;} } }); </script> <script language=JavaScript> function clickIE4(){ if (event.button==2){ return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("return false") </script> <?php } add_action('wp_head', 'wp_copy_protect');
  • wp-copy-protect/trunk/readme.txt

    r959197 r1021910  
    11=== WP Copy Protect ===
    22Contributors: areafin5
    3 Tags: Protect, Copy Protect, Disable text selecting, WordPress copy protect
     3Tags: WP Copy Protect, WordPress copy protect, Protect your wordpress site, Copy Protect, Disable text selecting
    44Donate link: http://www.rapiditcare.com/donate
    55Requires at least: 3.1
    6 Tested up to: 3.9.1
    7 Stable tag: Version: 1.4
     6Tested up to: 4.0
     7Stable tag: Version: 1.5
    88License: GPL 2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7474
    7575== Screenshots ==
    76 1. Copy protected WordPress
     761. Copy protected WordPress Blog/ website:: Just active and enjoy.
    7777
    7878== Changelog ==
     79= Version 1.5 =
     80* WordPress 4.0 Support added.
     81* Tested for WordPress 4.0
     82
    7983= Version 1.4 =
    8084* Documentation updated for usability.
Note: See TracChangeset for help on using the changeset viewer.