Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:49:23-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=12994 2011-12-20T09:49:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=57705#p57705 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\admin-lockouts.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:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=55387#p55387 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\admin-lockouts.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:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=51761#p51761 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\admin-lockouts.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:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=49856#p49856 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\admin-lockouts.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:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=47650#p47650 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\admin-lockouts.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:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=46050#p46050 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\admin-lockouts.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:46:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=44181#p44181 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\admin-lockouts.inc.php
Docs updated: October 3, 2011, 1:46 pm

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

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


]]>
2011-10-03T03:40:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=42888#p42888 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\admin-lockouts.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:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=41134#p41134 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\admin-lockouts.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:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=39890#p39890 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\admin-lockouts.inc.php
Docs updated: September 26, 2011, 7:02 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:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=38034#p38034 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\admin-lockouts.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:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=36615#p36615 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\admin-lockouts.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:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=35343#p35343 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\admin-lockouts.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:10:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=31450#p31450 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\admin-lockouts.inc.php
Docs updated: August 15, 2011, 3:11 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\admin-lockouts.inc.php ?php /** * Locks Users/Members out of admin panels. * * 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\Admin_Lockouts * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_admin_lockouts" ) ) { /** * Locks Users/Members out of admin panels. * * @package s2Member\Admin_Lockouts * @since 3.5 */ class c_ws_plugin__s2member_admin_lockouts { /** * Locks Users/Members out of admin panels. * * @package s2Member\Admin_Lockouts * @since 3.5 * * @attaches-to ``add_action("admin_init");`` * * @return null Or exits script execution after redirection. */ public static function admin_lockout ( ) /* Prevents admin access. */ { do_action ( "ws_plugin__s2member_before_admin_lockouts" , get_defined_vars ( ) ) ; /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "force_admin_lockouts" ] /* Now check for these WordPress® functionality Constants too. */ && ( ! defined ( "XMLRPC_REQUEST" ) || !XMLRPC_REQUEST) && ( ! defined ( "APP_REQUEST" ) || !APP_REQUEST) && ( ! defined ( "DOING_AJAX" ) || !DOING_AJAX) /**/ && ! current_user_can ( "edit_posts" ) ) /* And only if the current User is unable to edit Posts; otherwise we allow them in. */ if ( apply_filters ( "ws_plugin__s2member_admin_lockout" , true , get_defined_vars ( ) ) ) /* Give Filters a chance too. */ { if ( $special_redirection_url = c_ws_plugin__s2member_login_redirects:: login_redirection_url ( ) ) wp_redirect ( $special_redirection_url ) ; /* Special Redirection. */ /**/ else /* Else we use the Login Welcome Page configured for s2Member. */ wp_redirect ( get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /**/ do_action ( "ws_plugin__s2member_after_admin_lockouts" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Filters administrative menu bars. * * @package s2Member\Admin_Lockouts * @since 3.5 * * @attaches-to ``add_action("admin_bar_menu");`` * * @param obj $wp_admin_bar Expects the ``$wp_admin_bar``, by reference; passed in by the Action Hook. * @return null After modifying ``$wp_admin_var``. */ public static function filter_admin_menu_bar ( & $wp_admin_bar = FALSE ) { do_action ( "ws_plugin__s2member_before_filter_admin_menu_bar" , get_defined_vars ( ) ) ; /**/ if ( is_object ( $wp_admin_bar ) && $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "force_admin_lockouts" ] /* Now check functionality Constants too. */ && ( ! defined ( "XMLRPC_REQUEST" ) || !XMLRPC_REQUEST) && ( ! defined ( "APP_REQUEST" ) || !APP_REQUEST) && ( ! defined ( "DOING_AJAX" ) || !DOING_AJAX) /**/ && ! current_user_can ( "edit_posts" ) ) /* And only if the current User is unable to edit Posts; otherwise we allow them in. */ if ( apply_filters ( "ws_plugin__s2member_admin_lockout" , true , get_defined_vars ( ) ) ) /* Give Filters a chance too. */ { if ( $special_redirection_url = c_ws_plugin__s2member_login_redirects:: login_redirection_url ( ) ) $lwp = $special_redirection_url ; /**/ else /* Else we use the Login Welcome Page configured for s2Member. */ $lwp = get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ) ; /**/ if ( isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } ) ) /* Profile. */ { if ( isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "href" ] ) ) $wp_admin_bar - menu - { "my-account-with-avatar" } [ "href" ] = $lwp ; /**/ if ( isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "edit-profile" } [ "href" ] ) ) $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "edit-profile" } [ "href" ] = $lwp ; /* Backward compatibility ( {"edit-my-profile"} ), prior to WordPress® 3.2. */ if ( isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "edit-my-profile" } [ "href" ] ) ) $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "edit-my-profile" } [ "href" ] = $lwp ; /* Backward compatibility ( ["children"]-{"dashboard"} ), prior to WordPress® 3.2. */ if ( isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "dashboard" } ) ) unset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "dashboard" } ) ; } /**/ if ( isset ( $wp_admin_bar - menu - { "dashboard" } ) ) /* Dashboard menu, we don't need this. */ unset ( $wp_admin_bar - menu - { "dashboard" } ) ; /* Removes this entire menu from the bar. */ /**/ if ( isset ( $wp_admin_bar - menu - { "my-blogs" } [ "href" ] ) ) /* Deals with multiple Blog drop-down. */ { $wp_admin_bar - menu - { "my-blogs" } [ "href" ] = "#" ; /* Void this link out by converting to `#`. */ /**/ if ( isset ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] ) && is_object ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] ) ) foreach ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] as & $blog ) /* Modify other Blog links in drop-down. */ if ( is_array ( $blog ) && isset ( $blog [ "href" ] , $blog [ "children" ] ) && is_object ( $blog [ "children" ] ) ) { $blog [ "href" ] = preg_replace ( "/\/wp-admin/" , "" , $blog [ "href" ] ) ; unset ( $blog [ "children" ] ) ; /* Cause all we need is the link. */ } } } /**/ do_action ( "ws_plugin__s2member_after_filter_admin_menu_bar" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\admin-lockouts.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-11T17:27:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=27658#p27658 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\admin-lockouts.inc.php
Docs updated: July 11, 2011, 6:27 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\admin-lockouts.inc.php ?php /** * Locks Users/Members out of admin panels. * * 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\Admin_Lockouts * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_admin_lockouts" ) ) { /** * Locks Users/Members out of admin panels. * * @package s2Member\Admin_Lockouts * @since 3.5 */ class c_ws_plugin__s2member_admin_lockouts { /** * Locks Users/Members out of admin panels. * * @package s2Member\Admin_Lockouts * @since 3.5 * * @attaches-to ``add_action("admin_init");`` * * @return null Or exits script execution after redirection. */ public static function admin_lockout ( ) /* Prevents admin access. */ { do_action ( "ws_plugin__s2member_before_admin_lockouts" , get_defined_vars ( ) ) ; /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "force_admin_lockouts" ] /* Now check for these WordPress® functionality Constants too. */ && ( ! defined ( "XMLRPC_REQUEST" ) || !XMLRPC_REQUEST) && ( ! defined ( "APP_REQUEST" ) || !APP_REQUEST) && ( ! defined ( "DOING_AJAX" ) || !DOING_AJAX) /**/ && ! current_user_can ( "edit_posts" ) ) /* And only if the current User is unable to edit Posts; otherwise we allow them in. */ if ( apply_filters ( "ws_plugin__s2member_admin_lockout" , true , get_defined_vars ( ) ) ) /* Give Filters a chance too. */ { if ( $special_redirection_url = c_ws_plugin__s2member_login_redirects:: login_redirection_url ( ) ) wp_redirect ( $special_redirection_url ) ; /* Special Redirection. */ /**/ else /* Else we use the Login Welcome Page configured for s2Member. */ wp_redirect ( get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /**/ do_action ( "ws_plugin__s2member_after_admin_lockouts" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Filters administrative menu bars. * * @package s2Member\Admin_Lockouts * @since 3.5 * * @attaches-to ``add_action("admin_bar_menu");`` * * @param obj $wp_admin_bar Expects the ``$wp_admin_bar``, by reference; passed in by the Action Hook. * @return null After modifying ``$wp_admin_var``. */ public static function filter_admin_menu_bar ( & $wp_admin_bar = FALSE ) { do_action ( "ws_plugin__s2member_before_filter_admin_menu_bar" , get_defined_vars ( ) ) ; /**/ if ( is_object ( $wp_admin_bar ) && $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "force_admin_lockouts" ] /* Now check functionality Constants too. */ && ( ! defined ( "XMLRPC_REQUEST" ) || !XMLRPC_REQUEST) && ( ! defined ( "APP_REQUEST" ) || !APP_REQUEST) && ( ! defined ( "DOING_AJAX" ) || !DOING_AJAX) /**/ && ! current_user_can ( "edit_posts" ) ) /* And only if the current User is unable to edit Posts; otherwise we allow them in. */ if ( apply_filters ( "ws_plugin__s2member_admin_lockout" , true , get_defined_vars ( ) ) ) /* Give Filters a chance too. */ { if ( $special_redirection_url = c_ws_plugin__s2member_login_redirects:: login_redirection_url ( ) ) $lwp = $special_redirection_url ; /* Use Special Redirection URL. */ /**/ else /* Else we use the Login Welcome Page configured for s2Member. */ $lwp = get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ) ; /**/ if ( isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "href" ] ) && isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "edit-my-profile" } [ "href" ] ) ) { $wp_admin_bar - menu - { "my-account-with-avatar" } [ "href" ] = $lwp ; $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "edit-my-profile" } [ "href" ] = $lwp ; unset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "dashboard" } ) ; } /**/ if ( isset ( $wp_admin_bar - menu - { "my-blogs" } [ "href" ] ) && isset ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] ) && is_object ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] ) ) { $wp_admin_bar - menu - { "my-blogs" } [ "href" ] = "#" ; /* Void this link by converting to #. */ /**/ foreach ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] as & $blog ) if ( is_array ( $blog ) && isset ( $blog [ "href" ] ) && isset ( $blog [ "children" ] ) && is_object ( $blog [ "children" ] ) ) { $blog [ "href" ] = preg_replace ( "/\/wp-admin/" , "" , $blog [ "href" ] ) ; unset ( $blog [ "children" ] ) ; /* Cause all we need is the link. */ } } } /**/ do_action ( "ws_plugin__s2member_after_filter_admin_menu_bar" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\admin-lockouts.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-11T15:13:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=27039#p27039 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\admin-lockouts.inc.php
Docs updated: July 11, 2011, 4:13 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\admin-lockouts.inc.php ?php /** * Locks Users/Members out of admin panels. * * 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\Admin_Lockouts * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_admin_lockouts" ) ) { /** * Locks Users/Members out of admin panels. * * @package s2Member\Admin_Lockouts * @since 3.5 */ class c_ws_plugin__s2member_admin_lockouts { /** * Locks Users/Members out of admin panels. * * @package s2Member\Admin_Lockouts * @since 3.5 * * @attaches-to ``add_action("admin_init");`` * * @return null Or exits script execution after redirection. */ public static function admin_lockout ( ) /* Prevents admin access. */ { do_action ( "ws_plugin__s2member_before_admin_lockouts" , get_defined_vars ( ) ) ; /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "force_admin_lockouts" ] /* Now check for these WordPress® functionality Constants too. */ && ( ! defined ( "XMLRPC_REQUEST" ) || !XMLRPC_REQUEST) && ( ! defined ( "APP_REQUEST" ) || !APP_REQUEST) && ( ! defined ( "DOING_AJAX" ) || !DOING_AJAX) /**/ && ! current_user_can ( "edit_posts" ) ) /* And only if the current User is unable to edit Posts; otherwise we allow them in. */ if ( apply_filters ( "ws_plugin__s2member_admin_lockout" , true , get_defined_vars ( ) ) ) /* Give Filters a chance too. */ { if ( $special_redirection_url = c_ws_plugin__s2member_login_redirects:: login_redirection_url ( ) ) wp_redirect ( $special_redirection_url ) ; /* Special Redirection. */ /**/ else /* Else we use the Login Welcome Page configured for s2Member. */ wp_redirect ( get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /**/ do_action ( "ws_plugin__s2member_after_admin_lockouts" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Filters administrative menu bars. * * @package s2Member\Admin_Lockouts * @since 3.5 * * @attaches-to ``add_action("admin_bar_menu");`` * * @param obj $wp_admin_bar Expects the ``$wp_admin_bar``, by reference; passed in by the Action Hook. * @return null After modifying ``$wp_admin_var``. */ public static function filter_admin_menu_bar ( & $wp_admin_bar = FALSE ) { do_action ( "ws_plugin__s2member_before_filter_admin_menu_bar" , get_defined_vars ( ) ) ; /**/ if ( is_object ( $wp_admin_bar ) && $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "force_admin_lockouts" ] /* Now check functionality Constants too. */ && ( ! defined ( "XMLRPC_REQUEST" ) || !XMLRPC_REQUEST) && ( ! defined ( "APP_REQUEST" ) || !APP_REQUEST) && ( ! defined ( "DOING_AJAX" ) || !DOING_AJAX) /**/ && ! current_user_can ( "edit_posts" ) ) /* And only if the current User is unable to edit Posts; otherwise we allow them in. */ if ( apply_filters ( "ws_plugin__s2member_admin_lockout" , true , get_defined_vars ( ) ) ) /* Give Filters a chance too. */ { if ( $special_redirection_url = c_ws_plugin__s2member_login_redirects:: login_redirection_url ( ) ) $lwp = $special_redirection_url ; /* Use Special Redirection URL. */ /**/ else /* Else we use the Login Welcome Page configured for s2Member. */ $lwp = get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ) ; /**/ if ( isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "href" ] ) && isset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "edit-my-profile" } [ "href" ] ) ) { $wp_admin_bar - menu - { "my-account-with-avatar" } [ "href" ] = $lwp ; $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "edit-my-profile" } [ "href" ] = $lwp ; unset ( $wp_admin_bar - menu - { "my-account-with-avatar" } [ "children" ] - { "dashboard" } ) ; } /**/ if ( isset ( $wp_admin_bar - menu - { "my-blogs" } [ "href" ] ) && isset ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] ) && is_object ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] ) ) { $wp_admin_bar - menu - { "my-blogs" } [ "href" ] = "#" ; /* Void this link by converting to #. */ /**/ foreach ( $wp_admin_bar - menu - { "my-blogs" } [ "children" ] as & $blog ) if ( is_array ( $blog ) && isset ( $blog [ "href" ] ) && isset ( $blog [ "children" ] ) && is_object ( $blog [ "children" ] ) ) { $blog [ "href" ] = preg_replace ( "/\/wp-admin/" , "" , $blog [ "href" ] ) ; unset ( $blog [ "children" ] ) ; /* Cause all we need is the link. */ } } } /**/ do_action ( "ws_plugin__s2member_after_filter_admin_menu_bar" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\admin-lockouts.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 3:13 pm


]]>
2011-07-09T05:40:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12994&p=25288#p25288 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\admin-lockouts.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, 5:40 am


]]>