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

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

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


]]>
2011-12-07T01:03:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=55473#p55473 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: December 7, 2011, 1:03 am

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

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


]]>
2011-11-05T19:26:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=51847#p51847 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: November 5, 2011, 8:26 pm

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

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


]]>
2011-10-29T20:35:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=49942#p49942 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: October 29, 2011, 9:35 pm

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

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


]]>
2011-10-17T15:39:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=47736#p47736 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: October 17, 2011, 1:39 pm

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

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


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

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

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


]]>
2011-10-03T15:47:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=44267#p44267 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\ruris.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:41:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=42974#p42974 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: October 3, 2011, 1:41 am

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

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


]]>
2011-09-27T05:26:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=41220#p41220 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: September 27, 2011, 3:26 am

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

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


]]>
2011-09-26T21:03:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=39976#p39976 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\ruris.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:03 pm


]]>
2011-09-17T16:20:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=38120#p38120 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: September 17, 2011, 2:20 pm

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

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


]]>
2011-09-14T01:27:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=36701#p36701 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\ruris.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:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=35429#p35429 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\ruris.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:13:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=31536#p31536 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: August 15, 2011, 3: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\ruris.inc.php ?php /** * s2Member's URI protection routines *( for current URI )*. * * 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\URIs * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_ruris" ) ) { /** * s2Member's URI protection routines *( for current URI )*. * * @package s2Member\URIs * @since 3.5 */ class c_ws_plugin__s2member_ruris { /** * Handles URI Level Access permissions *( for current URI )*. * * @package s2Member\URIs * @since 3.5 * * @return null Or exits script execution after redirection. */ public static function check_ruri_level_access ( ) { do_action ( "ws_plugin__s2member_before_check_ruri_level_access" , get_defined_vars ( ) ) ; /**/ $excluded = apply_filters ( "ws_plugin__s2member_check_ruri_level_access_excluded" , false , get_defined_vars ( ) ) ; /**/ if ( ! $excluded && $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ) /* Has it been excluded? */ { $user = ( is_user_logged_in ( ) ) ? wp_get_current_user ( ) : false ; /* Get the current User's object. */ /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_redirection_override" ] && ( $login_redirection_uri = c_ws_plugin__s2member_login_redirects:: login_redirection_uri ( $user , "root-returns-false" ) ) && preg_match ( "/^" . preg_quote ( $login_redirection_uri , "/" ) . "$/" , $_SERVER [ "REQUEST_URI" ] ) && c_ws_plugin__s2member_no_cache:: no_cache_constants ( true ) !== "nill" && ( ! $user || ! current_user_can ( "access_s2member_level0" ) ) ) { wp_redirect ( add_query_arg ( urlencode_deep ( array ( "s2member_seeking" = "ruri-" . base64_encode ( $_SERVER [ "REQUEST_URI" ] ) , "s2member_level_req" = "0" ) ) , get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ) ) , apply_filters ( "ws_plugin__s2member_content_redirect_status" , 301 , get_defined_vars ( ) ) ) ; exit ( ) ; } else if ( !c_ws_plugin__s2member_systematics:: is_systematic_use_page ( ) ) /* Do NOT protect Systematics. However, there is 1 exception above ^. */ { for ( $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n = 0 ; $n -- ) /* URIs. Go through each Level. */ { if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_ruris" ] ) foreach ( preg_split ( "/[\r \n \t]+/" , c_ws_plugin__s2member_ruris:: fill_ruri_level_access_rc_vars ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_ruris" ] , $user ) ) as $str ) if ( $str && preg_match ( "/" . preg_quote ( $str , "/" ) . "/" , $_SERVER [ "REQUEST_URI" ] ) && c_ws_plugin__s2member_no_cache:: no_cache_constants ( true ) !== "nill" && ( ! $user || ! current_user_can ( "access_s2member_level" . $n ) ) ) { wp_redirect ( add_query_arg ( urlencode_deep ( array ( "s2member_seeking" = "ruri-" . base64_encode ( $_SERVER [ "REQUEST_URI" ] ) , "s2member_level_req" = $n ) ) , get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ) ) , apply_filters ( "ws_plugin__s2member_content_redirect_status" , 301 , get_defined_vars ( ) ) ) ; exit ( ) ; } } } /**/ do_action ( "ws_plugin__s2member_during_check_ruri_level_access" , get_defined_vars ( ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_check_ruri_level_access" , get_defined_vars ( ) ) ; /**/ return ; /* For uniformity. */ } /** * Fills Replacement Code variables in URIs; collectively. * * @package s2Member\URIs * @since 3.5 * * @return str Collective string of input URIs, with Replacement Codes having been filled. */ public static function fill_ruri_level_access_rc_vars ( $uris = FALSE , $user = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_fill_ruri_level_access_rc_vars" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $orig_uris = $uris ; /* Record the original URIs that were passed in; collectively. */ /**/ $user = ( ( is_object ( $user ) || is_object ( $user = ( is_user_logged_in ( ) ) ? wp_get_current_user ( ) : false ) ) && ! empty ( $user - ID ) ) ? $user : false ; /**/ $user_login = ( $user ) ? (string) strtolower ( $user - user_login ) : "" ; $user_id = ( $user ) ? (string) $user - ID : "" ; /**/ $user_level = (string)c_ws_plugin__s2member_user_access:: user_access_level ( $user ) ; $user_role = (string)c_ws_plugin__s2member_user_access:: user_access_role ( $user ) ; $user_ccaps = (string) implode ( "-" , c_ws_plugin__s2member_user_access:: user_access_ccaps ( $user ) ) ; $user_logins = ( $user ) ? (string) (int) get_user_option ( "s2member_login_counter" , $user_id ) : "-1" ; /**/ $uris = ( strlen ( $user_login ) ) ? preg_replace ( "/%%current_user_login%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_login ) , $uris ) : $uris ; $uris = ( strlen ( $user_id ) ) ? preg_replace ( "/%%current_user_id%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_id ) , $uris ) : $uris ; $uris = ( strlen ( $user_level ) ) ? preg_replace ( "/%%current_user_level%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_level ) , $uris ) : $uris ; $uris = ( strlen ( $user_role ) ) ? preg_replace ( "/%%current_user_role%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_role ) , $uris ) : $uris ; $uris = ( strlen ( $user_ccaps ) ) ? preg_replace ( "/%%current_user_ccaps%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_ccaps ) , $uris ) : $uris ; $uris = ( strlen ( $user_logins ) ) ? preg_replace ( "/%%current_user_logins%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_logins ) , $uris ) : $uris ; /**/ return apply_filters ( "ws_plugin__s2member_fill_ruri_level_access_rc_vars" , $uris , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\ruris.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-11T17:29:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=27722#p27722 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: July 11, 2011, 6:29 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\ruris.inc.php ?php /** * s2Member's URI protection routines *( for current URI )*. * * 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\URIs * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_ruris" ) ) { /** * s2Member's URI protection routines *( for current URI )*. * * @package s2Member\URIs * @since 3.5 */ class c_ws_plugin__s2member_ruris { /** * Handles URI Level Access permissions *( for current URI )*. * * @package s2Member\URIs * @since 3.5 * * @return null Or exits script execution after redirection. */ public static function check_ruri_level_access ( ) { do_action ( "ws_plugin__s2member_before_check_ruri_level_access" , get_defined_vars ( ) ) ; /**/ $excluded = apply_filters ( "ws_plugin__s2member_check_ruri_level_access_excluded" , false , get_defined_vars ( ) ) ; /**/ if ( ! $excluded && $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ) /* Has it been excluded? */ { $user = ( is_user_logged_in ( ) ) ? wp_get_current_user ( ) : false ; /* Get the current User's object. */ /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_redirection_override" ] && ( $login_redirection_uri = c_ws_plugin__s2member_login_redirects:: login_redirection_uri ( $user , "root-returns-false" ) ) && preg_match ( "/^" . preg_quote ( $login_redirection_uri , "/" ) . "$/" , $_SERVER [ "REQUEST_URI" ] ) && c_ws_plugin__s2member_no_cache:: no_cache_constants ( true ) !== "nill" && ( ! $user || ! current_user_can ( "access_s2member_level0" ) ) ) { wp_redirect ( add_query_arg ( urlencode_deep ( array ( "s2member_seeking" = "ruri-" . base64_encode ( $_SERVER [ "REQUEST_URI" ] ) , "s2member_level_req" = "0" ) ) , get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ) ) , apply_filters ( "ws_plugin__s2member_content_redirect_status" , 301 , get_defined_vars ( ) ) ) ; exit ( ) ; } else if ( !c_ws_plugin__s2member_systematics:: is_systematic_use_page ( ) ) /* Do NOT protect Systematics. However, there is 1 exception above ^. */ { for ( $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n = 0 ; $n -- ) /* URIs. Go through each Level. */ { if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_ruris" ] ) foreach ( preg_split ( "/[\r \n \t]+/" , c_ws_plugin__s2member_ruris:: fill_ruri_level_access_rc_vars ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $n . "_ruris" ] , $user ) ) as $str ) if ( $str && preg_match ( "/" . preg_quote ( $str , "/" ) . "/" , $_SERVER [ "REQUEST_URI" ] ) && c_ws_plugin__s2member_no_cache:: no_cache_constants ( true ) !== "nill" && ( ! $user || ! current_user_can ( "access_s2member_level" . $n ) ) ) { wp_redirect ( add_query_arg ( urlencode_deep ( array ( "s2member_seeking" = "ruri-" . base64_encode ( $_SERVER [ "REQUEST_URI" ] ) , "s2member_level_req" = $n ) ) , get_page_link ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ) ) , apply_filters ( "ws_plugin__s2member_content_redirect_status" , 301 , get_defined_vars ( ) ) ) ; exit ( ) ; } } } /**/ do_action ( "ws_plugin__s2member_during_check_ruri_level_access" , get_defined_vars ( ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_check_ruri_level_access" , get_defined_vars ( ) ) ; /**/ return ; /* For uniformity. */ } /** * Fills Replacement Code variables in URIs; collectively. * * @package s2Member\URIs * @since 3.5 * * @return str Collective string of input URIs, with Replacement Codes having been filled. */ public static function fill_ruri_level_access_rc_vars ( $uris = FALSE , $user = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_fill_ruri_level_access_rc_vars" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $orig_uris = $uris ; /* Record the original URIs that were passed in; collectively. */ /**/ $user = ( ( is_object ( $user ) || is_object ( $user = ( is_user_logged_in ( ) ) ? wp_get_current_user ( ) : false ) ) && ! empty ( $user - ID ) ) ? $user : false ; /**/ $user_login = ( $user ) ? (string) strtolower ( $user - user_login ) : "" ; $user_id = ( $user ) ? (string) $user - ID : "" ; /**/ $user_level = (string)c_ws_plugin__s2member_user_access:: user_access_level ( $user ) ; $user_role = (string)c_ws_plugin__s2member_user_access:: user_access_role ( $user ) ; $user_ccaps = (string) implode ( "-" , c_ws_plugin__s2member_user_access:: user_access_ccaps ( $user ) ) ; /**/ $uris = ( strlen ( $user_login ) ) ? preg_replace ( "/%%current_user_login%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_login ) , $uris ) : $uris ; $uris = ( strlen ( $user_id ) ) ? preg_replace ( "/%%current_user_id%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_id ) , $uris ) : $uris ; $uris = ( strlen ( $user_level ) ) ? preg_replace ( "/%%current_user_level%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_level ) , $uris ) : $uris ; $uris = ( strlen ( $user_role ) ) ? preg_replace ( "/%%current_user_role%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_role ) , $uris ) : $uris ; $uris = ( strlen ( $user_ccaps ) ) ? preg_replace ( "/%%current_user_ccaps%%/i" , c_ws_plugin__s2member_utils_strings:: esc_ds ( $user_ccaps ) , $uris ) : $uris ; /**/ return apply_filters ( "ws_plugin__s2member_fill_ruri_level_access_rc_vars" , $uris , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\ruris.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-09T06:09:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13059&p=25354#p25354 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\ruris.inc.php
Docs updated: December 20, 2011, 9:50 am

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

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


]]>