Wpcp error message

WordPress.org Plugin Mirror. Contribute to wp-plugins/wp-content-copy-protector development by creating an account on GitHub.
<?php ob_start(); /* Plugin Name: WP Content Copy Protection & No Right Click Plugin URI: http://wordpress.org/plugins/wp-content-copy-protector/ Description: This wp plugin protect the posts content from being copied by any other web site author , you dont want your content to spread without your permission!! Version: 1.5.0.3 Author: wp-buy Author URI: http://www.wp-buy.com/ */ ?> <?php //delete_option(‘wccp_settings’); //define all variables the needed alot include ‘the_globals.php’; $wccp_settings = wccp_read_options(); //———————————————————<!— SimpleTabs —> function wccp_enqueue_scripts() { global $pluginsurl; $admincore = »; if (isset($_GET[‘page’])) $admincore = $_GET[‘page’]; if( is_admin() && $admincore == ‘wccpoptionspro’) { wp_enqueue_script(‘jquery’); wp_register_script(‘simpletabsjs’, $pluginsurl.‘/js/simpletabs_1.3.js’); wp_enqueue_script(‘simpletabsjs’); wp_register_style(‘simpletabscss’, $pluginsurl.‘/css/simpletabs.css’); wp_enqueue_style(‘simpletabscss’); wp_register_style(‘bootstrapcss’, $pluginsurl.‘/flat-ui/css/bootstrap.css’); wp_enqueue_style(‘bootstrapcss’); wp_register_style(‘flat-ui-css’, $pluginsurl.‘/flat-ui/css/flat-ui.css’); wp_enqueue_style(‘flat-ui-css’); wp_register_script(‘jquery-1.8.3.min.js’, $pluginsurl.‘/flat-ui/js/jquery-1.8.3.min.js’); wp_enqueue_script(‘jquery-1.8.3.min.js’); wp_register_script(‘jquery-ui-1.10.3.custom.min.js’, $pluginsurl.‘/flat-ui/js/jquery-ui-1.10.3.custom.min.js’); wp_enqueue_script(‘jquery-ui-1.10.3.custom.min.js’); wp_register_script(‘jquery.ui.touch-punch.min.js’, $pluginsurl.‘/flat-ui/js/jquery.ui.touch-punch.min.js’); wp_enqueue_script(‘jquery.ui.touch-punch.min.js’); wp_register_script(‘bootstrap.min.js’, $pluginsurl.‘/flat-ui/js/bootstrap.min.js’); wp_enqueue_script(‘bootstrap.min.js’); wp_register_script(‘bootstrap-select.js’, $pluginsurl.‘/flat-ui/js/bootstrap-select.js’); wp_enqueue_script(‘bootstrap-select.js’); wp_register_script(‘bootstrap-switch.js’, $pluginsurl.‘/flat-ui/js/bootstrap-switch.js’); wp_enqueue_script(‘bootstrap-switch.js’); wp_register_script(‘flatui-checkbox.js’, $pluginsurl.‘/flat-ui/js/flatui-checkbox.js’); wp_enqueue_script(‘flatui-checkbox.js’); wp_register_script(‘flatui-radio.js’, $pluginsurl.‘/flat-ui/js/flatui-radio.js’); wp_enqueue_script(‘flatui-radio.js’); wp_register_script(‘jquery.tagsinput.js’, $pluginsurl.‘/flat-ui/js/jquery.tagsinput.js’); wp_enqueue_script(‘jquery.tagsinput.js’); wp_register_script(‘jquery.placeholder.js’, $pluginsurl.‘/flat-ui/js/jquery.placeholder.js’); wp_enqueue_script(‘jquery.placeholder.js’); } } // Hook into the ‘wp_enqueue_scripts’ action //add_action( ‘admin_head’, ‘wccp_enqueue_scripts’ ); add_action(‘admin_enqueue_scripts’, ‘wccp_enqueue_scripts’); //———————————————————————— function wpcp_disable_Right_Click() { global $wccp_settings; ?> <script idwpcp_disable_Right_Click» typetext/javascript«> //<![CDATA[ document.ondragstart = function() { return false;} /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Disable context menu on images by GreenLava Version 1.0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */ function nocontext(e) { return false; } document.oncontextmenu = nocontext; //]]> </script> <?php } ////////////////////////////////////////////////////////////////////////////////////// function wpcp_disable_selection() { global $wccp_settings; ?> <script idwpcp_disable_selection» typetext/javascript«> //<![CDATA[ var image_save_msg=‘You Can Not Save images!’; var no_menu_msg=‘Context Menu disabled!’; var smessage = «<?php echo $wccp_settings[‘smessage’];?>«; function disableEnterKey(e) { if (e.ctrlKey){ var key; if(window.event) key = window.event.keyCode; //IE else key = e.which; //firefox (97) //if (key != 17) alert(key); if (key == 97 || key == 65 || key == 67 || key == 99 || key == 88 || key == 120 || key == 26 || key == 85 || key == 86 || key == 83 || key == 43) { show_wpcp_message(‘You are not allowed to copy content or view source’); return false; }else return true; } } function disable_copy(e) { var elemtype = e.target.nodeName; elemtype = elemtype.toUpperCase(); var checker_IMG = <?php echo $wccp_settings[‘img’];?>; if (elemtype == «IMG» && checker_IMG == ‘checked’ && e.detail >= 2) {show_wpcp_message(alertMsg_IMG);return false;} if (elemtype != «TEXT» && elemtype != «TEXTAREA» && elemtype != «INPUT» && elemtype != «PASSWORD» && elemtype != «SELECT») { if (smessage !== «» && e.detail >= 2) show_wpcp_message(smessage); return false; } } function disable_copy_ie() { var elemtype = window.event.srcElement.nodeName; elemtype = elemtype.toUpperCase(); if (elemtype == «IMG») {show_wpcp_message(alertMsg_IMG);return false;} if (elemtype != «TEXT» && elemtype != «TEXTAREA» && elemtype != «INPUT» && elemtype != «PASSWORD» && elemtype != «SELECT») { //alert(navigator.userAgent.indexOf(‘MSIE’)); //if (smessage !== «») show_wpcp_message(smessage); return false; } } function reEnable() { return true; } document.onkeydown = disableEnterKey; document.onselectstart = disable_copy_ie; if(navigator.userAgent.indexOf(‘MSIE’)==1) { document.onmousedown = disable_copy; document.onclick = reEnable; } function disableSelection(target) { //For IE This code will work if (typeof target.onselectstart!=«undefined») target.onselectstart = disable_copy_ie; //For Firefox This code will work else if (typeof target.style.MozUserSelect!=«undefined») {target.style.MozUserSelect=«none»;} //All other (ie: Opera) This code will work else target.onmousedown=function(){return false} target.style.cursor = «default»; } //Calling the JS function directly just after body load window.onload = function(){disableSelection(document.body);}; //]]> </script> <?php } //———————————————————————— function alert_message() { global $wccp_settings; ?> <div idwpcp-error-message» classmsgmsg-box-wpcp warning-wpcp hideme«><span>error: </span><?php echo $wccp_settings[‘smessage’];?></div> <script> var timeout_result; function show_wpcp_message(smessage) { if (smessage !== «») { var smessage_text = ‘<span>Alert: </span>’+smessage; document.getElementById(«wpcp-error-message»).innerHTML = smessage_text; document.getElementById(«wpcp-error-message»).className = «msgmsg-box-wpcp warning-wpcp showme»; clearTimeout(timeout_result); timeout_result = setTimeout(hide_message, 3000); } } function hide_message() { document.getElementById(«wpcp-error-message»).className = «msgmsg-box-wpcp warning-wpcp hideme»; } </script> <style typetext/css«> #wpcp-error-message { direction: ltr; text-align: center; transition: opacity 900ms ease 0s; z-index: 99999999; } .hideme { opacity:0; visibility: hidden; } .showme { opacity:1; visibility: visible; } .msgmsg-box-wpcp { border-radius: 10px; color: #555; font-family: Tahoma; font-size: 11px; margin: 10px; padding: 10px 36px; position: fixed; width: 255px; top: 50%; left: 50%; margin-top: -10px; margin-left: -130px; -webkit-box-shadow: 0px 0px 34px 2px rgba(242,191,191,1); -moz-box-shadow: 0px 0px 34px 2px rgba(242,191,191,1); box-shadow: 0px 0px 34px 2px rgba(242,191,191,1); } .msgmsg-box-wpcp span { font-weight:bold; text-transform:uppercase; } .error-wpcp {<?php global $pluginsurl; ?> background:#ffecec url(<?php echo $pluginsurl ?>/images/error.png’) no-repeat 10px 50%; border:1px solid #f5aca6; } .success { background:#e9ffd9 url(<?php echo $pluginsurl ?>/images/success.png’) no-repeat 10px 50%; border:1px solid #a6ca8a; } .warning-wpcp { background:#ffecec url(<?php echo $pluginsurl ?>/images/warning.png’) no-repeat 10px 50%; border:1px solid #f5aca6; } .notice { background:#e3f7fc url(<?php echo $pluginsurl ?>/images/notice.png’) no-repeat 10px 50%; border:1px solid #8ed9f6; } </style> <?php } //———————————————————————— function wccp_css_script() { ?> <style> .unselectable { -moz-user-select:none; -webkit-user-select:none; cursor: default; } html { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-tap-highlight-color: rgba(0,0,0,0); } </style> <script idwpcp_css_disable_selection» typetext/javascript«> var e = document.getElementsByTagName(‘body’)[0]; e.setAttribute(‘unselectable’,on); </script> <?php } //———————————————————————— function wccp_css_settings() { global $wccp_settings; if(!current_user_can( ‘manage_options’ ) || (current_user_can( ‘manage_options’ ) && $wccp_settings[‘exclude_admin_from_protection’] == ‘No’)){ if (((is_home() || is_front_page() || is_archive() || is_post_type_archive() || is_404() || is_attachment() || is_author() || is_category() || is_feed()) && $wccp_settings[‘home_css_protection’] == ‘Enabled’)) { wccp_css_script(); return; } if (is_single() && $wccp_settings[‘posts_css_protection’] == ‘Enabled’) { wccp_css_script(); return; } if (is_page() && !is_front_page() && $wccp_settings[‘pages_css_protection’] == ‘Enabled’) { wccp_css_script(); return; } } } //———————————————————————— function wccp_main_settings() { global $wccp_settings; if(!current_user_can( ‘manage_options’ ) || (current_user_can( ‘manage_options’ ) && $wccp_settings[‘exclude_admin_from_protection’] == ‘No’)){ if (((is_home() || is_front_page() || is_archive() || is_post_type_archive() || is_404() || is_attachment() || is_author() || is_category() || is_feed() || is_search()) && $wccp_settings[‘home_page_protection’] == ‘Enabled’)) { wpcp_disable_selection(); return; } if (is_single() && $wccp_settings[‘single_posts_protection’] == ‘Enabled’) { wpcp_disable_selection(); return; } if (is_page() && !is_front_page() && $wccp_settings[‘page_protection’] == ‘Enabled’) { wpcp_disable_selection(); return; } } } //———————————————————————— function right_click_premium_settings() { global $wccp_settings; if(!current_user_can( ‘manage_options’ ) || (current_user_can( ‘manage_options’ ) && $wccp_settings[‘exclude_admin_from_protection’] == ‘No’)){ if (((is_home() || is_front_page() || is_archive() || is_post_type_archive() || is_404() || is_attachment() || is_author() || is_category() || is_feed()) && $wccp_settings[‘right_click_protection_homepage’] == ‘checked’)) { wpcp_disable_Right_Click(); return; } if (is_single() && $wccp_settings[‘right_click_protection_posts’] == ‘checked’) { wpcp_disable_Right_Click(); return; } if (is_page() && !is_front_page() && $wccp_settings[‘right_click_protection_posts’] == ‘checked’) { wpcp_disable_Right_Click(); return; } } } //———————————————————————— // Add specific CSS class by filter function wccp_class_names($classes) { global $wccp_settings; if(!current_user_can( ‘manage_options’ ) || (current_user_can( ‘manage_options’ ) && $wccp_settings[‘exclude_admin_from_protection’] == ‘No’)) { if ($wccp_settings[‘home_css_protection’] == ‘Enabled’ || $wccp_settings[‘posts_css_protection’] == ‘Enabled’ || $wccp_settings[‘pages_css_protection’] == ‘Enabled’) { $classes[] = ‘unselectable’; return $classes; } else { $classes[] = ‘none’; return $classes; } }else { $classes[] = ‘none’; return $classes; } } //———————————————————————— add_action(‘wp_head’,‘wccp_main_settings’); add_action(‘wp_head’,‘right_click_premium_settings’); add_action(‘wp_head’,‘wccp_css_settings’); add_action(‘wp_footer’,‘alert_message’); add_filter(‘body_class’,‘wccp_class_names’); //——————————————————-Function to read options from the database function wccp_read_options() { if (get_option(‘wccp_settings’)) $wccp_settings = get_option(‘wccp_settings’); else $wccp_settings = wccp_default_options(); return $wccp_settings; } //——————————————————-Set default values to the array function wccp_default_options(){ $pluginsurl = plugins_url( », __FILE__ ); $wccp_settings = Array ( ‘single_posts_protection’ => ‘Enabled’, // prevent content copy, take 3 parameters, 1.content: to prevent content copy only 2.all 3.none ‘home_page_protection’ => ‘Enabled’, // ‘page_protection’ => ‘Enabled’, // ‘right_click_protection_posts’ => ‘checked’, // ‘right_click_protection_homepage’ => ‘checked’, // ‘right_click_protection_pages’ => ‘checked’, // ‘home_css_protection’ => ‘Enabled’, // premium option ‘posts_css_protection’ => ‘Enabled’, // premium option ‘pages_css_protection’ => ‘Enabled’, // premium option ‘exclude_admin_from_protection’ => ‘No’, ‘img’ => », ‘a’ => », ‘pb’ => », ‘input’ => », ‘h’ => », ‘textarea’ => », ’emptyspaces’ => », ‘smessage’ => ‘Content is protected !!’, ‘alert_msg_img’ => », ‘alert_msg_a’ => », ‘alert_msg_pb’ => », ‘alert_msg_input’ => », ‘alert_msg_h’ => », ‘alert_msg_textarea’ => », ‘alert_msg_emptyspaces’ => » ); return $wccp_settings; } //———————————————Add button to the admin bar add_action(‘admin_bar_menu’, ‘add_items’, 40); function add_items($admin_bar) { global $pluginsurl; $wccpadminurl = get_admin_url(); //The properties of the new item. Read More about the missing ‘parent’ parameter below $args = array( ‘id’ => ‘Protection’, ‘title’ => __(‘<img src=»‘.$pluginsurl.‘/images/adminbaricon.png» style=»vertical-align:middle;margin-right:5px;width: 22px;» alt=»Protection» title=»Protection» />Protection’ ), ‘href’ => $wccpadminurl.‘options-general.php?page=wccpoptionspro’, ‘meta’ => array(‘title’ => __(‘WP Content Copy Protection’),) ); //This is where the magic works. $admin_bar->add_menu( $args); } //—————————————- Add plugin settings link to Plugins page function plugin_add_settings_link( $links ) { $settings_link = ‘<a href=»options-general.php?page=wccpoptionspro»>’ . __( ‘Settings’ ) . ‘</a>’; array_push( $links, $settings_link ); return $links; } $plugin = plugin_basename( __FILE__ ); add_filter( «plugin_action_links_$plugin«, ‘plugin_add_settings_link’ ); //———————————————————————— function wccp_options_page_pro() { include ‘admin-core.php’; } //———————————————————————— //Make a WordPress function to add to the correct menu. function wpccp_after_plugin_row( $plugin_file, $plugin_data, $status ) { $class_name = $plugin_data[‘slug’]; $p_url = «http://www.wp-buy.com/product/wp-content-copy-protection-pro/«; echo ‘<tr id=»‘ .$class_name. ‘-plugin-update-tr» class=»plugin-update-tr active»>’; echo ‘<th class=»check-column» scope=»row»></th>’; echo ‘<td colspan=»3″ class=»plugin-update»>’; echo ‘<div class=»update-message» style=»background:#FFFF99;margin-left:1px;» >’; echo ‘You are running WP Content Copy Protection & No Right Click (free). To get more features, you can <a href=»‘ .$p_url. ‘» target=»_blank»><strong>Upgrade Now</strong></a>.’; echo ‘</div>’; echo ‘</td>’; echo ‘</tr>’; } $path = plugin_basename( __FILE__ ); add_action(«after_plugin_row_{$path}», wpccp_after_plugin_row, 10, 3 ); //———————————————————————— //Make our function to call the WordPress function to add to the correct menu. function wccp_add_options() { add_options_page(‘WP Content Copy Protection’, ‘WP Content Copy Protection’, ‘manage_options’, ‘wccpoptionspro’, ‘wccp_options_page_pro’); } //First use the add_action to add onto the WordPress menu. add_action(‘admin_menu’, ‘wccp_add_options’); ?>
  1. <script id=«wpcp_disable_selection» type=«text/javascript»>

  2. //<![CDATA[

  3. var image_save_msg=’You Can Not Save images!’;

  4.     var no_menu_msg=’Context Menu disabled!’;

  5.     var smessage = «Content is protected !!»;

  6. function disableEnterKey(e){

  7.     if (e.ctrlKey){

  8.     var key;

  9.     if(window.event)

  10.          key = window.event.keyCode;     //IE

  11.     else

  12.          key = e.which;     //firefox (97)

  13.    //if (key != 17) alert(key);

  14.     if (key == 97 || key == 65 || key == 67 || key == 99 || key == 88 || key == 120 || key == 26 || key == 85  || key == 86 || key == 83 || key == 43)

  15.     {

  16.          show_wpcp_message(‘You are not allowed to copy content or view source’);

  17.          return false;

  18.     }else

  19.         return true;

  20.     }

  21. }

  22. function disable_copy(e){  

  23.     var elemtype = e.target.nodeName;

  24.     var isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);

  25.     elemtype = elemtype.toUpperCase();

  26.     var checker_IMG = »;

  27.     if (elemtype == «IMG» && checker_IMG == ‘checked’ && e.detail >= 2) {show_wpcp_message(alertMsg_IMG);return false;}

  28.     if (elemtype != «TEXT» && elemtype != «TEXTAREA» && elemtype != «INPUT» && elemtype != «PASSWORD» && elemtype != «SELECT» && elemtype != «OPTION» && elemtype != «EMBED»)

  29.     {

  30.         if (smessage !== «» && e.detail == 2)

  31.             show_wpcp_message(smessage);

  32.         if (isSafari)

  33.             return true;

  34.         else

  35.             return false;

  36.     }  

  37. }

  38. function disable_copy_ie(){

  39.     var elemtype = window.event.srcElement.nodeName;

  40.     elemtype = elemtype.toUpperCase();

  41.     if (elemtype == «IMG») {show_wpcp_message(alertMsg_IMG);return false;}

  42.     if (elemtype != «TEXT» && elemtype != «TEXTAREA» && elemtype != «INPUT» && elemtype != «PASSWORD» && elemtype != «SELECT» && elemtype != «OPTION» && elemtype != «EMBED»)

  43.     {

  44.         //alert(navigator.userAgent.indexOf(‘MSIE’));

  45.             //if (smessage !== «») show_wpcp_message(smessage);

  46.         return false;

  47.     }

  48. }  

  49. function reEnable(){

  50.     return true;

  51. }

  52. document.onkeydown = disableEnterKey;

  53. document.onselectstart = disable_copy_ie;

  54. if(navigator.userAgent.indexOf(‘MSIE’)==-1){

  55.     document.onmousedown = disable_copy;

  56.     document.onclick = reEnable;

  57. }

  58. function disableSelection(target){

  59.    //For IE This code will work

  60.    if (typeof target.onselectstart!=»undefined»)

  61.    target.onselectstart = disable_copy_ie;

  62.    //For Firefox This code will work

  63.    else if (typeof target.style.MozUserSelect!=»undefined»)

  64.    {target.style.MozUserSelect=»none»;}

  65.    //All other  (ie: Opera) This code will work

  66.    else

  67.    target.onmousedown=function(){return false}

  68.    target.style.cursor = «default»;

  69. }

  70. //Calling the JS function directly just after body load

  71. window.onload = function(){disableSelection(document.body);};

  72. //]]>

  73. </script>

  74. <script id=«wpcp_disable_Right_Click» type=«text/javascript»>

  75.     //<![CDATA[

  76.     document.ondragstart = function() { return false;}

  77.     /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  78.     Disable context menu on images by GreenLava Version 1.0

  79.     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */

  80.         function nocontext(e) {

  81.            return false;

  82.         }

  83.         document.oncontextmenu = nocontext;

  84.     //]]>

  85. </script>

  86. <style>

  87. .unselectable {

  88.     -moz-user-select:none;

  89.     -webkit-user-select:none;

  90.     cursor: default;

  91. }

  92. html{

  93.     -webkit-touch-callout: none;

  94.     -webkit-user-select: none;

  95.     -khtml-user-select: none;

  96.     -moz-user-select: none;

  97.     -ms-user-select: none;

  98.     user-select: none;

  99.     -webkit-tap-highlight-color: rgba(0,0,0,0);

  100. }

  101. </style>

  102. <script id=«wpcp_css_disable_selection» type=«text/javascript»>

  103.     var e = document.getElementsByTagName(‘body’)[0];

  104.     if(e) {

  105.         e.setAttribute(‘unselectable’,on);

  106.     }

  107. </script>

  108. <div id=«wpcp-error-message» class=«msgmsg-box-wpcp warning-wpcp hideme»><span>error: </span>Content is protected !!</div>

  109. <script>

  110.     var timeout_result;

  111.     function show_wpcp_message(smessage)

  112.     {

  113.         if (smessage !== «»)

  114.             {

  115.             var smessage_text = ‘<span>Alert: </span>‘+smessage;

  116.             document.getElementById(«wpcp-error-message»).innerHTML = smessage_text;

  117.             document.getElementById(«wpcp-error-message»).className = «msgmsg-box-wpcp warning-wpcp showme»;

  118.             clearTimeout(timeout_result);

  119.             timeout_result = setTimeout(hide_message, 3000);

  120.             }

  121.     }

  122.     function hide_message()

  123.     {

  124.         document.getElementById(«wpcp-error-message»).className = «msgmsg-box-wpcp warning-wpcp hideme»;

  125.     }

  126. </script>

  127. <style type=«text/css»>

  128.     #wpcp-error-message {

  129.         direction: ltr;

  130.         text-align: center;

  131.         transition: opacity 900ms ease 0s;

  132.         z-index: 99999999;

  133.     }

  134.     .hideme {

  135.         opacity:0;

  136.         visibility: hidden;

  137.     }

  138.     .showme {

  139.         opacity:1;

  140.         visibility: visible;

  141.     }

  142.     .msgmsg-box-wpcp {

  143.         border-radius: 10px;

  144.         color: #555;

  145.         font-family: Tahoma;

  146.         font-size: 11px;

  147.         margin: 10px;

  148.         padding: 10px 36px;

  149.         position: fixed;

  150.         width: 255px;

  151.         top: 50%;

  152.         left: 50%;

  153.         margin-top: -10px;

  154.         margin-left: -130px;

  155.         -webkit-box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);

  156.         -moz-box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);

  157.         box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);

  158.     }

  159.     .msgmsg-box-wpcp span {

  160.         font-weight:bold;

  161.         text-transform:uppercase;

  162.     }

  163.     .error-wpcp {       background:#ffecec url(‘http://www.urbane.co.id/wp-content/plugins/wp-content-copy-protector/images/error.png’) no-repeat 10px 50%;

  164.         border:1px solid #f5aca6;

  165.     }

  166.     .success {

  167.         background:#e9ffd9 url(‘http://www.urbane.co.id/wp-content/plugins/wp-content-copy-protector/images/success.png’) no-repeat 10px 50%;

  168.         border:1px solid #a6ca8a;

  169.     }

  170.     .warning-wpcp {

  171.         background:#ffecec url(‘http://www.urbane.co.id/wp-content/plugins/wp-content-copy-protector/images/warning.png’) no-repeat 10px 50%;

  172.         border:1px solid #f5aca6;

  173.     }

  174.     .notice {

  175.         background:#e3f7fc url(‘http://www.urbane.co.id/wp-content/plugins/wp-content-copy-protector/images/notice.png’) no-repeat 10px 50%;

  176.         border:1px solid #8ed9f6;

  177.     }

  178. </style>

Nikolai Iordanov

unread,

Jan 3, 2004, 8:53:30 PM1/3/04

to

After enable-security-ldap on WPS 5.0, using Domino 5.0.12 for LDAP and DB2
instead of cloudspace
all Content Publising pages give Error 403: AuthorizationFailed, when logged
in as wpsadmin.

Restarted servers, can login in to the Admin Console, SSO works fine and all
other pages including Documents are working.

Does anyone know how to solve it ?
Should LDAP look aside be enabled?

The WPCP Users, Project Lead, Domain Expert, WPCP Admins, Content
Contrubutor, Content Publisher gourps also disappeared, should they be
recreated in LDAP?

Did a serch on the support website and new group but could not find how to
resolve it.
In Log Analyser the only clue is:

RecordId: Rec_268
ComponentId: Application Server
ProcessId: 1976
ThreadId: 55732350
SourceId: com.ibm.ws.security.web.WebCollaborator
ClassName:
MethodName:
Manufacturer: IBM
Product: WebSphere
Version: Platform 5.0 [BASE 5.0.1 ptf1M0314.04] [PME 5.0.1
ptf10316.01]
ServerName: hostnamehostnameWebSphere_Portal
TimeStamp: 1/3/2004 16:14:34.875000000
UnitOfWork:
Severity: 3
Category: AUDIT
PrimaryMessage: SECJ0129E: Authorization failed for wpsadmin while invoking
GET on default_host:/wps/PA_1_0_4J/main/index_main.jsp, Authorization
failed, Not granted any of the required roles: All Role
ExtendedMessage:
RawData:

Regards,
Nikolai

Bill

unread,

Jan 5, 2004, 9:05:32 PM1/5/04

to

Nikolai,

I had the same error. This is direclty from IBM Portal Level 2
support:

«This is a common problem that I’ve seen with people who enable
security for their WAS/Portal Setups. The problem comes from Portal
creating the EAR file structure, and not including security mappings
for the authorportlets. Attached are two files, which should be
placed in your «<WAS>configcells<node>applicationsauthorportlets_PA_X_X_XX.eardeploymentsauthorportlets_PA_X_X_XXMETA-INF»

and

«<WPS>installedApps/authorportlets_PA_X_X_XX.earMETA-INF»

directories. Before you put them in there, however, edit the
application.xml file. In there, you’ll see a tag for the context
root, and the one in the file will literally say «wps/PA_X_X_XX». You
need to update that to have your real context root (this will be the
same as the X_X_XX’s in the directory names. Once that’s done,
restart your WebSphere_Portal application server and the portlets
should work.»

Bill

«Nikolai Iordanov» <nip…@blueyonder.co.uk> wrote in message news:<bt6vim$78r0$1…@news.boulder.ibm.com>…

Nikolai Iordanov

unread,

Jan 6, 2004, 1:10:00 AM1/6/04

to

Solved it. authorportlets_PA_1_0_4J didn’t have the security roles defined
in application.xml and was missing ibm-application-bnd.xmi, probably because
of a patch update, exported ear from was, added roles and copied the bnd
file from a previous install, redeployed, changed starting weight to 100 and
Class loader module to Parent Last and all is happy.

Regards,
Nikolai

JANS Daniel

unread,

Jan 26, 2004, 6:54:28 PM1/26/04

to

Thanks … Had the same problem and your solution fixes the problem …

���� ���� ���� �� � ������������ ���� � ������� � ��� — 5 +/-, ����� ���-7, 3, 1 ( �� �� ������ �� 1 ������ �������). ������ ���� ��������� �� ����� �� ����, � ������, �� �� ������ 8 �����. � ��� �� ���� 13 �����, ������ ���� ������. ������ ��������, ��� �� ���� ������ �����������? ��� � ����, �����, �� �����…. �������� ������ ��� ���������, ��� ����� ������� �� ������������ «�����». � ���� ��������� 74%.
�����-�� ���� ����������� �� ������ ����-������� ����� � «�����» �����. (�� ��� ������� ����� �������� ;-))
���� ������� ����������� ���������� ����� ������ ��� 100% ������������.
����������, �������� �� �����, ����� ������-��� ���� ������������ �� ��������� �������.
������ ������� ����

� ������������ «���������» ����� � ����������� ���������� ���� ���������….

� ����� �� ����� ��� �������� � ������������ ������?

��������, ���������� :)
�� ������� ����, ���� ����������� ���������� ���������….
� ��� ��� ���� �����������….

��� ��� �� ����, ����� �� �� ���

:-D ��, �� � ����� ������� — �������…
� ������ ������� — ��������� ����� ���� ��� �� ������ �� �����…
� ��� � ���� ��-�� ���������� ��������� «� ��� �� ���� 13 �����, ������ ���� ������» ���������

����� ���.
��� �� ����.
1-2-3-4-5 ����� +-
����� ����� 9.11.16 ��� ���-1

18 ������ — 7
21 ������ — 8
22 ������ — 9
23 ������ — 12
24 ������ -15 !!!

�������� ������� �� �����. ���� ������������ — 78 %
19% ����� � ������� � ���������� ����� �������� � ������ ����� 1�1.
����� ������ — ������� ������ ��� �� �����, ��� ��� ��������� !!!

������ �� ����. ���� �� ������ �������� 13 ������ 2016 ����.
���� ������� ����������� ���������� ����� �� 100% ������������.
�������� � ���������� ������ � ��������� ��� ����� ��������� � �������.
��. ���������� ����������� ������� �� ���� ������� ���������

nnksa �����(�)
�������� � ���������� ������ � ��������� ��� ����� ��������� � �������.

�ģ�-� *drink*

nnksa �����(�)
��. ���������� ����������� ������� �� ���� ������� ���������

�� ��� ������ ������ ������ ���� ��� ��? … ��� ����� �������� �������� �ӣ ����� :)

��� �������� new-jute (�����) ru �������� �� �����

nnksa �����(�)
��� �������� new-jute (�����) ru �������� �� �����

��������� F12 ��� ������ ���������� ��������� js � �������� � ��������� �ӣ, ��� ���� ))
��������, ������������� 100% ������ �� �����������, �� ����������.

��� ����� �� ���������� �����.
������, ��� �� ��� ��������� ����� �� � �����, ��� ���� ��.
� ��� �12 ���� �� �������…
� ��������� JS — ������ � �������� ������ �����

��� �� ������ �� ����������� — www.new-jute.ru/artmebius/content_defender/script.js

��� ����� ��� ���������� ���������:
——————————————

#wpcp-error-message {
direction: ltr;
text-align: center;
transition: opacity 900ms ease 0s;
z-index: 99999999;
}
.hideme {
opacity:0;
visibility: hidden;
}
.msgmsg-box-wpcp {
border-radius: 10px;
color: #555;
font-family: Tahoma;
font-size: 11px;
margin: 10px;
padding: 10px 36px;
position: fixed;
width: 255px;
top: 50%;
left: 50%;
margin-top: -10px;
margin-left: -130px;
-webkit-box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);
-moz-box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);
box-shadow: 0px 0px 34px 2px rgba(242,191,191,1);
}
.msgmsg-box-wpcp span {
font-weight:bold;
text-transform:uppercase;
}
.warning-wpcp {
background:#ffecec;
border:1px solid #f5aca6;
}

—————————-
������ � ���� ))

��� �������� ��� ��� ��������, ������ �� ������� ��� ��� ��� �������)

����� —
html
{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}

�������, �� �������� �������..

�� �� ���-�� ����� abby fine reader ���������������, ���� ������ ��������� ������ =))

���� �� ������� �� ����� ������ :)

�� ���

<script type=″text/javascript″>
document.ondragstart = noselect;
// ������ �� ��������������
document.onselectstart = noselect;
// ������ �� ��������� ��������� ��������
document.oncontextmenu = noselect;
// ������ �� ��������� ������������ ����
function noselect() {return false;}
</script>

nnksa �����(�)
���������� �����

�� �� ����� �������������. )

�� � ���� ���أ���, 22-23 ��� ������� ��. ��������� ����� �������, � ��� ����� ��������� �������� ������. � ��� ������� ���� ��������.

Понравилась статья? Поделить с друзьями:
  • Wp ошибка error establishing a database connection
  • Wp send json error
  • Wp login php internal server error
  • Wp login php error 500
  • Wp http error curl error 28 connection timed out after 10000 milliseconds