Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:50:08-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13052 2011-12-20T09:50:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=57783#p57783 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\register-access.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:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=55465#p55465 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\register-access.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:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=51839#p51839 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\register-access.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:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=49934#p49934 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\register-access.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:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=47728#p47728 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\register-access.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:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=46129#p46129 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\register-access.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:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=44259#p44259 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\register-access.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:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=42966#p42966 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\register-access.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:26:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=41212#p41212 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\register-access.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:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=39968#p39968 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\register-access.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:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=38112#p38112 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\register-access.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:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=36693#p36693 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\register-access.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:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=35421#p35421 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\register-access.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:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=31528#p31528 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\register-access.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\register-access.inc.php ?php /** * Registration Access Links. * * 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\Registrations * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_register_access" ) ) { /** * Registration Access Links. * * @package s2Member\Registrations * @since 3.5 */ class c_ws_plugin__s2member_register_access { /** * Generates Registration Access Links. * * @package s2Member\Registrations * @since 3.5 * * @param str $subscr_gateway Payment Gateway associated with a Customer. * @param str $subscr_id Unique Subscr. ID associated with Payment Gateway; associated with a Customer. * @param str $custom Custom String value *( as supplied in Shortcode )*; must start with installation domain name. * @param int|str $item_number An s2Member-generated `item_number` *( i.e. `1` for Level 1, or `level|ccaps|fixed-term`, or `sp|ids|expiration` )*. * @param bool $shrink Optional. Defaults to true. If false, the raw registration link will NOT be reduced in size through the tinyURL API. * @return str|bool A Registration Access Link on success, else false on failure. */ public static function register_link_gen ( $subscr_gateway = FALSE , $subscr_id = FALSE , $custom = FALSE , $item_number = FALSE , $shrink = TRUE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_register_link_gen" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( $subscr_gateway && $subscr_id && $custom && $item_number ) /* Must have all of these. */ { $register = c_ws_plugin__s2member_utils_encryption:: encrypt ( "subscr_gateway_subscr_id_custom_item_number_time:.:|:.:" . $subscr_gateway . ":.:|:.:" . $subscr_id . ":.:|:.:" . $custom . ":.:|:.:" . $item_number . ":.:|:.:" . strtotime ( "now" ) ) ; $register_link = site_url ( "/?s2member_register=" . urlencode ( $register ) ) ; /**/ if ( $shrink && ( $_alternative = apply_filters ( "ws_plugin__s2member_register_link_gen_alternative" , $register_link , get_defined_vars ( ) ) ) && strlen ( $_alternative ) strlen ( $register_link ) ) return apply_filters ( "ws_plugin__s2member_register_link_gen" , $_alternative , get_defined_vars ( ) ) ; /**/ else if ( $shrink && ( $tinyurl = c_ws_plugin__s2member_utils_urls:: remote ( "http://tinyurl.com/api-create.php?url=" . rawurlencode ( $register_link ) ) ) ) return apply_filters ( "ws_plugin__s2member_register_link_gen" , $tinyurl . "#" . $_SERVER [ "HTTP_HOST" ] , get_defined_vars ( ) ) ; /**/ else /* Else use the long one; tinyURL will fail when/if their server is down periodically. */ return apply_filters ( "ws_plugin__s2member_register_link_gen" , $register_link , get_defined_vars ( ) ) ; } /**/ return false ; } /** * Generates Registration Access Links via AJAX. * * @package s2Member\Registrations * @since 3.5 * * @attaches-to: ``add_action("wp_ajax_ws_plugin__s2member_reg_access_link_via_ajax");`` * * @return null Exits script execution after output is generated for AJAX caller. */ public static function reg_access_link_via_ajax ( ) { do_action ( "ws_plugin__s2member_before_reg_access_link_via_ajax" , get_defined_vars ( ) ) ; /**/ if ( current_user_can ( "create_users" ) ) /* Check priveledges as well. */ if ( ! empty ( $_POST [ "ws_plugin__s2member_reg_access_link_via_ajax" ] ) && ( $nonce = $_POST [ "ws_plugin__s2member_reg_access_link_via_ajax" ] ) && wp_verify_nonce ( $nonce , "ws-plugin--s2member-reg-access-link-via-ajax" ) && ( $_p = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_POST ) ) ) && isset ( $_p [ "s2member_reg_access_link_subscr_gateway" ] , $_p [ "s2member_reg_access_link_subscr_id" ] , $_p [ "s2member_reg_access_link_custom" ] , $_p [ "s2member_reg_access_link_item_number" ] ) ) echo apply_filters ( "ws_plugin__s2member_reg_access_link_via_ajax" , c_ws_plugin__s2member_register_access:: register_link_gen ( $_p [ "s2member_reg_access_link_subscr_gateway" ] , $_p [ "s2member_reg_access_link_subscr_id" ] , $_p [ "s2member_reg_access_link_custom" ] , $_p [ "s2member_reg_access_link_item_number" ] ) , get_defined_vars ( ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /** * Checks registration cookies. * * @package s2Member\Registrations * @since 110707 * * @return array|bool An array of cookies if they're OK, else false. */ public static function reg_cookies_ok ( ) { global $wpdb ; /* Global database object reference. */ /**/ do_action ( "ws_plugin__s2member_before_reg_cookies_ok" , get_defined_vars ( ) ) ; /**/ if ( isset ( $_COOKIE [ "s2member_subscr_gateway" ] , $_COOKIE [ "s2member_subscr_id" ] , $_COOKIE [ "s2member_custom" ] , $_COOKIE [ "s2member_item_number" ] ) && ( $subscr_gateway = c_ws_plugin__s2member_utils_encryption:: decrypt ( $_COOKIE [ "s2member_subscr_gateway" ] ) ) && ( $subscr_id = c_ws_plugin__s2member_utils_encryption:: decrypt ( $_COOKIE [ "s2member_subscr_id" ] ) ) && preg_match ( "/^" . preg_quote ( preg_replace ( "/\:([0-9]+)$/" , "" , $_SERVER [ "HTTP_HOST" ] ) , "/" ) . "/i" , ( $custom = c_ws_plugin__s2member_utils_encryption:: decrypt ( $_COOKIE [ "s2member_custom" ] ) ) ) && preg_match ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "membership_item_number_w_level_regex" ] , ( $item_number = c_ws_plugin__s2member_utils_encryption:: decrypt ( $_COOKIE [ "s2member_item_number" ] ) ) ) && ! $wpdb - get_row ( "SELECT `user_id` FROM `" . $wpdb - usermeta . "` WHERE `meta_key` = '" . $wpdb - prefix . "s2member_subscr_id' AND `meta_value` = '" . $wpdb - escape ( $subscr_id ) . "' LIMIT 1" ) ) $reg_cookies = array ( "subscr_gateway" = $subscr_gateway , "subscr_id" = $subscr_id , "custom" = $custom , "item_number" = $item_number ) ; /**/ return apply_filters ( "ws_plugin__s2member_reg_cookies_ok" , ( ( isset ( $reg_cookies ) && is_array ( $reg_cookies ) ) ? $reg_cookies : false ) , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\register-access.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:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=27715#p27715 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\register-access.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\register-access.inc.php ?php /** * Registration Access Links. * * 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\Registrations * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_register_access" ) ) { /** * Registration Access Links. * * @package s2Member\Registrations * @since 3.5 */ class c_ws_plugin__s2member_register_access { /** * Generates Registration Access Links. * * @package s2Member\Registrations * @since 3.5 * * @param str $subscr_gateway Payment Gateway associated with a Customer. * @param str $subscr_id Unique Subscr. ID associated with Payment Gateway; associated with a Customer. * @param str $custom Custom String value *( as supplied in Shortcode )*; must start with installation domain name. * @param int|str $item_number An s2Member-generated `item_number` *( i.e. `1` for Level 1, or `level|ccaps|fixed-term`, or `sp|ids|expiration` )*. * @param bool $shrink Optional. Defaults to true. If false, the raw registration link will NOT be reduced in size through the tinyURL API. * @return str|bool A Registration Access Link on success, else false on failure. */ public static function register_link_gen ( $subscr_gateway = FALSE , $subscr_id = FALSE , $custom = FALSE , $item_number = FALSE , $shrink = TRUE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_register_link_gen" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( $subscr_gateway && $subscr_id && $custom && $item_number ) /* Must have all of these. */ { $register = c_ws_plugin__s2member_utils_encryption:: encrypt ( "subscr_gateway_subscr_id_custom_item_number_time:.:|:.:" . $subscr_gateway . ":.:|:.:" . $subscr_id . ":.:|:.:" . $custom . ":.:|:.:" . $item_number . ":.:|:.:" . strtotime ( "now" ) ) ; $register_link = site_url ( "/?s2member_register=" . urlencode ( $register ) ) ; /**/ if ( $shrink && ( $_alternative = apply_filters ( "ws_plugin__s2member_register_link_gen_alternative" , $register_link , get_defined_vars ( ) ) ) && strlen ( $_alternative ) strlen ( $register_link ) ) return apply_filters ( "ws_plugin__s2member_register_link_gen" , $_alternative , get_defined_vars ( ) ) ; /**/ else if ( $shrink && ( $tinyurl = c_ws_plugin__s2member_utils_urls:: remote ( "http://tinyurl.com/api-create.php?url=" . rawurlencode ( $register_link ) ) ) ) return apply_filters ( "ws_plugin__s2member_register_link_gen" , $tinyurl . "#" . $_SERVER [ "HTTP_HOST" ] , get_defined_vars ( ) ) ; /**/ else /* Else use the long one; tinyURL will fail when/if their server is down periodically. */ return apply_filters ( "ws_plugin__s2member_register_link_gen" , $register_link , get_defined_vars ( ) ) ; } /**/ return false ; } /** * Generates Registration Access Links via AJAX. * * @package s2Member\Registrations * @since 3.5 * * @attaches-to: ``add_action("wp_ajax_ws_plugin__s2member_reg_access_link_via_ajax");`` * * @return null Exits script execution after output is generated for AJAX caller. */ public static function reg_access_link_via_ajax ( ) { do_action ( "ws_plugin__s2member_before_reg_access_link_via_ajax" , get_defined_vars ( ) ) ; /**/ if ( current_user_can ( "create_users" ) ) /* Check priveledges as well. */ if ( ! empty ( $_POST [ "ws_plugin__s2member_reg_access_link_via_ajax" ] ) && ( $nonce = $_POST [ "ws_plugin__s2member_reg_access_link_via_ajax" ] ) && wp_verify_nonce ( $nonce , "ws-plugin--s2member-reg-access-link-via-ajax" ) && ( $_p = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_POST ) ) ) && isset ( $_p [ "s2member_reg_access_link_subscr_gateway" ] , $_p [ "s2member_reg_access_link_subscr_id" ] , $_p [ "s2member_reg_access_link_custom" ] , $_p [ "s2member_reg_access_link_item_number" ] ) ) echo apply_filters ( "ws_plugin__s2member_reg_access_link_via_ajax" , c_ws_plugin__s2member_register_access:: register_link_gen ( $_p [ "s2member_reg_access_link_subscr_gateway" ] , $_p [ "s2member_reg_access_link_subscr_id" ] , $_p [ "s2member_reg_access_link_custom" ] , $_p [ "s2member_reg_access_link_item_number" ] ) , get_defined_vars ( ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /** * Checks registration cookies. * * @package s2Member\Registrations * @since 110707 * * @return array|bool An array of cookies if they're OK, else false. */ public static function reg_cookies_ok ( ) { global $wpdb ; /* Global database object reference. */ /**/ do_action ( "ws_plugin__s2member_before_reg_cookies_ok" , get_defined_vars ( ) ) ; /**/ if ( isset ( $_COOKIE [ "s2member_subscr_gateway" ] , $_COOKIE [ "s2member_subscr_id" ] , $_COOKIE [ "s2member_custom" ] , $_COOKIE [ "s2member_item_number" ] ) && ( $subscr_gateway = c_ws_plugin__s2member_utils_encryption:: decrypt ( $_COOKIE [ "s2member_subscr_gateway" ] ) ) && ( $subscr_id = c_ws_plugin__s2member_utils_encryption:: decrypt ( $_COOKIE [ "s2member_subscr_id" ] ) ) && preg_match ( "/^" . preg_quote ( preg_replace ( "/\:([0-9]+)$/" , "" , $_SERVER [ "HTTP_HOST" ] ) , "/" ) . "/i" , ( $custom = c_ws_plugin__s2member_utils_encryption:: decrypt ( $_COOKIE [ "s2member_custom" ] ) ) ) && preg_match ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "membership_item_number_regex" ] , ( $item_number = c_ws_plugin__s2member_utils_encryption:: decrypt ( $_COOKIE [ "s2member_item_number" ] ) ) ) && ! $wpdb - get_row ( "SELECT `user_id` FROM `" . $wpdb - usermeta . "` WHERE `meta_key` = '" . $wpdb - prefix . "s2member_subscr_id' AND `meta_value` = '" . $wpdb - escape ( $subscr_id ) . "' LIMIT 1" ) ) $reg_cookies = array ( "subscr_gateway" = $subscr_gateway , "subscr_id" = $subscr_id , "custom" = $custom , "item_number" = $item_number ) ; /**/ return apply_filters ( "ws_plugin__s2member_reg_cookies_ok" , ( ( isset ( $reg_cookies ) && is_array ( $reg_cookies ) ) ? $reg_cookies : false ) , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\register-access.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:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13052&p=25347#p25347 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\register-access.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


]]>