wp-content-copy-protector
Last commit date
css
22 hours ago
images
22 hours ago
js
22 hours ago
languages
22 hours ago
admin-core.php
22 hours ago
deactivation-survey.php
22 hours ago
notifications.php
22 hours ago
preventer-index.php
22 hours ago
readme.txt
22 hours ago
right-click-protection.jpg
22 hours ago
the_globals.php
22 hours ago
watermark-adv.jpg
22 hours ago
watermarking-adv-examples.png
22 hours ago
admin-core.php
592 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 | include 'notifications.php'; |
| 10 | add_action('admin_footer','wccp_free_alert_message'); |
| 11 | |
| 12 | if(isset($_POST["Restore_defaults"])) |
| 13 | { |
| 14 | check_admin_referer( 'Restore_defaults_nonce', '_Restore_defaults' ); |
| 15 | |
| 16 | if ( ! current_user_can( 'manage_options' ) ) { |
| 17 | wp_die( esc_html__( 'You do not have permission to change these settings.', 'wp-content-copy-protector' ), 403 ); |
| 18 | } |
| 19 | |
| 20 | update_option("wccp_settings" , ""); |
| 21 | wp_safe_redirect( admin_url( 'admin.php?page=wccpoptionspro' ) ); |
| 22 | exit; |
| 23 | } |
| 24 | |
| 25 | if(isset($_POST["Save_settings"])) |
| 26 | { |
| 27 | check_admin_referer( 'Save_settings_nonce', '_Save_settings' ); |
| 28 | |
| 29 | if ( ! current_user_can( 'manage_options' ) ) { |
| 30 | wp_die( esc_html__( 'You do not have permission to change these settings.', 'wp-content-copy-protector' ), 403 ); |
| 31 | } |
| 32 | |
| 33 | //----------------------------------------------------list the options array values |
| 34 | $wccp_free_text_fields = array( |
| 35 | 'single_posts_protection', |
| 36 | 'home_page_protection', |
| 37 | 'page_protection', |
| 38 | 'top_bar_icon_btn', |
| 39 | 'home_css_protection', |
| 40 | 'posts_css_protection', |
| 41 | 'right_click_protection_posts', |
| 42 | 'right_click_protection_homepage', |
| 43 | 'right_click_protection_pages', |
| 44 | 'alert_msg_img', |
| 45 | 'alert_msg_a', |
| 46 | 'alert_msg_pb', |
| 47 | 'alert_msg_input', |
| 48 | 'alert_msg_h', |
| 49 | 'alert_msg_textarea', |
| 50 | 'alert_msg_emptyspaces', |
| 51 | ); |
| 52 | |
| 53 | $wccp_free_posted = array(); |
| 54 | foreach ( $wccp_free_text_fields as $wccp_free_field ) { |
| 55 | $wccp_free_posted[ $wccp_free_field ] = isset( $_POST[ $wccp_free_field ] ) ? sanitize_text_field( wp_unslash( $_POST[ $wccp_free_field ] ) ) : ''; |
| 56 | } |
| 57 | |
| 58 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Sanitized by wccp_sanitize(). |
| 59 | $wccp_free_posted['smessage'] = isset( $_POST['smessage'] ) ? wccp_sanitize( wp_unslash( $_POST['smessage'] ), 'textbox' ) : ''; |
| 60 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Sanitized by wccp_sanitize(). |
| 61 | $wccp_free_posted['prnt_scr_msg'] = isset( $_POST['prnt_scr_msg'] ) ? wccp_sanitize( wp_unslash( $_POST['prnt_scr_msg'] ), 'text' ) : ''; |
| 62 | |
| 63 | //----------------------------------------------------Get the options array values |
| 64 | $wccp_settings = |
| 65 | Array ( |
| 66 | 'single_posts_protection' => $wccp_free_posted['single_posts_protection'], // prevent content copy, take 2 parameters |
| 67 | 'home_page_protection' => $wccp_free_posted['home_page_protection'], // PROTECT THE HOME PAGE OR NOT |
| 68 | 'page_protection' => $wccp_free_posted['page_protection'], // protect pages by javascript |
| 69 | 'top_bar_icon_btn' => $wccp_free_posted['top_bar_icon_btn'], // protection icon on top bar |
| 70 | 'right_click_protection_posts' => $wccp_free_posted['right_click_protection_posts'], //no comment here |
| 71 | 'right_click_protection_homepage' => $wccp_free_posted['right_click_protection_homepage'], //no comment here |
| 72 | 'right_click_protection_pages' => $wccp_free_posted['right_click_protection_pages'], //no comment here |
| 73 | 'home_css_protection' => $wccp_free_posted['home_css_protection'], // premium option |
| 74 | 'posts_css_protection' => $wccp_free_posted['posts_css_protection'], // premium option (unlocked and become free option) |
| 75 | 'pages_css_protection' => 'No', // premium option |
| 76 | 'exclude_admin_from_protection' => 'No', // premium option |
| 77 | 'img' => '', // premium option |
| 78 | 'a' => '', // premium option |
| 79 | 'pb' => '', // premium option |
| 80 | 'input' => '', // premium option |
| 81 | 'h' => '', // premium option |
| 82 | 'textarea' => '', // premium option |
| 83 | 'emptyspaces' => '', // premium option |
| 84 | 'smessage' => $wccp_free_posted['smessage'], |
| 85 | 'alert_msg_img' => $wccp_free_posted['alert_msg_img'], |
| 86 | 'alert_msg_a' => $wccp_free_posted['alert_msg_a'], |
| 87 | 'alert_msg_pb' => $wccp_free_posted['alert_msg_pb'], |
| 88 | 'alert_msg_input' => $wccp_free_posted['alert_msg_input'], |
| 89 | 'alert_msg_h' => $wccp_free_posted['alert_msg_h'], |
| 90 | 'alert_msg_textarea' => $wccp_free_posted['alert_msg_textarea'], |
| 91 | 'alert_msg_emptyspaces' => $wccp_free_posted['alert_msg_emptyspaces'], |
| 92 | 'prnt_scr_msg' => $wccp_free_posted['prnt_scr_msg'] |
| 93 | ); |
| 94 | |
| 95 | if(get_option('wccp_settings') !== null) { |
| 96 | update_option( 'wccp_settings' , $wccp_settings ); |
| 97 | } else { |
| 98 | add_option( 'wccp_settings', $wccp_settings, '', 'yes' ); |
| 99 | } |
| 100 | wp_safe_redirect( admin_url( 'admin.php?page=wccpoptionspro' ) ); |
| 101 | exit; |
| 102 | } |
| 103 | |
| 104 | $wccp_settings = wccp_read_options(); |
| 105 | $wccp_free_allowed_tags = array( 'u' => array(), 'b' => array(), 'strong' => array(), 'em' => array(), 'br' => array() ); |
| 106 | ?> |
| 107 | <div id="wpccp_subscribe" class="notice notice-info is-dismissible"> |
| 108 | <?php $wccp_free_admin_email = get_bloginfo("admin_email"); ?> |
| 109 | <table style="background-image:url(<?php echo esc_url( $wccp_free_pluginsurl ) ?>/images/ad.png);background-repeat:no-repeat;" border="0" width="100%" cellspacing="0" cellpadding="0"> |
| 110 | <tr> |
| 111 | <td><h2 style="background-color:#FFFFFF;padding:3px;" class="alert-heading"><?php esc_html_e("WP Content Protection Plugin Group", 'wp-content-copy-protector') ?></h2></td> |
| 112 | <td rowspan="2"> |
| 113 | <p align="center"><a href="#" onclick="wpccp_dismiss_notice()"><?php esc_html_e('Dismiss', 'wp-content-copy-protector'); ?> </a></td> |
| 114 | </tr> |
| 115 | <tr> |
| 116 | <td style="padding-left: 77px;"> |
| 117 | <h4> |
| 118 | <?php echo esc_html__("Begin your adventure to improve your WordPress website, Also you will win a ", 'wp-content-copy-protector') . ' <b style="color:red">' . esc_html__("discount codes" , 'wp-content-copy-protector') . '</b>'; ?> |
| 119 | <input type="text" id="admin_email_wccp" name= "admin_email_wccp" value="<?php echo esc_attr( $wccp_free_admin_email ); ?>" /> |
| 120 | <button type="button" class="btn btn-primary wpccp_subscribe_btn" onclick='wpccp_open_subscribe_page();'> <?php esc_html_e("Start it!", 'wp-content-copy-protector'); ?> </button> |
| 121 | </h4> |
| 122 | </td> |
| 123 | </tr> |
| 124 | </table> |
| 125 | </div> |
| 126 | <script> |
| 127 | function wpccp_dismiss_notice() |
| 128 | { |
| 129 | localStorage.setItem('wpccp_subscribed', 'wpccp_subsbc_user'); |
| 130 | document.getElementById("wpccp_subscribe").style.display="none"; |
| 131 | } |
| 132 | |
| 133 | function wpccp_open_subscribe_page() |
| 134 | { |
| 135 | if(localStorage.getItem('wpccp_subscribed') !='wpccp_subsbc_user') |
| 136 | { |
| 137 | var admin_email_wccp = document.getElementById('admin_email_wccp').value; |
| 138 | window.open('https://www.wp-buy.com/wpccp-subscribe/?email='+admin_email_wccp,'_blank'); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | if(localStorage.getItem('wpccp_subscribed') =='wpccp_subsbc_user') |
| 143 | { |
| 144 | document.getElementById("wpccp_subscribe").style.display="none"; |
| 145 | } |
| 146 | </script> |
| 147 | <div id="aio_admin_main"> |
| 148 | <p style="margin: 20px 0 20px;font-size: 16px;font-weight: bold;color: rgba(30,140,190,.8);">WP Content Copy Protection & No Right Click (FREE) |
| 149 | <font color="#0909FF"><u> |
| 150 | <a target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 151 | <font color="#0909FF"><?php esc_html_e('PRO Version','wp-content-copy-protector'); ?></font></a></u></font> |
| 152 | </p> |
| 153 | <form method="POST"> |
| 154 | <input type="hidden" value="update" name="action"> |
| 155 | <?php wp_nonce_field('Save_settings_nonce','_Save_settings'); ?> |
| 156 | <?php wp_nonce_field('Restore_defaults_nonce','_Restore_defaults'); ?> |
| 157 | <div class="simpleTabs"> |
| 158 | <ul class="simpleTabsNavigation"> |
| 159 | <li><a href="#"><?php esc_html_e('Main Settings','wp-content-copy-protector'); ?></a></li> |
| 160 | <li><a href="#"><?php esc_html_e('Premium RightClick Protection','wp-content-copy-protector'); ?></a></li> |
| 161 | <li><a href="#"><?php esc_html_e('Premium Protection by CSS','wp-content-copy-protector'); ?></a></li> |
| 162 | <li><a href="#"><?php esc_html_e('More with pro','wp-content-copy-protector'); ?></a></li> |
| 163 | </ul> |
| 164 | <div class="simpleTabsContent"> |
| 165 | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
| 166 | <tr> |
| 167 | <td width="77%"> |
| 168 | <h4><?php esc_html_e('Copy Protection using JavaScript','wp-content-copy-protector'); ?> (<font color="#008000"><?php esc_html_e('Basic Layer','wp-content-copy-protector'); ?></font>):</h4> |
| 169 | <p><font face="Tahoma" size="2"><?php echo wp_kses( __('This is the basic protection layer that uses <u>JavaScript</u> to protect the posts, home page content from being copied by any other web site author.','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></p> |
| 170 | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
| 171 | <tr> |
| 172 | <td width="60%"> |
| 173 | <div style="float: auto;padding: 4px" id="layer3"> |
| 174 | <table border="0" width="100%" height="320" cellspacing="0" cellpadding="0"> |
| 175 | <tr> |
| 176 | <td width="221" height="33"><font face="Tahoma" size="2"><?php echo wp_kses( __('Posts protection by <u>JavaScript</u>','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></td> |
| 177 | <td> |
| 178 | <select size="1" name="single_posts_protection"> |
| 179 | <?php |
| 180 | if ($wccp_settings['single_posts_protection'] == 'Enabled') |
| 181 | { |
| 182 | echo '<option selected value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 183 | echo '<option value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 184 | } |
| 185 | else |
| 186 | { |
| 187 | echo '<option value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 188 | echo '<option selected value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 189 | } |
| 190 | ?> |
| 191 | </select> |
| 192 | </td> |
| 193 | <td> |
| 194 | <p><font face="Tahoma" size="2"><?php esc_html_e('For single posts content','wp-content-copy-protector'); ?></font></p></td> |
| 195 | </tr> |
| 196 | <tr> |
| 197 | <td width="221" height="33"><font face="Tahoma" size="2"><?php echo wp_kses( __('Homepage protection by <u>JavaScript</u>','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></td> |
| 198 | <td> |
| 199 | <select size="1" name="home_page_protection"> |
| 200 | <?php |
| 201 | if ($wccp_settings['home_page_protection'] == 'Enabled') |
| 202 | { |
| 203 | echo '<option selected value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 204 | echo '<option value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 205 | } |
| 206 | else |
| 207 | { |
| 208 | echo '<option value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 209 | echo '<option selected value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 210 | } |
| 211 | ?> |
| 212 | </select> |
| 213 | </td> |
| 214 | <td> |
| 215 | <p><font face="Tahoma" size="2"><?php esc_html_e('Don\'t copy any thing! even from my homepage','wp-content-copy-protector'); ?></font></td> |
| 216 | </tr> |
| 217 | <tr> |
| 218 | <td width="221" height="33"><font face="Tahoma" size="2"><?php esc_html_e('Static page\'s protection','wp-content-copy-protector'); ?></font></td> |
| 219 | <td> |
| 220 | <select size="1" name="page_protection"> |
| 221 | <?php |
| 222 | if ($wccp_settings['page_protection'] == 'Enabled') |
| 223 | { |
| 224 | echo '<option selected value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 225 | echo '<option value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 226 | } |
| 227 | else |
| 228 | { |
| 229 | echo '<option selected value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 230 | echo '<option value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 231 | } |
| 232 | ?> |
| 233 | </select></td> |
| 234 | <td> |
| 235 | <p><font face="Tahoma" size="2"><?php esc_html_e('Use Premium Settings tab to customize more options','wp-content-copy-protector'); ?></font></td> |
| 236 | </tr> |
| 237 | <tr> |
| 238 | <td width="221" height="33"><font face="Tahoma" size="2"><?php esc_html_e('Plugin icon on top admin bar','wp-content-copy-protector'); ?></font></td> |
| 239 | <td> |
| 240 | <select size="1" name="top_bar_icon_btn"> |
| 241 | <?php |
| 242 | //Check if Hidden first, because default value is Visible |
| 243 | if (array_key_exists("top_bar_icon_btn",$wccp_settings) && $wccp_settings['top_bar_icon_btn'] == 'Hidden') |
| 244 | { |
| 245 | echo '<option selected value="Hidden">'. esc_html__('Hidden','wp-content-copy-protector') .'</option>'; |
| 246 | echo '<option value="Visible">'. esc_html__('Visible','wp-content-copy-protector') .'</option>'; |
| 247 | } |
| 248 | else |
| 249 | { |
| 250 | echo '<option selected value="Visible">'. esc_html__('Visible','wp-content-copy-protector') .'</option>'; |
| 251 | echo '<option value="Hidden">'. esc_html__('Hidden','wp-content-copy-protector') .'</option>'; |
| 252 | } |
| 253 | ?> |
| 254 | </select></td> |
| 255 | <td> |
| 256 | <p><font face="Tahoma" size="2"><?php esc_html_e('Show/Hide the plugin icon on the top admin bar','wp-content-copy-protector'); ?></font></td> |
| 257 | </tr> |
| 258 | <tr> |
| 259 | <td width="221" height="33"><font face="Tahoma" size="2"><?php echo wp_kses( __('Exclude <u>Admin</u> from protection','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></td> |
| 260 | <td width="88px"> |
| 261 | <p align="center"><a style="color:#FF0000;" target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 262 | <?php esc_html_e('Premium','wp-content-copy-protector'); ?></a></td> |
| 263 | <td> |
| 264 | <font face="Tahoma" size="2"><?php echo wp_kses( __('If <u>Yes</u>, The protection functions will be inactive for the admin when he is logged in','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></td> |
| 265 | </tr> |
| 266 | <tr> |
| 267 | <td width="221" height="33"><font face="Tahoma" size="2"><?php esc_html_e('Selection disabled message','wp-content-copy-protector'); ?></font></td> |
| 268 | <td colspan="2"> |
| 269 | <table border="0" width="59%" cellspacing="0" cellpadding="0"> |
| 270 | <tr> |
| 271 | <td> |
| 272 | <input type="text" style="width: 100%;" placeholder="Enter something" class="form-control" name="smessage" value="<?php echo esc_attr( html_entity_decode( $wccp_settings['smessage'], ENT_QUOTES, 'UTF-8' ) ); ?>"></td> |
| 273 | </tr> |
| 274 | </table> |
| 275 | </td> |
| 276 | </tr> |
| 277 | <tr> |
| 278 | <td width="221" height="33"><font face="Tahoma" size="2"><?php esc_html_e('Print preview message','wp-content-copy-protector'); ?></font></td> |
| 279 | <td colspan="2"> |
| 280 | <table border="0" width="99%" cellspacing="0" cellpadding="0"> |
| 281 | <tr> |
| 282 | <td> |
| 283 | <textarea placeholder="Enter something" style="height: 110px; width: 100%;" class="form-control" name="prnt_scr_msg"><?php echo esc_textarea( html_entity_decode( $wccp_settings['prnt_scr_msg'], ENT_QUOTES, 'UTF-8' ) ); ?></textarea></td> |
| 284 | </tr> |
| 285 | </table> |
| 286 | </td> |
| 287 | </tr> |
| 288 | </table></div> |
| 289 | </td> |
| 290 | </tr> |
| 291 | </table> |
| 292 | </td> |
| 293 | </tr> |
| 294 | </table></div> |
| 295 | <div class="simpleTabsContent"> |
| 296 | <h4><?php esc_html_e('Copy Protection on RightClick','wp-content-copy-protector'); ?> (<font color="#008000"><?php esc_html_e('Premium Layer 2','wp-content-copy-protector'); ?></font>):</h4> |
| 297 | <p><font face="Tahoma" size="2"><?php echo wp_kses( __('In this protection layer your visitors will be able to <u>right click</u> on a specific page elements only (such as Links as an example)','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></p> |
| 298 | <div id="layer4"> |
| 299 | <table border="0" width="100%" height="361" cellspacing="0" cellpadding="0"> |
| 300 | <tr> |
| 301 | <td height="53" width="21%"><font face="Tahoma" size="2"><?php echo wp_kses( __('Disable <u>RightClick</u> on','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></td> |
| 302 | <td height="53"> |
| 303 | <table border="0" width="521" height="100%" cellspacing="1" cellpadding="0"> |
| 304 | <tr> |
| 305 | <td width="161" height="46"> |
| 306 | <label class="checkbox" for="checkbox1"> |
| 307 | <font face="Tahoma"> |
| 308 | <input data-toggle="checkbox" type="checkbox" name="right_click_protection_posts" value="checked" <?php checked( $wccp_settings['right_click_protection_posts'], 'checked' ); ?>><font size="2"><?php esc_html_e('Posts','wp-content-copy-protector'); ?></font></font> |
| 309 | </label> |
| 310 | </td> |
| 311 | <td width="161" height="46"> |
| 312 | <label class="checkbox" for="checkbox1"> |
| 313 | <font face="Tahoma"> |
| 314 | <input data-toggle="checkbox" type="checkbox" name="right_click_protection_homepage" value="checked" <?php checked( $wccp_settings['right_click_protection_homepage'], 'checked' ); ?>><font size="2"><?php esc_html_e('HomePage','wp-content-copy-protector'); ?></font></font> |
| 315 | </label> |
| 316 | </td> |
| 317 | <td width="185" height="46"> |
| 318 | <label class="checkbox" for="checkbox1"> |
| 319 | <font face="Tahoma"> |
| 320 | <input data-toggle="checkbox" type="checkbox" name="right_click_protection_pages" value="checked" <?php checked( $wccp_settings['right_click_protection_pages'], 'checked' ); ?>><font size="2"><?php esc_html_e('Static pages','wp-content-copy-protector'); ?></font></font> |
| 321 | </label> |
| 322 | </td> |
| 323 | </tr> |
| 324 | </table> |
| 325 | </td> |
| 326 | </tr> |
| 327 | <tr> |
| 328 | <td height="44" colspan="2"> |
| 329 | <p><font color="#FF0000" face="Tahoma" size="2"><?php esc_html_e('Remaining premium options preview image ','wp-content-copy-protector'); ?></font> |
| 330 | <img src="<?php echo esc_url( $wccp_free_pluginsurl ) ?>/images/click-here-arrow.png" id="irc_mi"> |
| 331 | <b><font color="#0909FF"><u> |
| 332 | <a target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 333 | <font color="#0909FF"><?php esc_html_e('Preview & Pricing','wp-content-copy-protector'); ?></font></a></u></font></b> |
| 334 | </td> |
| 335 | </tr> |
| 336 | <tr> |
| 337 | <td height="264" colspan="2"> |
| 338 | |
| 339 | <a target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 340 | <img class="size-full" border="1" src="<?php echo esc_url( $wccp_free_pluginsurl ) ?>/images/right-click-protection.jpg" style="border: 1px dotted #C0C0C0"></a><p> </td> |
| 341 | </tr> |
| 342 | </table></div> |
| 343 | </div> |
| 344 | <div class="simpleTabsContent"> |
| 345 | <h4><?php esc_html_e('Protection by CSS Techniques','wp-content-copy-protector'); ?> (<font color="#008000"><?php esc_html_e('Premium Layer 3','wp-content-copy-protector'); ?></font>):</h4> |
| 346 | <p><font face="Tahoma" size="2"><?php echo wp_kses( __('In this protection layer your website will be protected by some <u>CSS</u> tricks that will word even if <u>JavaScript</u> is disabled from the browser settings','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></p> |
| 347 | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
| 348 | <tr> |
| 349 | <td width="60%"> |
| 350 | <div style="float: auto;padding: 4px" id="layer5"> |
| 351 | <table border="0" width="100%" height="232" cellspacing="0" cellpadding="0"> |
| 352 | <tr> |
| 353 | <td width="221" height="74"><font face="Tahoma" size="2"><?php echo wp_kses( __('<b>Home Page</b> Protection by CSS','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></td> |
| 354 | <td height="74" width="90"> |
| 355 | <select size="1" name="home_css_protection"> |
| 356 | <?php |
| 357 | if ($wccp_settings['home_css_protection'] == 'Enabled') |
| 358 | { |
| 359 | echo '<option selected value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 360 | echo '<option value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 361 | } |
| 362 | else |
| 363 | { |
| 364 | echo '<option value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 365 | echo '<option selected value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 366 | } |
| 367 | ?> |
| 368 | </select> |
| 369 | </td> |
| 370 | <td height="74"> |
| 371 | <font face="Tahoma" size="2"><?php esc_html_e('Protect your Homepage by CSS tricks','wp-content-copy-protector'); ?></font></td> |
| 372 | </tr> |
| 373 | <tr> |
| 374 | <td width="221" height="77"><font face="Tahoma" size="2"><?php echo wp_kses( __('<b>Posts</b> Protection by CSS','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></td> |
| 375 | <td width="90" align="center"> |
| 376 | <select size="1" name="posts_css_protection"> |
| 377 | <?php |
| 378 | if ($wccp_settings['posts_css_protection'] == 'Enabled') |
| 379 | { |
| 380 | echo '<option selected value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 381 | echo '<option value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 382 | } |
| 383 | else |
| 384 | { |
| 385 | echo '<option value="Enabled">'. esc_html__('Enabled','wp-content-copy-protector') .'</option>'; |
| 386 | echo '<option selected value="Disabled">'. esc_html__('Disabled','wp-content-copy-protector') .'</option>'; |
| 387 | } |
| 388 | ?> |
| 389 | </select> |
| 390 | </td> |
| 391 | <td> |
| 392 | <font face="Tahoma" size="2"><?php esc_html_e('Protect your single posts by CSS tricks','wp-content-copy-protector'); ?></font> (Pro option - unlocked for free!!)</td> |
| 393 | </tr> |
| 394 | <tr> |
| 395 | <td width="221"><font face="Tahoma" size="2"><?php echo wp_kses( __('<b>Pages</b> Protection by CSS','wp-content-copy-protector'), $wccp_free_allowed_tags ); ?></font></td> |
| 396 | <td width="90" align="center"> |
| 397 | <a style="color:#FF0000;" target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 398 | <?php esc_html_e('Premium','wp-content-copy-protector'); ?></a> |
| 399 | </td> |
| 400 | <td><font face="Tahoma" size="2"><?php esc_html_e('Protect your static pages by CSS tricks','wp-content-copy-protector'); ?></font></td> |
| 401 | </tr> |
| 402 | </table></div> |
| 403 | </td> |
| 404 | </tr> |
| 405 | </table> |
| 406 | |
| 407 | </div> |
| 408 | <div class="simpleTabsContent" id="layer1"> |
| 409 | <p><font color="#FF0000" face="Tahoma" size="3"><?php esc_html_e('Crazy discount offer is now running for a limited time!! You might love it','wp-content-copy-protector'); ?></font> |
| 410 | <img src="<?php echo esc_url( $wccp_free_pluginsurl ) ?>/images/click-here-arrow.png" id="irc_mi"> |
| 411 | <b><font color="#0909FF"><u> |
| 412 | <a target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 413 | <font color="#0909FF" size="3"><?php esc_html_e('See it now','wp-content-copy-protector'); ?></font></a></u></font></b> |
| 414 | <a target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 415 | <img class="size-full" border="1" src="<?php echo esc_url( $wccp_free_pluginsurl ) ?>/images/smart-phones-protection.png" style="border: 1px dotted #C0C0C0"> |
| 416 | </a> |
| 417 | <p> </p> |
| 418 | <a target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 419 | <img class="size-full" border="1" src="<?php echo esc_url( $wccp_free_pluginsurl ) ?>/images/watermark-adv.jpg" style="border: 1px dotted #C0C0C0"> |
| 420 | </a> |
| 421 | <p></p> |
| 422 | <a target="_blank" href="https://www.wp-buy.com/product/wp-content-copy-protection-pro/"> |
| 423 | <img class="size-full" border="1" src="<?php echo esc_url( $wccp_free_pluginsurl ) ?>/images/watermarking-adv-examples.png" style="border: 1px dotted #C0C0C0"> |
| 424 | </a> |
| 425 | <p></p> |
| 426 | <p><b><font face="Tahoma" size="2" color="#FFFFFF"> |
| 427 | |
| 428 | |
| 429 | <span style="background-color: #008000"><?php esc_html_e('Basic features:','wp-content-copy-protector'); ?></span></font></b></p> |
| 430 | <ul> |
| 431 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Protect your content from selection and copy. this plugin makes protecting your posts extremely simple without yelling at your readers','wp-content-copy-protector'); ?></font></li> |
| 432 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('No one can save images from your site.','wp-content-copy-protector'); ?></font></li> |
| 433 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('No right-click or context menu.','wp-content-copy-protector'); ?></font></li> |
| 434 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Show alert message, Image Ad, or HTML Ad on saving images or right-click.','wp-content-copy-protector'); ?></font></li> |
| 435 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Disable the following keys','wp-content-copy-protector'); ?> CTRL+A, CTRL+C, CTRL+X, CTRL+S, or CTRL+V.</font></li> |
| 436 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Advanced and easy to use control panel.','wp-content-copy-protector'); ?></font></li> |
| 437 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('No one can right-click images on your site if you want','wp-content-copy-protector'); ?></font></li> |
| 438 | </ul> |
| 439 | <p><b><font face="Tahoma" size="2" color="#FFFFFF"> |
| 440 | <span style="background-color: #5B2473"><?php esc_html_e('Premium features:','wp-content-copy-protector'); ?></span></font></b></p> |
| 441 | <ul> |
| 442 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Get full control over Right-click or context menu','wp-content-copy-protector'); ?></font></li> |
| 443 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Full watermarking','wp-content-copy-protector'); ?></font></li> |
| 444 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Show alert messages, when the user made right click on images, text boxes, links, plain text.. etc','wp-content-copy-protector'); ?></font></li> |
| 445 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Admin can exclude Home page Or Single posts from being copy protected ','wp-content-copy-protector'); ?></font></li> |
| 446 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Admin can disable copy protection for admin users.','wp-content-copy-protector'); ?></font></li> |
| 447 | <li><font face="Tahoma" size="2"><?php esc_html_e('3 protection layers (JavaScript protection, RightClick protection, CSS protection)','wp-content-copy-protector'); ?></font></li> |
| 448 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Aggressive image protection (it is nearly impossible for expert users to steal your images !!)','wp-content-copy-protector'); ?></font></li> |
| 449 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Compatible with all major theme frameworks','wp-content-copy-protector'); ?></font></li> |
| 450 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Compatible with all major browsers','wp-content-copy-protector'); ?></font></li> |
| 451 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Tested in IE9, IE10, edge, Firefox, Google Chrome, Opera, safari','wp-content-copy-protector'); ?></font></li> |
| 452 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Disables image drag and drop function','wp-content-copy-protector'); ?></font></li> |
| 453 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Works on smartphones.','wp-content-copy-protector'); ?></font></li> |
| 454 | <li><font style="font-size: 10pt" face="Tahoma"><?php esc_html_e('Ability to set varying levels of protection per page or post.','wp-content-copy-protector'); ?></font></li> |
| 455 | </ul> |
| 456 | |
| 457 | |
| 458 | <p><a target="_blank" href="https://www.wp-buy.com/wpccp-subscribe">Subscribe</a> to our mailing list to get flash discounts</p> |
| 459 | </div> |
| 460 | </div><!-- simple tabs div end --> |
| 461 | <div style="width:97%;" class=""> |
| 462 | <div class="row justify-content-end form-btns"> |
| 463 | <div class="col-15-auto"><input type="submit" class="btn wccp-form-button gray-btn" value="<?php esc_attr_e('Restore defaults','wp-content-copy-protector'); ?>" name="Restore_defaults"></div> |
| 464 | <div class="col-15-auto"><input type="button" class="btn wccp-form-button blue-btn" value="<?php esc_attr_e('Preview alert message','wp-content-copy-protector'); ?>" alt="Use CTRL+F5 after saving" onclick="show_wpcp_message('<?php echo esc_js( __('This is a preview message (do not forget to save changes)','wp-content-copy-protector') ); ?>');" name="B5"></div> |
| 465 | <div class="col-15-auto"><input type="submit" class="btn wccp-form-button green-btn" value=" <?php esc_attr_e('Save Settings','wp-content-copy-protector'); ?> " name="Save_settings"></div> |
| 466 | </div></div> |
| 467 | </form> |
| 468 | </div> |
| 469 | <style> |
| 470 | #aio_admin_main { |
| 471 | padding:10px; |
| 472 | margin: 10px; |
| 473 | background-color: #ffffff; |
| 474 | border:1px solid #EBDDE2; |
| 475 | display: relative; |
| 476 | overflow: auto; |
| 477 | } |
| 478 | .inner_block{ |
| 479 | height: 370px; |
| 480 | display: inline; |
| 481 | min-width:770px; |
| 482 | } |
| 483 | #donate{ |
| 484 | background-color: #EEFFEE; |
| 485 | border: 1px solid #66DD66; |
| 486 | border-radius: 10px 10px 10px 10px; |
| 487 | height: 58px; |
| 488 | padding: 10px; |
| 489 | margin: 15px; |
| 490 | } |
| 491 | .text-font { |
| 492 | color: #1ABC9C; |
| 493 | font-size: 14px; |
| 494 | line-height: 1.5; |
| 495 | padding-left: 3px; |
| 496 | transition: color 0.25s linear 0s; |
| 497 | } |
| 498 | .text-font:hover { |
| 499 | opacity: 1; |
| 500 | transition: color 0.25s linear 0s; |
| 501 | } |
| 502 | .simpleTabsContent{ |
| 503 | border: 1px solid #E9E9E9; |
| 504 | padding: 4px; |
| 505 | } |
| 506 | div.simpleTabsContent{ |
| 507 | margin-top:0; |
| 508 | border: 1px solid #E0E0E0; |
| 509 | display: none; |
| 510 | height: 100%; |
| 511 | min-height: 400px; |
| 512 | padding: 5px 15px 15px; |
| 513 | } |
| 514 | |
| 515 | .size-full { |
| 516 | height: auto; |
| 517 | max-width: 100%; |
| 518 | } |
| 519 | |
| 520 | .wccp-form-button { |
| 521 | color: white; |
| 522 | padding: 12px 28px; |
| 523 | text-align: center; |
| 524 | text-decoration: none; |
| 525 | display: inline-block; |
| 526 | font-size: 16px; |
| 527 | cursor: pointer; |
| 528 | transition-duration: 0.4s; |
| 529 | border: 2px solid; |
| 530 | border-radius: 5px; |
| 531 | } |
| 532 | |
| 533 | .wccp-form-button:hover {background-color: white;} |
| 534 | |
| 535 | .green-btn {background-color: #4CAF50; border-color: #4CAF50;} /* Green */ |
| 536 | .green-btn:hover {color: #4CAF50;} |
| 537 | |
| 538 | .blue-btn {background-color: #008CBA; border-color: #008CBA;} /* Blue */ |
| 539 | .blue-btn:hover {color: #008CBA;} |
| 540 | |
| 541 | .red-btn {background-color: #f44336; border-color: #f44336;} /* Red */ |
| 542 | .red-btn:hover {color: #f44336;} |
| 543 | |
| 544 | .gray-btn {background-color: #e7e7e7; color: black; border-color: #e7e7e7;} /* Gray */ |
| 545 | .gray-btn:hover {color: #black;} |
| 546 | |
| 547 | .black-btn {background-color: #555555; border-color: #555555;} /* Black */ |
| 548 | .black-btn:hover {color: #555555;} |
| 549 | |
| 550 | .form-btns .btn{ |
| 551 | margin-right: 5px; |
| 552 | float: right; |
| 553 | } |
| 554 | @media (max-width: 435px) |
| 555 | { |
| 556 | .form-btns .btn |
| 557 | { |
| 558 | width:95% !important; |
| 559 | } |
| 560 | .form-btns |
| 561 | { |
| 562 | -webkit-box-pack: center!important; |
| 563 | -ms-flex-pack: center!important; |
| 564 | justify-content: center!important; |
| 565 | } |
| 566 | .form-btns div |
| 567 | { |
| 568 | width: 100%; |
| 569 | } |
| 570 | |
| 571 | } |
| 572 | @media (min-width: 436px) and (max-width: 646px) |
| 573 | { |
| 574 | .form-btns .btn |
| 575 | { |
| 576 | width:390px !important; |
| 577 | } |
| 578 | .form-btns |
| 579 | { |
| 580 | -webkit-box-pack: center!important; |
| 581 | -ms-flex-pack: center!important; |
| 582 | justify-content: center!important; |
| 583 | } |
| 584 | } |
| 585 | @media (min-width: 647px) and (min-width: 768px) |
| 586 | { |
| 587 | .form-btns .btn |
| 588 | { |
| 589 | margin-right: 5px; |
| 590 | } |
| 591 | } |
| 592 | </style> |