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

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

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


]]>
2011-12-07T01:06:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=55849#p55849 <![CDATA[s2Member v111206 / Source Code: s2member-p...]]>
s2Member v111206
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: December 7, 2011, 1:06 am

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

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


]]>
2011-11-05T19:29:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=52221#p52221 <![CDATA[s2Member v111105 / Source Code: s2member-p...]]>
s2Member v111105
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: November 5, 2011, 8:29 pm

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

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


]]>
2011-10-29T20:38:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=50317#p50317 <![CDATA[s2Member v111029 / Source Code: s2member-p...]]>
s2Member v111029
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: October 29, 2011, 9:39 pm

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

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


]]>
2011-10-17T15:44:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=48113#p48113 <![CDATA[s2Member v111017 / Source Code: s2member-p...]]>
s2Member v111017
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: October 17, 2011, 1:44 pm

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

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


]]>
2011-10-11T14:39:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=46514#p46514 <![CDATA[s2Member v111011 / Source Code: s2member-p...]]>
s2Member v111011
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: October 11, 2011, 12:39 pm

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

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


]]>
2011-10-03T15:51:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=44642#p44642 <![CDATA[s2Member v111003 / Source Code: s2member-p...]]>
s2Member v111003
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: October 3, 2011, 1:51 pm

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

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


]]>
2011-10-03T03:45:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=43349#p43349 <![CDATA[s2Member v111002 / Source Code: s2member-p...]]>
s2Member v111002
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: October 3, 2011, 1:45 am

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

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


]]>
2011-09-27T05:29:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=41591#p41591 <![CDATA[s2Member v110927 / Source Code: s2member-p...]]>
s2Member v110927
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: September 27, 2011, 3:29 am

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

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


]]>
2011-09-26T21:06:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=40347#p40347 <![CDATA[s2Member v110926 / Source Code: s2member-p...]]>
s2Member v110926
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: September 26, 2011, 7:06 pm

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

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


]]>
2011-09-17T17:05:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=38491#p38491 <![CDATA[s2Member v110915 / Source Code: s2member-p...]]>
s2Member v110915
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: September 17, 2011, 3:05 pm

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

Statistics: Posted by System Robot — September 17th, 2011, 5:05 pm


]]>
2011-09-14T01:30:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=37069#p37069 <![CDATA[s2Member v110913 / Source Code: s2member-p...]]>
s2Member v110913
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: September 13, 2011, 11:30 pm

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

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


]]>
2011-09-13T12:05:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=35797#p35797 <![CDATA[s2Member v110912 / Source Code: s2member-p...]]>
s2Member v110912
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: September 13, 2011, 10:05 am

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

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


]]>
2011-08-15T15:20:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=31905#p31905 <![CDATA[s2Member v110815 / Source Code: s2member-p...]]>
s2Member v110815
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: August 15, 2011, 4:20 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-pro\includes\syscon.inc.php ?php /** * System configuration for s2Member Pro. * * **WARNING:** This is a system configuration file, please DO NOT EDIT this file directly. * Instead, use the plugin options panel in WordPress® to override these settings. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * This WordPress® plugin ( s2Member Pro ) is comprised of two parts: * * o (1) Its PHP code is licensed under the GPL license, as is WordPress®. * 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/}. * * o (2) All other parts of ( s2Member Pro ); including, but not limited to: * the CSS code, some JavaScript code, images, and design; * are licensed according to the license purchased. * See: {@link http://www.s2member.com/prices/} * * Unless you have our prior written consent, you must NOT directly or indirectly license, * sub-license, sell, resell, or provide for free; part (2) of the s2Member Pro Module; * or make an offer to do any of these things. All of these things are strictly * prohibited with part (2) of the s2Member Pro Module. * * Your purchase of s2Member Pro includes free lifetime upgrades via s2Member.com * ( i.e. new features, bug fixes, updates, improvements ); along with full access * to our video tutorial library: {@link http://www.s2member.com/videos/} * * @package s2Member * @since 1.0 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /* Determine full URL to the directory this plugin resides in. */ $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] = ( stripos ( __FILE__ , WP_CONTENT_DIR ) !== 0 ) ? /* Have to assume plugins dir? */ plugins_url ( "/" . basename ( dirname ( dirname ( __FILE__ ) ) ) ) : /* Otherwise, this gives it a chance to live anywhere in the content dir. */ content_url ( preg_replace ( "/^(.*?)\/" . preg_quote ( basename ( WP_CONTENT_DIR ) , "/" ) . "/" , "" , str_replace ( DIRECTORY_SEPARATOR , "/" , dirname ( dirname ( __FILE__ ) ) ) ) ) ; /* Turn upsells & donations off in menu pages of back-end adminstrative panels. */ $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "menu_pages" ] = array_merge ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "menu_pages" ] , array ( "upsell-pro" = false ) ) ; /* Configure checksum time for both of the syscon.inc.php files. */ $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "checksum" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "checksum" ] + filemtime ( __FILE__ ) ; /* Configure the number of Membership Levels being used on this installation. */ if ( defined ( "MEMBERSHIP_LEVELS" ) && is_numeric (MEMBERSHIP_LEVELS) && MEMBERSHIP_LEVELS = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "min_levels" ] && MEMBERSHIP_LEVELS = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "max_levels" ] ) $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] = (int)MEMBERSHIP_LEVELS; /* Add some new default options for the Pro Module. */ if ( ! function_exists ( "ws_plugin__s2member_pro_default_options" ) ) { add_filter ( "ws_plugin__s2member_default_options" , "ws_plugin__s2member_pro_default_options" ) ; /** * Configures default options array for s2Member Pro. * * **WARNING:** This is a system configuration function, please DO NOT EDIT this function directly. * Instead, use the plugin options panel in WordPress® to override these settings. * * @package s2Member * @since 1.0 * * @param array $default_options Expects an array of default options passed in by the Filter. * @return array Merged with default options from the s2Member Framework. * All Pro options should be prefixed with `pro_`. */ function ws_plugin__s2member_pro_default_options ( $default_options = array ( ) ) { $pro_default_options = array ( /* Defaults for the Pro Module. */ /**/ "pro_signup_email_recipients" = '"%%full_name%%" %%payer_email%%' , /**/ "pro_signup_email_subject" = "Congratulations! ( your membership has been approved )" , /**/ "pro_signup_email_message" = "Thanks %%first_name%%! Your membership has been approved.\n \n %%item_name%% \n \nSubscr. ID: %%subscr_id%% \nCharges today: $%%initial%% \nRecurring charges: $%%recurring/regular_cycle%% \n \nYour Username/Password will arrive shortly, in a separate email. If you have any trouble, please feel free to contact us.\n \nBest Regards,\n" . get_bloginfo ( "name" ) , /**/ /**/ "pro_sp_email_recipients" = '"%%full_name%%" %%payer_email%%' , /**/ "pro_sp_email_subject" = "Thank You! ( instructions for access )" , /**/ "pro_sp_email_message" = "Thanks %%first_name%%!\n \n %%item_name%% \n \nTransaction ID: %%txn_id%% \nCharges today: $%%amount%% \n \nYour order can be retrieved here:\n %%sp_access_url%% \n( link expires in %%sp_access_exp%% )\n \nIf you have any trouble, please feel free to contact us.\n \nBest Regards,\n" . get_bloginfo ( "name" ) , /**/ /**/ "pro_coupon_codes" = "" , /* There are NO Coupon Codes by default. */ "pro_default_tax" = "0.0%" , "pro_tax_rates" = "" , /**/ "pro_login_welcome_page_otos" = "" , /* A line-delimited list of Login Welcome Page offers. */ /**/ "pro_gateways_enabled" = array ( "paypal" ) , /* Defaults to PayPal® Pro. */ "pro_paypal_checkout_rdp" = "0" , "pro_paypal_return_template_header" = "" , /**/ "pro_alipay_seller_email" = "" , "pro_alipay_partner_id" = "" , "pro_alipay_security_code" = "" , "pro_alipay_return_template_header" = "" , /**/ "pro_authnet_api_login_id" = "" , "pro_authnet_api_trans_key" = "" , "pro_authnet_api_salt_key" = "" , "pro_authnet_sandbox" = "0" , /**/ "pro_ccbill_client_id" = "" , "pro_ccbill_client_sid" = "0000" , "pro_ccbill_form_name" = "" , "pro_ccbill_dl_user" = "" , "pro_ccbill_dl_pass" = "" , "pro_ccbill_salt_key" = "" , "pro_ccbill_return_template_header" = "" , /**/ "pro_clickbank_username" = "" , "pro_clickbank_clerk_key" = "" , "pro_clickbank_developer_key" = "" , "pro_clickbank_secret_key" = "" , "pro_clickbank_return_template_header" = "" , /**/ "pro_google_merchant_id" = "" , "pro_google_merchant_key" = "" , "pro_google_sandbox" = "0" ) ; /**/ return array_merge ( $default_options , $pro_default_options ) ; } } /* Check/validate default options for the Pro Module. */ if ( ! function_exists ( "ws_plugin__s2member_pro_options_before_checksum" ) ) { add_filter ( "ws_plugin__s2member_options_before_checksum" , "ws_plugin__s2member_pro_options_before_checksum" ) ; /** * Configures options array; while handling s2Member Pro options. * * **WARNING:** This is a system configuration function, please DO NOT EDIT this function directly. * Instead, use the plugin options panel in WordPress® to override these settings. * * @package s2Member * @since 1.0 * * @param array $options Expects an array of options, by reference, passed in by the Filter. * ``$GLOBALS["WS_PLUGIN__"]["s2member"]["o"]``, by reference. * @return array Merged with options from the s2Member Framework. * All Pro options should be prefixed with `pro_`. */ function ws_plugin__s2member_pro_options_before_checksum ( & $options = array ( ) ) { $pro_default_options = ws_plugin__s2member_pro_default_options ( ) ; /* Backward compatibility for "pro_other_gateways_enabled", which was renamed in v1.5. */ if ( isset ( $options [ "pro_other_gateways_enabled" ] ) && is_array ( $options [ "pro_other_gateways_enabled" ] ) ) $options [ "pro_gateways_enabled" ] = array_unique ( array_merge ( $options [ "pro_other_gateways_enabled" ] , $pro_default_options [ "pro_gateways_enabled" ] ) ) ; /* Backward compatibility for "pro_paypal_default_tax", which was renamed in v1.3. */ if ( isset ( $options [ "pro_paypal_default_tax" ] ) ) $options [ "pro_default_tax" ] = $options [ "pro_paypal_default_tax" ] ; /* Backward compatibility for "pro_paypal_tax_rates", which was renamed in v1.3. */ if ( isset ( $options [ "pro_paypal_tax_rates" ] ) ) $options [ "pro_tax_rates" ] = $options [ "pro_paypal_tax_rates" ] ; /**/ foreach ( $options /* $GLOBALS["WS_PLUGIN__"]["s2member"]["o"] */ as $key = & $value ) { if ( isset ( $pro_default_options [ $key ] ) || preg_match ( "/^pro_/" , $key ) ) { if ( ! isset ( $pro_default_options [ $key ] ) ) unset ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ $key ] ) ; /**/ else if ( preg_match ( "/^pro_(signup|sp)_email_recipients$/" , $key ) && ! is_string ( $value ) ) /* Can be empty. */ $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_(signup|sp)_email_(subject|message)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_coupon_codes" && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_default_tax" && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_tax_rates" && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_login_welcome_page_otos" && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_gateways_enabled" && ! is_array ( $value ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_paypal_checkout_rdp" && ( ! is_string ( $value ) || ! is_numeric ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_paypal_return_template_header" && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_alipay_(seller_email|partner_id|security_code|return_template_header)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_authnet_(api_login_id|api_trans_key|api_salt_key)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_ccbill_(client_id|client_sid|form_name|dl_user|dl_pass|salt_key|return_template_header)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_clickbank_(username|clerk_key|developer_key|secret_key|return_template_header)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_google_(merchant_id|merchant_key)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_(google|authnet)_sandbox$/" , $key ) && ( ! is_string ( $value ) || ! is_numeric ( $value ) ) ) $value = $pro_default_options [ $key ] ; } } /**/ return $options ; /* $GLOBALS["WS_PLUGIN__"]["s2member"]["o"] by reference. */ } } ? [ full view ]s2member-pro\includes\syscon.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:20 pm


]]>
2011-07-11T17:39:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=28064#p28064 <![CDATA[s2Member v110710 / Source Code: s2member-p...]]>
s2Member v110710
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: July 11, 2011, 6:39 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-pro\includes\syscon.inc.php ?php /** * System configuration for s2Member Pro. * * **WARNING:** This is a system configuration file, please DO NOT EDIT this file directly. * Instead, use the plugin options panel in WordPress® to override these settings. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * This WordPress® plugin ( s2Member Pro ) is comprised of two parts: * * o (1) Its PHP code is licensed under the GPL license, as is WordPress®. * 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/}. * * o (2) All other parts of ( s2Member Pro ); including, but not limited to: * the CSS code, some JavaScript code, images, and design; * are licensed according to the license purchased. * See: {@link http://www.s2member.com/prices/} * * Unless you have our prior written consent, you must NOT directly or indirectly license, * sub-license, sell, resell, or provide for free; part (2) of the s2Member Pro Module; * or make an offer to do any of these things. All of these things are strictly * prohibited with part (2) of the s2Member Pro Module. * * Your purchase of s2Member Pro includes free lifetime upgrades via s2Member.com * ( i.e. new features, bug fixes, updates, improvements ); along with full access * to our video tutorial library: {@link http://www.s2member.com/videos/} * * @package s2Member * @since 1.0 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /* Determine full URL to the directory this plugin resides in. */ $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] = ( stripos ( __FILE__ , WP_CONTENT_DIR ) !== 0 ) ? /* Have to assume plugins dir? */ plugins_url ( "/" . basename ( dirname ( dirname ( __FILE__ ) ) ) ) : /* Otherwise, this gives it a chance to live anywhere in the content dir. */ content_url ( preg_replace ( "/^(.*?)\/" . preg_quote ( basename ( WP_CONTENT_DIR ) , "/" ) . "/" , "" , str_replace ( DIRECTORY_SEPARATOR , "/" , dirname ( dirname ( __FILE__ ) ) ) ) ) ; /* Turn upsells & donations off in menu pages of back-end adminstrative panels. */ $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "menu_pages" ] = array_merge ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "menu_pages" ] , array ( "upsell-pro" = false ) ) ; /* Configure checksum time for both of the syscon.inc.php files. */ $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "checksum" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "checksum" ] + filemtime ( __FILE__ ) ; /* Configure the number of Membership Levels being used on this installation. */ if ( defined ( "MEMBERSHIP_LEVELS" ) && is_numeric (MEMBERSHIP_LEVELS) && MEMBERSHIP_LEVELS = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "min_levels" ] && MEMBERSHIP_LEVELS = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "max_levels" ] ) $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] = (int)MEMBERSHIP_LEVELS; /* Add some new default options for the Pro Module. */ if ( ! function_exists ( "ws_plugin__s2member_pro_default_options" ) ) { add_filter ( "ws_plugin__s2member_default_options" , "ws_plugin__s2member_pro_default_options" ) ; /** * Configures default options array for s2Member Pro. * * **WARNING:** This is a system configuration function, please DO NOT EDIT this function directly. * Instead, use the plugin options panel in WordPress® to override these settings. * * @package s2Member * @since 1.0 * * @param array $default_options Expects an array of default options passed in by the Filter. * @return array Merged with default options from the s2Member Framework. * All Pro options should be prefixed with `pro_`. */ function ws_plugin__s2member_pro_default_options ( $default_options = array ( ) ) { $pro_default_options = array ( /* Defaults for the Pro Module. */ /**/ "pro_signup_email_recipients" = '"%%full_name%%" %%payer_email%%' , /**/ "pro_signup_email_subject" = "Congratulations! ( your membership has been approved )" , /**/ "pro_signup_email_message" = "Thanks %%first_name%%! Your membership has been approved.\n \n %%item_name%% \n \nSubscr. ID: %%subscr_id%% \nCharges today: $%%initial%% \nRecurring charges: $%%recurring/regular_cycle%% \n \nYour Username/Password will arrive shortly, in a separate email. If you have any trouble, please feel free to contact us.\n \nBest Regards,\n" . get_bloginfo ( "name" ) , /**/ /**/ "pro_sp_email_recipients" = '"%%full_name%%" %%payer_email%%' , /**/ "pro_sp_email_subject" = "Thank You! ( instructions for access )" , /**/ "pro_sp_email_message" = "Thanks %%first_name%%!\n \n %%item_name%% \n \nTransaction ID: %%txn_id%% \nCharges today: $%%amount%% \n \nYour order can be retrieved here:\n %%sp_access_url%% \n( link expires in %%sp_access_exp%% )\n \nIf you have any trouble, please feel free to contact us.\n \nBest Regards,\n" . get_bloginfo ( "name" ) , /**/ /**/ "pro_coupon_codes" = "" , /* There are NO Coupon Codes by default. */ "pro_default_tax" = "0.0%" , "pro_tax_rates" = "" , /**/ /**/ "pro_gateways_enabled" = array ( "paypal" ) , /* Defaults to PayPal® Pro. */ "pro_paypal_checkout_rdp" = "0" , /* Charge 1st payment on Recurring Profiles in real-time? */ "pro_alipay_seller_email" = "" , "pro_alipay_partner_id" = "" , "pro_alipay_security_code" = "" , /**/ "pro_authnet_api_login_id" = "" , "pro_authnet_api_trans_key" = "" , "pro_authnet_api_salt_key" = "" , "pro_authnet_sandbox" = "0" , /**/ "pro_ccbill_client_id" = "" , "pro_ccbill_client_sid" = "0000" , "pro_ccbill_form_name" = "" , "pro_ccbill_dl_user" = "" , "pro_ccbill_dl_pass" = "" , "pro_ccbill_salt_key" = "" , /**/ "pro_clickbank_username" = "" , "pro_clickbank_clerk_key" = "" , "pro_clickbank_developer_key" = "" , "pro_clickbank_secret_key" = "" , /**/ "pro_google_merchant_id" = "" , "pro_google_merchant_key" = "" , "pro_google_sandbox" = "0" ) ; /**/ return array_merge ( $default_options , $pro_default_options ) ; } } /* Check/validate default options for the Pro Module. */ if ( ! function_exists ( "ws_plugin__s2member_pro_options_before_checksum" ) ) { add_filter ( "ws_plugin__s2member_options_before_checksum" , "ws_plugin__s2member_pro_options_before_checksum" ) ; /** * Configures options array; while handling s2Member Pro options. * * **WARNING:** This is a system configuration function, please DO NOT EDIT this function directly. * Instead, use the plugin options panel in WordPress® to override these settings. * * @package s2Member * @since 1.0 * * @param array $options Expects an array of options, by reference, passed in by the Filter. * ``$GLOBALS["WS_PLUGIN__"]["s2member"]["o"]``, by reference. * @return array Merged with options from the s2Member Framework. * All Pro options should be prefixed with `pro_`. */ function ws_plugin__s2member_pro_options_before_checksum ( & $options = array ( ) ) { $pro_default_options = ws_plugin__s2member_pro_default_options ( ) ; /* Backward compatibility for "pro_other_gateways_enabled", which was renamed in v1.5. */ if ( isset ( $options [ "pro_other_gateways_enabled" ] ) && is_array ( $options [ "pro_other_gateways_enabled" ] ) ) $options [ "pro_gateways_enabled" ] = array_unique ( array_merge ( $options [ "pro_other_gateways_enabled" ] , $pro_default_options [ "pro_gateways_enabled" ] ) ) ; /* Backward compatibility for "pro_paypal_default_tax", which was renamed in v1.3. */ if ( isset ( $options [ "pro_paypal_default_tax" ] ) ) $options [ "pro_default_tax" ] = $options [ "pro_paypal_default_tax" ] ; /* Backward compatibility for "pro_paypal_tax_rates", which was renamed in v1.3. */ if ( isset ( $options [ "pro_paypal_tax_rates" ] ) ) $options [ "pro_tax_rates" ] = $options [ "pro_paypal_tax_rates" ] ; /**/ foreach ( $options /* $GLOBALS["WS_PLUGIN__"]["s2member"]["o"] */ as $key = & $value ) { if ( isset ( $pro_default_options [ $key ] ) || preg_match ( "/^pro_/" , $key ) ) { if ( ! isset ( $pro_default_options [ $key ] ) ) unset ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ $key ] ) ; /**/ else if ( preg_match ( "/^pro_(signup|sp)_email_recipients$/" , $key ) && ! is_string ( $value ) ) /* Can be empty. */ $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_(signup|sp)_email_(subject|message)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_coupon_codes" && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_default_tax" && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_tax_rates" && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_gateways_enabled" && ! is_array ( $value ) ) /* Can be empty. */ $value = $pro_default_options [ $key ] ; /**/ else if ( $key === "pro_paypal_checkout_rdp" && ( ! is_string ( $value ) || ! is_numeric ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_alipay_(seller_email|partner_id|security_code)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_authnet_(api_login_id|api_trans_key|api_salt_key)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_ccbill_(client_id|client_sid|form_name|dl_user|dl_pass|salt_key)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_clickbank_(username|clerk_key|developer_key|secret_key)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_google_(merchant_id|merchant_key)$/" , $key ) && ( ! is_string ( $value ) || ! strlen ( $value ) ) ) $value = $pro_default_options [ $key ] ; /**/ else if ( preg_match ( "/^pro_(google|authnet)_sandbox$/" , $key ) && ( ! is_string ( $value ) || ! is_numeric ( $value ) ) ) $value = $pro_default_options [ $key ] ; } } /**/ return $options ; /* $GLOBALS["WS_PLUGIN__"]["s2member"]["o"] by reference. */ } } ? [ full view ]s2member-pro\includes\syscon.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-09T06:19:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13398&p=25693#p25693 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\syscon.inc.php
Docs updated: December 20, 2011, 9:53 am

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

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


]]>