Plugin Directory

Changeset 535280


Ignore:
Timestamp:
04/24/2012 02:35:12 AM (14 years ago)
Author:
afperea
Message:
 
Location:
copyrightpro
Files:
13 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • copyrightpro/trunk/index.php

    r418493 r535280  
    44      Plugin URI: http://wp-copyrightpro.com/
    55      Description: CopyRightPro is a free version of Wp-Copyrightpro plug-in that prevents the copying of texts and images from your blog, if you install this plug-in, your content of wordpress will be protected.
    6       Version: 1.0
     6      Version: 1.1
    77      Author: Andres Felipe Perea V.
    88      Author URI: http://wp-copyrightpro.com/
     
    5151/* FUNCIONES DE PROTECCION */
    5252function copyright_headv1(){
    53 include ('script.htm');
     53
     54global $wpdb;
     55    $fivesdrafts = $wpdb->get_results("SELECT*FROM copyrightpro");
     56
     57    foreach ($fivesdrafts as $fivesdraft) {
     58            $result[0]=$fivesdraft->copy_click;
     59            $result[1]=$fivesdraft->copy_selection;
     60    }
     61   
     62if ($result[0]=="y"){?>
     63<script language="Javascript">
     64<!-- Begin
     65document.oncontextmenu = function(){return false}
     66// End -->
     67</script>
     68<?php }
     69
     70if ($result[1]=="y"){?>
     71<script type="text/javascript">
     72// IE Evitar seleccion de texto
     73document.onselectstart=function(){
     74if (event.srcElement.type != "text" && event.srcElement.type != "textarea" && event.srcElement.type != "password")
     75return false
     76else return true;
     77};
     78// FIREFOX Evitar seleccion de texto
     79if (window.sidebar){
     80document.onmousedown=function(e){
     81var obj=e.target;
     82if (obj.tagName.toUpperCase() == "INPUT" || obj.tagName.toUpperCase() == "TEXTAREA" || obj.tagName.toUpperCase() == "PASSWORD")
     83return true;
     84/*else if (obj.tagName=="BUTTON"){
     85return true;
     86}*/
     87else
     88return false;
     89}
     90}
     91// End -->
     92</script>
     93
     94<?php }
     95
    5496}
    5597
  • copyrightpro/trunk/readme.txt

    r418493 r535280  
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5TS4C2GX9WUR6&lc=ES&item_name=Wp%2dcopyrightpro&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
    44Tags: copyright, images, gallery, prevent copy, text, disable right click, prevent select text, wordpress, content, protect, wp no right click plugin
    5 Requires at least: 3.2.1
    6 Tested up to: 3.2.1
    7 Stable tag: 1.0
     5Requires at least: 3.3.2
     6Tested up to: 3.3.2
     7Stable tag: 1.1
    88
    99If you install CopyRightPro, your content of wordpress will be protected.
     
    2626**[Official Website](http://wp-copyrightpro.com/)**
    2727**[Support](http://wp-copyrightpro.com/)**
    28 **[Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5TS4C2GX9WUR6&lc=ES&item_name=Wp%2dcopyrightpro&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)**
     28**[Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5TS4C2GX9WUR6&lc=ES&item_name=puydi&item_number=wpcopyrightpro&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)**
    2929
    3030
     
    7171= 1.0 =
    7272* Firt version of CopyRightPro
     73
     74= 1.1 =
     75* For wordpress 3.3.2
Note: See TracChangeset for help on using the changeset viewer.