Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:51:27-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13176 2011-12-20T09:51:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=57935#p57935 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: December 20, 2011, 9:51 am

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

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


]]>
2011-12-07T01:04:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=55617#p55617 <![CDATA[s2Member v111206 / Source Code: s2member-p...]]>
s2Member v111206
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: December 7, 2011, 1:04 am

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

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


]]>
2011-11-05T19:27:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=51991#p51991 <![CDATA[s2Member v111105 / Source Code: s2member-p...]]>
s2Member v111105
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: November 5, 2011, 8:27 pm

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

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


]]>
2011-10-29T20:36:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=50087#p50087 <![CDATA[s2Member v111029 / Source Code: s2member-p...]]>
s2Member v111029
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: October 29, 2011, 9:36 pm

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

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


]]>
2011-10-17T15:41:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=47881#p47881 <![CDATA[s2Member v111017 / Source Code: s2member-p...]]>
s2Member v111017
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: October 17, 2011, 1:41 pm

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

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


]]>
2011-10-11T14:36:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=46283#p46283 <![CDATA[s2Member v111011 / Source Code: s2member-p...]]>
s2Member v111011
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: October 11, 2011, 12:36 pm

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

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


]]>
2011-10-03T15:49:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=44412#p44412 <![CDATA[s2Member v111003 / Source Code: s2member-p...]]>
s2Member v111003
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: October 3, 2011, 1:49 pm

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

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


]]>
2011-10-03T03:42:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=43119#p43119 <![CDATA[s2Member v111002 / Source Code: s2member-p...]]>
s2Member v111002
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: October 3, 2011, 1:42 am

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

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


]]>
2011-09-27T05:27:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=41361#p41361 <![CDATA[s2Member v110927 / Source Code: s2member-p...]]>
s2Member v110927
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: September 27, 2011, 3:27 am

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

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


]]>
2011-09-26T21:04:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=40117#p40117 <![CDATA[s2Member v110926 / Source Code: s2member-p...]]>
s2Member v110926
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: September 26, 2011, 7:04 pm

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

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


]]>
2011-09-17T17:03:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=38261#p38261 <![CDATA[s2Member v110915 / Source Code: s2member-p...]]>
s2Member v110915
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: September 17, 2011, 3:03 pm

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

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


]]>
2011-09-14T01:28:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=36839#p36839 <![CDATA[s2Member v110913 / Source Code: s2member-p...]]>
s2Member v110913
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: September 13, 2011, 11:28 pm

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

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


]]>
2011-09-13T12:03:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=35567#p35567 <![CDATA[s2Member v110912 / Source Code: s2member-p...]]>
s2Member v110912
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: September 13, 2011, 10:03 am

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

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


]]>
2011-08-15T15:16:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=31675#p31675 <![CDATA[s2Member v110815 / Source Code: s2member-p...]]>
s2Member v110815
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: August 15, 2011, 4:16 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\classes\gateways\alipay\alipay-button-in.inc.php ?php /** * Shortcode `[s2Member-Pro-AliPay-Button /]` ( inner processing routines ). * * 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\AliPay * @since 1.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_pro_alipay_button_in" ) ) { /** * Shortcode `[s2Member-Pro-AliPay-Button /]` ( inner processing routines ). * * @package s2Member\AliPay * @since 1.5 */ class c_ws_plugin__s2member_pro_alipay_button_in { /** * Shortcode `[s2Member-Pro-AliPay-Button /]`. * * @package s2Member\AliPay * @since 1.5 * * @attaches-to ``add_shortcode("s2Member-Pro-AliPay-Button");`` * * @param array $attr An array of Attributes. * @param str $content Content inside the Shortcode. * @param str $shortcode The actual Shortcode name itself. * @return str The resulting AliPay® Button Code, HTML markup. */ public static function sc_alipay_button ( $attr = FALSE , $content = FALSE , $shortcode = FALSE ) { c_ws_plugin__s2member_no_cache:: no_cache_constants ( true ) ; /* No caching on pages that contain this Button. */ /**/ $attr = c_ws_plugin__s2member_utils_strings:: trim_quot_deep ( ( array ) $attr ) ; /* Force array, and fix " in attrs. */ /**/ $attr = shortcode_atts ( array ( "ids" = "0" , "exp" = "72" , "level" = "1" , "ccaps" = "" , "desc" = "" , "custom" = $_SERVER [ "HTTP_HOST" ] , "ra" = "0.01" , "rp" = "1" , "rt" = "M" , "sp" = "0" , "success" = "" , "image" = "default" , "output" = "anchor" ) , $attr ) ; /**/ $attr [ "rt" ] = strtoupper ( $attr [ "rt" ] ) ; /* Term lengths absolutely must be provided in upper-case format. Only after running shortcode_atts(). */ $attr [ "ccaps" ] = strtolower ( $attr [ "ccaps" ] ) ; /* Custom Capabilities must be typed in lower-case format. Only after running shortcode_atts(). */ $attr [ "success" ] = str_ireplace ( array ( "&" , "&" ) , "&" , $attr [ "success" ] ) ; /* Convert ampersands. */ /**/ if ( $attr [ "sp" ] ) /* This is a special routine for Specific Post/Page Buttons. Specific Post/Page Buttons use a different template. */ { $default_image = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] . "/images/alipay-button.gif" ; /* Default Image. */ /**/ $attr [ "sp_ids_exp" ] = "sp:" . $attr [ "ids" ] . ":" . $attr [ "exp" ] ; /* Combined "sp:ids:expiration hours". */ /**/ $code = trim ( file_get_contents ( dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) ) . "/templates/buttons/alipay-sp-checkout-button.html" ) ) ; $code = preg_replace ( "/%%images%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] . "/images" ) ) , $code ) ; $code = preg_replace ( "/%%wpurl%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( site_url ( ) ) ) , $code ) ; /**/ $vars = array ( "service" = "create_direct_pay_by_user" , "payment_type" = 1 , "partner" = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_partner_id" ] , "seller_email" = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_seller_email" ] , /**/ "subject" = $_SERVER [ "HTTP_HOST" ] , "body" = $attr [ "desc" ] , "out_trade_no" = uniqid ( ) . "~" . $attr [ "sp_ids_exp" ] . ( ( $referencing = c_ws_plugin__s2member_utils_users:: get_user_subscr_or_wp_id ( ) ) ? "~" . $referencing : "" ) . "~" . $_SERVER [ "REMOTE_ADDR" ] , "extra_common_param" = $attr [ "custom" ] , "total_fee" = $attr [ "ra" ] , "paymethod" = "directPay" , /**/ "show_url" = home_url ( "/" ) , "return_url" = ( ( $attr [ "success" ] ) ? $attr [ "success" ] : site_url ( "/?s2member_pro_alipay_return=1" ) ) , "notify_url" = site_url ( "/" ) ) ; /**/ $code = preg_replace ( "/%%url%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr (c_ws_plugin__s2member_pro_alipay_utilities:: alipay_link_gen ( $vars ) ) ) , $code ) ; /**/ $code = $_code = ( $attr [ "image" ] && $attr [ "image" ] !== "default" ) ? preg_replace ( '/ src\="(.*?)"/' , ' src="' . c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $attr [ "image" ] ) ) . '"' , $code ) : preg_replace ( '/ src\="(.*?)"/' , ' src="' . c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $default_image ) ) . '"' , $code ) ; /**/ $code = ( $attr [ "output" ] === "anchor" ) ? $code : $code ; /* Buttons already anchor format. */ $code = ( $attr [ "output" ] === "url" ) ? c_ws_plugin__s2member_pro_alipay_utilities:: alipay_link_gen ( $vars ) : $code ; } else /* Otherwise, we'll process this Button normally, using the Membership routines. */ { $default_image = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] . "/images/alipay-button.gif" ; /* Default Image. */ /**/ $attr [ "desc" ] = ( ! $attr [ "desc" ] ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $attr [ "level" ] . "_label" ] : $attr [ "desc" ] ; /**/ $attr [ "level_ccaps_eotper" ] = ( $attr [ "rt" ] !== "L" ) ? $attr [ "level" ] . ":" . $attr [ "ccaps" ] . ":" . $attr [ "rp" ] . " " . $attr [ "rt" ] : $attr [ "level" ] . ":" . $attr [ "ccaps" ] ; $attr [ "level_ccaps_eotper" ] = rtrim ( $attr [ "level_ccaps_eotper" ] , ":" ) ; /* Clean any trailing separators from this string. */ /**/ $code = trim ( file_get_contents ( dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) ) . "/templates/buttons/alipay-checkout-button.html" ) ) ; $code = preg_replace ( "/%%images%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] . "/images" ) ) , $code ) ; $code = preg_replace ( "/%%wpurl%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( site_url ( ) ) ) , $code ) ; /**/ $vars = array ( "service" = "create_direct_pay_by_user" , "payment_type" = 1 , "partner" = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_partner_id" ] , "seller_email" = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_seller_email" ] , /**/ "subject" = $_SERVER [ "HTTP_HOST" ] , "body" = $attr [ "desc" ] , "out_trade_no" = uniqid ( ) . "~" . $attr [ "level_ccaps_eotper" ] . ( ( $referencing = c_ws_plugin__s2member_utils_users:: get_user_subscr_or_wp_id ( ) ) ? "~" . $referencing : "" ) . "~" . $_SERVER [ "REMOTE_ADDR" ] , "extra_common_param" = $attr [ "custom" ] , "total_fee" = $attr [ "ra" ] , "paymethod" = "directPay" , /**/ "show_url" = home_url ( "/" ) , "return_url" = ( ( $attr [ "success" ] && ! $referencing ) ? $attr [ "success" ] : site_url ( "/?s2member_pro_alipay_return=1" ) ) , "notify_url" = site_url ( "/" ) ) ; /**/ $code = preg_replace ( "/%%url%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr (c_ws_plugin__s2member_pro_alipay_utilities:: alipay_link_gen ( $vars ) ) ) , $code ) ; /**/ $code = $_code = ( $attr [ "image" ] && $attr [ "image" ] !== "default" ) ? preg_replace ( '/ src\="(.*?)"/' , ' src="' . c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $attr [ "image" ] ) ) . '"' , $code ) : preg_replace ( '/ src\="(.*?)"/' , ' src="' . c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $default_image ) ) . '"' , $code ) ; /**/ $code = ( $attr [ "output" ] === "anchor" ) ? $code : $code ; /* Buttons already anchor format. */ $code = ( $attr [ "output" ] === "url" ) ? c_ws_plugin__s2member_pro_alipay_utilities:: alipay_link_gen ( $vars ) : $code ; } /**/ return $code ; /* The completed Button Code. */ } } } ? [ full view ]s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-11T17:33:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=27839#p27839 <![CDATA[s2Member v110710 / Source Code: s2member-p...]]>
s2Member v110710
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: July 11, 2011, 6:33 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\classes\gateways\alipay\alipay-button-in.inc.php ?php /** * Shortcode `[s2Member-Pro-AliPay-Button /]` ( inner processing routines ). * * 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\AliPay * @since 1.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_pro_alipay_button_in" ) ) { /** * Shortcode `[s2Member-Pro-AliPay-Button /]` ( inner processing routines ). * * @package s2Member\AliPay * @since 1.5 */ class c_ws_plugin__s2member_pro_alipay_button_in { /** * Shortcode `[s2Member-Pro-AliPay-Button /]`. * * @package s2Member\AliPay * @since 1.5 * * @attaches-to ``add_shortcode("s2Member-Pro-AliPay-Button");`` * * @param array $attr An array of Attributes. * @param str $content Content inside the Shortcode. * @param str $shortcode The actual Shortcode name itself. * @return str The resulting AliPay® Button Code, HTML markup. */ public static function sc_alipay_button ( $attr = FALSE , $content = FALSE , $shortcode = FALSE ) { c_ws_plugin__s2member_no_cache:: no_cache_constants ( true ) ; /* No caching on pages that contain this Button. */ /**/ $attr = c_ws_plugin__s2member_utils_strings:: trim_quot_deep ( ( array ) $attr ) ; /* Force array, and fix " in attrs. */ /**/ $attr = shortcode_atts ( array ( "ids" = "0" , "exp" = "72" , "level" = "1" , "ccaps" = "" , "desc" = "" , "custom" = $_SERVER [ "HTTP_HOST" ] , "ra" = "0.01" , "rp" = "1" , "rt" = "M" , "sp" = "0" , "success" = "" , "image" = "default" , "output" = "anchor" ) , $attr ) ; /**/ $attr [ "rt" ] = strtoupper ( $attr [ "rt" ] ) ; /* Term lengths absolutely must be provided in upper-case format. Only after running shortcode_atts(). */ $attr [ "ccaps" ] = strtolower ( $attr [ "ccaps" ] ) ; /* Custom Capabilities must be typed in lower-case format. Only after running shortcode_atts(). */ $attr [ "success" ] = str_ireplace ( array ( "&" , "&" ) , "&" , $attr [ "success" ] ) ; /* Convert ampersands. */ /**/ if ( $attr [ "sp" ] ) /* This is a special routine for Specific Post/Page Buttons. Specific Post/Page Buttons use a different template. */ { $default_image = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] . "/images/alipay-button.gif" ; /* Default Image. */ /**/ $attr [ "sp_ids_exp" ] = "sp:" . $attr [ "ids" ] . ":" . $attr [ "exp" ] ; /* Combined "sp:ids:expiration hours". */ /**/ $code = trim ( file_get_contents ( dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) ) . "/templates/buttons/alipay-sp-checkout-button.html" ) ) ; $code = preg_replace ( "/%%images%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] . "/images" ) ) , $code ) ; $code = preg_replace ( "/%%wpurl%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( site_url ( ) ) ) , $code ) ; /**/ $vars = array ( "service" = "create_direct_pay_by_user" , "payment_type" = 1 , "partner" = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_partner_id" ] , "seller_email" = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_seller_email" ] , /**/ "subject" = $_SERVER [ "HTTP_HOST" ] , "body" = $attr [ "desc" ] , "out_trade_no" = time ( ) . "~" . $attr [ "sp_ids_exp" ] . ( ( $referencing = c_ws_plugin__s2member_utils_users:: get_user_subscr_or_wp_id ( ) ) ? "~" . $referencing : "" ) . "~" . $_SERVER [ "REMOTE_ADDR" ] , "extra_common_param" = $attr [ "custom" ] , "total_fee" = $attr [ "ra" ] , "paymethod" = "directPay" , /**/ "show_url" = home_url ( "/" ) , "return_url" = ( ( $attr [ "success" ] ) ? $attr [ "success" ] : site_url ( "/?s2member_pro_alipay_return=1" ) ) , "notify_url" = site_url ( "/" ) ) ; /**/ $code = preg_replace ( "/%%url%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr (c_ws_plugin__s2member_pro_alipay_utilities:: alipay_link_gen ( $vars ) ) ) , $code ) ; /**/ $code = $_code = ( $attr [ "image" ] && $attr [ "image" ] !== "default" ) ? preg_replace ( '/ src\="(.*?)"/' , ' src="' . c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $attr [ "image" ] ) ) . '"' , $code ) : preg_replace ( '/ src\="(.*?)"/' , ' src="' . c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $default_image ) ) . '"' , $code ) ; /**/ $code = ( $attr [ "output" ] === "anchor" ) ? $code : $code ; /* Buttons already anchor format. */ $code = ( $attr [ "output" ] === "url" ) ? c_ws_plugin__s2member_pro_alipay_utilities:: alipay_link_gen ( $vars ) : $code ; } else /* Otherwise, we'll process this Button normally, using the Membership routines. */ { $default_image = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] . "/images/alipay-button.gif" ; /* Default Image. */ /**/ $attr [ "desc" ] = ( ! $attr [ "desc" ] ) ? $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "level" . $attr [ "level" ] . "_label" ] : $attr [ "desc" ] ; /**/ $attr [ "level_ccaps_eotper" ] = ( $attr [ "rt" ] !== "L" ) ? $attr [ "level" ] . ":" . $attr [ "ccaps" ] . ":" . $attr [ "rp" ] . " " . $attr [ "rt" ] : $attr [ "level" ] . ":" . $attr [ "ccaps" ] ; $attr [ "level_ccaps_eotper" ] = rtrim ( $attr [ "level_ccaps_eotper" ] , ":" ) ; /* Clean any trailing separators from this string. */ /**/ $code = trim ( file_get_contents ( dirname ( dirname ( dirname ( dirname ( __FILE__ ) ) ) ) . "/templates/buttons/alipay-checkout-button.html" ) ) ; $code = preg_replace ( "/%%images%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member_pro" ] [ "c" ] [ "dir_url" ] . "/images" ) ) , $code ) ; $code = preg_replace ( "/%%wpurl%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( site_url ( ) ) ) , $code ) ; /**/ $vars = array ( "service" = "create_direct_pay_by_user" , "payment_type" = 1 , "partner" = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_partner_id" ] , "seller_email" = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_seller_email" ] , /**/ "subject" = $_SERVER [ "HTTP_HOST" ] , "body" = $attr [ "desc" ] , "out_trade_no" = time ( ) . "~" . $attr [ "level_ccaps_eotper" ] . ( ( $referencing = c_ws_plugin__s2member_utils_users:: get_user_subscr_or_wp_id ( ) ) ? "~" . $referencing : "" ) . "~" . $_SERVER [ "REMOTE_ADDR" ] , "extra_common_param" = $attr [ "custom" ] , "total_fee" = $attr [ "ra" ] , "paymethod" = "directPay" , /**/ "show_url" = home_url ( "/" ) , "return_url" = ( ( $attr [ "success" ] && ! $referencing ) ? $attr [ "success" ] : site_url ( "/?s2member_pro_alipay_return=1" ) ) , "notify_url" = site_url ( "/" ) ) ; /**/ $code = preg_replace ( "/%%url%%/" , c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr (c_ws_plugin__s2member_pro_alipay_utilities:: alipay_link_gen ( $vars ) ) ) , $code ) ; /**/ $code = $_code = ( $attr [ "image" ] && $attr [ "image" ] !== "default" ) ? preg_replace ( '/ src\="(.*?)"/' , ' src="' . c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $attr [ "image" ] ) ) . '"' , $code ) : preg_replace ( '/ src\="(.*?)"/' , ' src="' . c_ws_plugin__s2member_utils_strings:: esc_ds ( esc_attr ( $default_image ) ) . '"' , $code ) ; /**/ $code = ( $attr [ "output" ] === "anchor" ) ? $code : $code ; /* Buttons already anchor format. */ $code = ( $attr [ "output" ] === "url" ) ? c_ws_plugin__s2member_pro_alipay_utilities:: alipay_link_gen ( $vars ) : $code ; } /**/ return $code ; /* The completed Button Code. */ } } } ? [ full view ]s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-09T06:13:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13176&p=25471#p25471 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-button-in.inc.php
Docs updated: December 20, 2011, 9:51 am

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

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


]]>