Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:49:38-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13025 2011-12-20T09:49:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=57735#p57735 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: December 20, 2011, 9:49 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:49 am


]]>
2011-12-07T01:02:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=55417#p55417 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: December 7, 2011, 1:02 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:02 am


]]>
2011-11-05T19:25:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=51791#p51791 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: November 5, 2011, 8:25 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:25 pm


]]>
2011-10-29T20:34:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=49886#p49886 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: October 29, 2011, 9:34 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:34 pm


]]>
2011-10-17T15:38:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=47680#p47680 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: October 17, 2011, 1:38 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:38 pm


]]>
2011-10-11T14:34:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=46080#p46080 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: October 11, 2011, 12:34 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:34 pm


]]>
2011-10-03T15:47:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=44211#p44211 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: October 3, 2011, 1:47 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:47 pm


]]>
2011-10-03T03:40:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=42918#p42918 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: October 3, 2011, 1:40 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:40 am


]]>
2011-09-27T05:25:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=41164#p41164 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: September 27, 2011, 3:25 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:25 am


]]>
2011-09-26T21:02:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=39920#p39920 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: September 26, 2011, 7:03 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:02 pm


]]>
2011-09-17T16:19:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=38064#p38064 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: September 17, 2011, 2:19 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:19 pm


]]>
2011-09-14T01:27:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=36645#p36645 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: September 13, 2011, 11:27 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:27 am


]]>
2011-09-13T12:02:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=35373#p35373 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: September 13, 2011, 10:02 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:02 pm


]]>
2011-08-15T14:12:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=31480#p31480 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: August 15, 2011, 3:12 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\meta-box-security.inc.php ?php /** * Security meta box. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Meta_Boxes * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_meta_box_security" ) ) { /** * Security meta box. * * @package s2Member\Meta_Boxes * @since 3.5 */ class c_ws_plugin__s2member_meta_box_security { /** * Adds security meta box to Post/Page editing stations. * * @package s2Member\Meta_Boxes * @since 3.5 * * @param obj $post Post/Page object. * @return null */ public static function security_meta_box ( $post = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_security_meta_box" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_object ( $post ) && ( $post_id = $post - ID ) && ( ( $post - post_type === "page" && current_user_can ( "edit_page" , $post_id ) ) || current_user_can ( "edit_post" , $post_id ) ) ) { if ( $post - post_type === "page" && ( $page_id = $post_id ) ) /* OK. So we're dealing with a Page classification. */ { if ( ! in_array ( $page_id , array_merge ( array ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "file_download_limit_exceeded_page" ] ) , preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "specific_ids" ] ) ) ) ) { echo 'input type="hidden" name="ws_plugin__s2member_security_meta_box_save" id="ws-plugin--s2member-security-meta-box-save" value="' . esc_attr ( wp_create_nonce ( "ws-plugin--s2member-security-meta-box-save" ) ) . '" /' . "\n" ; echo 'input type="hidden" name="ws_plugin__s2member_security_meta_box_save_id" id="ws-plugin--s2member-security-meta-box-save-id" value="' . esc_attr ( $page_id ) . '" /' . "\n" ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $pages [ $n ] = array_unique ( preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_pages" ] ) ) ; /**/ echo 'p style="margin-left:2px;"strongPage Level Restriction?/strong/p' . "\n" ; echo 'label class="screen-reader-text" for="ws-plugin--s2member-security-meta-box-level"Add Level Restriction?/label' . "\n" ; echo 'select name="ws_plugin__s2member_security_meta_box_level" id="ws-plugin--s2member-security-meta-box-level" style="width:99%;"' . "\n" ; echo 'option value=""/option' . "\n" ; /* By default, we allow public access to any Post/Page. */ /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) echo ( $pages [ $n ] !== array ( "all" ) ) ? 'option value="' . $n . '"' . ( ( in_array ( $page_id , $pages [ $n ] ) ) ? ' selected="selected"' : '' ) . '' . ( ( $n === $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ) ? 'Require Highest Level #' . $n : 'Require Level #' . $n . ' ( or higher )' ) . '/option' . "\n" : 'option value="" disabled="disabled"Level #' . $n . ' ( already protects "all" Pages )/option' . "\n" ; /**/ echo '/selectbr /small* see: codeGeneral Options - Page Level Access/code/small' . "\n" ; /**/ if ( ! is_multisite ( ) || !c_ws_plugin__s2member_utils_conds:: is_multisite_farm ( ) || is_main_site ( ) ) /* ^ Will change once Custom Capabilities are compatible with a Blog Farm. */ { echo 'p style="margin-top:15px; margin-left:2px;"strongRequire Custom Capabilities?/strong/p' . "\n" ; echo 'label class="screen-reader-text" for="ws-plugin--s2member-security-meta-box-ccaps"Custom Capabilities?/label' . "\n" ; echo 'input type="text" name="ws_plugin__s2member_security_meta_box_ccaps" id="ws-plugin--s2member-security-meta-box-ccaps" value="' . format_to_edit ( trim ( implode ( "," , ( array ) get_post_meta ( $page_id , "s2member_ccaps_req" , true ) ) ) ) . '" onkeyup="if(this.value.match(/[^a-z_0-9,]/)) this.value = jQuery.trim (jQuery.trim (this.value).replace (/[ \-]/g, \'_\').replace (/[^a-z_0-9,]/gi, \'\').toLowerCase ());" style="width:99%;" /' . "\n" ; echo 'br /small* see: codeAPI Scripting - Custom Capabilities/code/small' . "\n" ; } } /**/ else if ( $page_id == $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ) echo 'This Page is your:br /strongMembership Options Page/strongbr /( always publicly available )' ; /**/ else if ( $page_id == $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ) echo 'This Page is your:br /strongLogin Welcome Page/strongbr /( automatically guarded by s2Member )' ; /**/ else if ( $page_id == $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "file_download_limit_exceeded_page" ] ) echo 'This Page is your:br /strongDownload Limit Exceeded Page/strongbr /( automatically guarded by s2Member )' ; /**/ else if ( in_array ( $page_id , preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "specific_ids" ] ) ) ) echo 'This Page is a:br /strongSpecific Post/Page for sale/strongbr /( already guarded by s2Member )' ; } else /* Otherwise, we assume this is a Post, or possibly a Custom Post Type. It's NOT a Page. */ { if ( ! in_array ( $post_id , preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "specific_ids" ] ) ) ) { echo 'input type="hidden" name="ws_plugin__s2member_security_meta_box_save" id="ws-plugin--s2member-security-meta-box-save" value="' . esc_attr ( wp_create_nonce ( "ws-plugin--s2member-security-meta-box-save" ) ) . '" /' . "\n" ; echo 'input type="hidden" name="ws_plugin__s2member_security_meta_box_save_id" id="ws-plugin--s2member-security-meta-box-save-id" value="' . esc_attr ( $post_id ) . '" /' . "\n" ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $posts [ $n ] = array_unique ( preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_posts" ] ) ) ; /**/ echo 'p style="margin-left:2px;"strongPost Level Restriction?/strong/p' . "\n" ; echo 'label class="screen-reader-text" for="ws-plugin--s2member-security-meta-box-level"Add Level Restriction?/label' . "\n" ; echo 'select name="ws_plugin__s2member_security_meta_box_level" id="ws-plugin--s2member-security-meta-box-level" style="width:99%;"' . "\n" ; echo 'option value=""/option' . "\n" ; /* By default, we allow public access to any Post/Page. */ /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) echo ( $posts [ $n ] !== array ( "all" ) ) ? 'option value="' . $n . '"' . ( ( in_array ( $post_id , $posts [ $n ] ) ) ? ' selected="selected"' : '' ) . '' . ( ( $n === $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ) ? 'Require Highest Level #' . $n : 'Require Level #' . $n . ' ( or higher )' ) . '/option' . "\n" : 'option value="" disabled="disabled"Level #' . $n . ' ( already protects "all" Posts )/option' . "\n" ; /**/ echo '/selectbr /small* see: codeGeneral Options - Post Level Access/code/small' . "\n" ; /**/ if ( ! is_multisite ( ) || !c_ws_plugin__s2member_utils_conds:: is_multisite_farm ( ) || is_main_site ( ) ) /* ^ Will change once Custom Capabilities are compatible with a Blog Farm. */ { echo 'p style="margin-top:15px; margin-left:2px;"strongRequire Custom Capabilities?/strong/p' . "\n" ; echo 'label class="screen-reader-text" for="ws-plugin--s2member-security-meta-box-ccaps"Custom Capabilities?/label' . "\n" ; echo 'input type="text" name="ws_plugin__s2member_security_meta_box_ccaps" id="ws-plugin--s2member-security-meta-box-ccaps" value="' . format_to_edit ( trim ( implode ( "," , ( array ) get_post_meta ( $post_id , "s2member_ccaps_req" , true ) ) ) ) . '" onkeyup="if(this.value.match(/[^a-z_0-9,]/)) this.value = jQuery.trim (jQuery.trim (this.value).replace (/[ \-]/g, \'_\').replace (/[^a-z_0-9,]/gi, \'\').toLowerCase ());" style="width:99%;" /' . "\n" ; echo 'br /small* see: codeAPI Scripting - Custom Capabilities/code/small' . "\n" ; } } /**/ else if ( in_array ( $post_id , preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "specific_ids" ] ) ) ) echo 'This Post is a:br /strongSpecific Post/Page for sale/strongbr /( already guarded by s2Member )' ; } } /**/ do_action ( "ws_plugin__s2member_after_security_meta_box" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\meta-box-security.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 2:12 pm


]]>
2011-07-11T17:28:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=27688#p27688 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: July 11, 2011, 6:28 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\meta-box-security.inc.php ?php /** * Security meta box. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Meta_Boxes * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_meta_box_security" ) ) { /** * Security meta box. * * @package s2Member\Meta_Boxes * @since 3.5 */ class c_ws_plugin__s2member_meta_box_security { /** * Adds security meta box to Post/Page editing stations. * * @package s2Member\Meta_Boxes * @since 3.5 * * @param obj $post Post/Page object. * @return null */ public static function security_meta_box ( $post = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_security_meta_box" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_object ( $post ) && ( $post_id = $post - ID ) && ( ( $post - post_type === "page" && current_user_can ( "edit_page" , $post_id ) ) || current_user_can ( "edit_post" , $post_id ) ) ) { if ( $post - post_type === "page" && ( $page_id = $post_id ) ) /* OK. So we're dealing with a Page classification. */ { if ( ! in_array ( $page_id , array_merge ( array ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "file_download_limit_exceeded_page" ] ) , preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "specific_ids" ] ) ) ) ) { echo 'input type="hidden" name="ws_plugin__s2member_security_meta_box_save" id="ws-plugin--s2member-security-meta-box-save" value="' . esc_attr ( wp_create_nonce ( "ws-plugin--s2member-security-meta-box-save" ) ) . '" /' . "\n" ; echo 'input type="hidden" name="ws_plugin__s2member_security_meta_box_save_id" id="ws-plugin--s2member-security-meta-box-save-id" value="' . esc_attr ( $page_id ) . '" /' . "\n" ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $pages [ $n ] = array_unique ( preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_pages" ] ) ) ; /**/ echo 'p style="margin-left:2px;"strongPage Level Restriction?/strong/p' . "\n" ; echo 'label class="screen-reader-text" for="ws-plugin--s2member-security-meta-box-level"Add Level Restriction?/label' . "\n" ; echo 'select name="ws_plugin__s2member_security_meta_box_level" id="ws-plugin--s2member-security-meta-box-level" style="width:99%;"' . "\n" ; echo 'option value=""/option' . "\n" ; /* By default, we allow public access to any Post/Page. */ /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) echo ( $pages [ $n ] !== array ( "all" ) ) ? 'option value="' . $n . '"' . ( ( in_array ( $page_id , $pages [ $n ] ) ) ? ' selected="selected"' : '' ) . '' . ( ( $n === $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ) ? 'Require Highest Level #' . $n : 'Require Level #' . $n . ' ( or higher )' ) . '/option' . "\n" : 'option value="" disabled="disabled"Level #' . $n . ' ( already protects "all" Pages )/option' . "\n" ; /**/ echo '/selectbr /small* see: codeGeneral Options - Page Level Access/code/small' . "\n" ; /**/ if ( ! is_multisite ( ) || !c_ws_plugin__s2member_utils_conds:: is_multisite_farm ( ) || is_main_site ( ) ) /* ^ Will change once Custom Capabilities are compatible with a Blog Farm. */ { echo 'p style="margin-top:15px; margin-left:2px;"strongRequire Custom Capabilities?/strong/p' . "\n" ; echo 'label class="screen-reader-text" for="ws-plugin--s2member-security-meta-box-ccaps"Custom Capabilities?/label' . "\n" ; echo 'input type="text" name="ws_plugin__s2member_security_meta_box_ccaps" id="ws-plugin--s2member-security-meta-box-ccaps" value="' . format_to_edit ( trim ( implode ( "," , ( array ) get_post_meta ( $page_id , "s2member_ccaps_req" , true ) ) ) ) . '" onkeyup="if(this.value.match(/[^a-z_0-9,]/)) this.value = jQuery.trim (jQuery.trim (this.value).replace (/[ \-]/g, \'_\').replace (/[^A-Z_0-9,]/gi, \'\').toLowerCase ());" style="width:99%;" /' . "\n" ; echo 'br /small* see: codeAPI Scripting - Custom Capabilities/code/small' . "\n" ; } } /**/ else if ( $page_id == $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ) echo 'This Page is your:br /strongMembership Options Page/strongbr /( always publicly available )' ; /**/ else if ( $page_id == $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ) echo 'This Page is your:br /strongLogin Welcome Page/strongbr /( automatically guarded by s2Member )' ; /**/ else if ( $page_id == $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "file_download_limit_exceeded_page" ] ) echo 'This Page is your:br /strongDownload Limit Exceeded Page/strongbr /( automatically guarded by s2Member )' ; /**/ else if ( in_array ( $page_id , preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "specific_ids" ] ) ) ) echo 'This Page is a:br /strongSpecific Post/Page for sale/strongbr /( already guarded by s2Member )' ; } else /* Otherwise, we assume this is a Post, or possibly a Custom Post Type. It's NOT a Page. */ { if ( ! in_array ( $post_id , preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "specific_ids" ] ) ) ) { echo 'input type="hidden" name="ws_plugin__s2member_security_meta_box_save" id="ws-plugin--s2member-security-meta-box-save" value="' . esc_attr ( wp_create_nonce ( "ws-plugin--s2member-security-meta-box-save" ) ) . '" /' . "\n" ; echo 'input type="hidden" name="ws_plugin__s2member_security_meta_box_save_id" id="ws-plugin--s2member-security-meta-box-save-id" value="' . esc_attr ( $post_id ) . '" /' . "\n" ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) $posts [ $n ] = array_unique ( preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_posts" ] ) ) ; /**/ echo 'p style="margin-left:2px;"strongPost Level Restriction?/strong/p' . "\n" ; echo 'label class="screen-reader-text" for="ws-plugin--s2member-security-meta-box-level"Add Level Restriction?/label' . "\n" ; echo 'select name="ws_plugin__s2member_security_meta_box_level" id="ws-plugin--s2member-security-meta-box-level" style="width:99%;"' . "\n" ; echo 'option value=""/option' . "\n" ; /* By default, we allow public access to any Post/Page. */ /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) echo ( $posts [ $n ] !== array ( "all" ) ) ? 'option value="' . $n . '"' . ( ( in_array ( $post_id , $posts [ $n ] ) ) ? ' selected="selected"' : '' ) . '' . ( ( $n === $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ) ? 'Require Highest Level #' . $n : 'Require Level #' . $n . ' ( or higher )' ) . '/option' . "\n" : 'option value="" disabled="disabled"Level #' . $n . ' ( already protects "all" Posts )/option' . "\n" ; /**/ echo '/selectbr /small* see: codeGeneral Options - Post Level Access/code/small' . "\n" ; /**/ if ( ! is_multisite ( ) || !c_ws_plugin__s2member_utils_conds:: is_multisite_farm ( ) || is_main_site ( ) ) /* ^ Will change once Custom Capabilities are compatible with a Blog Farm. */ { echo 'p style="margin-top:15px; margin-left:2px;"strongRequire Custom Capabilities?/strong/p' . "\n" ; echo 'label class="screen-reader-text" for="ws-plugin--s2member-security-meta-box-ccaps"Custom Capabilities?/label' . "\n" ; echo 'input type="text" name="ws_plugin__s2member_security_meta_box_ccaps" id="ws-plugin--s2member-security-meta-box-ccaps" value="' . format_to_edit ( trim ( implode ( "," , ( array ) get_post_meta ( $post_id , "s2member_ccaps_req" , true ) ) ) ) . '" onkeyup="if(this.value.match(/[^a-z_0-9,]/)) this.value = jQuery.trim (jQuery.trim (this.value).replace (/[ \-]/g, \'_\').replace (/[^A-Z_0-9,]/gi, \'\').toLowerCase ());" style="width:99%;" /' . "\n" ; echo 'br /small* see: codeAPI Scripting - Custom Capabilities/code/small' . "\n" ; } } /**/ else if ( in_array ( $post_id , preg_split ( "/[\r \n \t\s;,]+/" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "specific_ids" ] ) ) ) echo 'This Post is a:br /strongSpecific Post/Page for sale/strongbr /( already guarded by s2Member )' ; } } /**/ do_action ( "ws_plugin__s2member_after_security_meta_box" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\meta-box-security.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:28 pm


]]>
2011-07-09T06:08:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13025&p=25320#p25320 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\meta-box-security.inc.php
Docs updated: December 20, 2011, 9:49 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:08 am


]]>