Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:51:31-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13185 2011-12-20T09:51:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=57944#p57944 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=55626#p55626 <![CDATA[s2Member v111206 / Source Code: s2member-p...]]>
s2Member v111206
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=52000#p52000 <![CDATA[s2Member v111105 / Source Code: s2member-p...]]>
s2Member v111105
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=50096#p50096 <![CDATA[s2Member v111029 / Source Code: s2member-p...]]>
s2Member v111029
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=47890#p47890 <![CDATA[s2Member v111017 / Source Code: s2member-p...]]>
s2Member v111017
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=46292#p46292 <![CDATA[s2Member v111011 / Source Code: s2member-p...]]>
s2Member v111011
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.inc.php
Docs updated: October 11, 2011, 12:37 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:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=44421#p44421 <![CDATA[s2Member v111003 / Source Code: s2member-p...]]>
s2Member v111003
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=43128#p43128 <![CDATA[s2Member v111002 / Source Code: s2member-p...]]>
s2Member v111002
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=41370#p41370 <![CDATA[s2Member v110927 / Source Code: s2member-p...]]>
s2Member v110927
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=40126#p40126 <![CDATA[s2Member v110926 / Source Code: s2member-p...]]>
s2Member v110926
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=38270#p38270 <![CDATA[s2Member v110915 / Source Code: s2member-p...]]>
s2Member v110915
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:29:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=36848#p36848 <![CDATA[s2Member v110913 / Source Code: s2member-p...]]>
s2Member v110913
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.inc.php
Docs updated: September 13, 2011, 11:29 pm

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

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


]]>
2011-09-13T12:03:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=35576#p35576 <![CDATA[s2Member v110912 / Source Code: s2member-p...]]>
s2Member v110912
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.inc.php
Docs updated: September 13, 2011, 10:04 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:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=31684#p31684 <![CDATA[s2Member v110815 / Source Code: s2member-p...]]>
s2Member v110815
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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-utilities.inc.php ?php /** * AliPay® utilities. * * 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_utilities" ) ) { /** * AliPay® utilities. * * @package s2Member\AliPay * @since 1.5 */ class c_ws_plugin__s2member_pro_alipay_utilities { /** * Generates an AliPay® link. * * @package s2Member\AliPay * @since 1.5 * * @param array $vars An array of variables to place in the link. * @return str Full URL to AliPay® checkout. */ public static function alipay_link_gen ( $vars = FALSE ) { $vars [ "_input_charset" ] = "utf-8" ; ksort ( $vars ) . reset ( $vars ) ; /**/ $query = "" ; /* Initialize query string. */ $_q = "" ; /* Initialize the unencoded query. */ /**/ $gateway = "https://www.alipay.com/cooperate/gateway.do" ; /**/ foreach (c_ws_plugin__s2member_utils_strings:: trim_deep ( $vars ) as $var = $value ) if ( $var && strlen ( $value ) && ! preg_match ( "/^(sign|sign_type)$/" , $var ) ) { $query .= ( ( $query ) ? "&" : "" ) . $var . "=" . ( ( preg_match ( "/^http(s)?\:\/\//i" , $value ) ) ? rawurlencode ( $value ) : urlencode ( $value ) ) ; $_q .= ( ( $_q ) ? "&" : "" ) . $var . "=" . $value ; /* This version is used to generate the digital signature. */ } /**/ return $gateway . "?" . $query . "&sign=" . urlencode ( md5 ( $_q . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_security_code" ] ) ) . "&sign_type=MD5" ; } /** * Get ``$_POST`` or ``$_REQUEST`` vars from AliPay®. * * @package s2Member\AliPay * @since 1.5 * * @return array|bool An array of verified AliPay® ``$_POST`` or ``$_REQUEST`` vars, else false. */ public static function alipay_postvars ( ) { if ( ! empty ( $_REQUEST [ "notify_id" ] ) && ! empty ( $_REQUEST [ "notify_type" ] ) && preg_match ( "/^trade_status_sync$/i" , $_REQUEST [ "notify_type" ] ) && ! empty ( $_REQUEST [ "sign" ] ) ) { $postvars = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_REQUEST ) ) ; /**/ foreach ( $postvars as $var = $value ) if ( preg_match ( "/^s2member_/" , $var ) ) unset ( $postvars [ $var ] ) ; /**/ ksort ( $postvars ) . reset ( $postvars ) ; /**/ $_q = "" ; /* Initialize unencoded query. */ /**/ $gateway = "https://www.alipay.com/cooperate/gateway.do" ; /**/ foreach ( $postvars as $var = $value ) if ( $var && strlen ( $value ) && ! preg_match ( "/^(sign|sign_type)$/" , $var ) ) $_q .= ( ( $_q ) ? "&" : "" ) . $var . "=" . $value ; /**/ if ( $postvars [ "sign" ] === md5 ( $_q . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_security_code" ] ) /**/ && preg_match ( "/true$/i" , trim (c_ws_plugin__s2member_utils_urls:: remote ( $gateway . "?service=notify_verify&partner=" . urlencode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_partner_id" ] ) . "¬ify_id=" . urlencode ( $postvars [ "notify_id" ] ) , "" , array ( "timeout" = 20 ) ) ) ) ) return $postvars ; /**/ else /* Nope. */ return false ; } else /* Nope. */ return false ; } } } ? [ full view ]s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=27848#p27848 <![CDATA[s2Member v110710 / Source Code: s2member-p...]]>
s2Member v110710
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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-utilities.inc.php ?php /** * AliPay® utilities. * * 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_utilities" ) ) { /** * AliPay® utilities. * * @package s2Member\AliPay * @since 1.5 */ class c_ws_plugin__s2member_pro_alipay_utilities { /** * Generates an AliPay® link. * * @package s2Member\AliPay * @since 1.5 * * @param array $vars An array of variables to place in the link. * @return str Full URL to AliPay® checkout. */ public static function alipay_link_gen ( $vars = FALSE ) { $vars [ "_input_charset" ] = "utf-8" ; ksort ( $vars ) . reset ( $vars ) ; /**/ $query = "" ; /* Initialize query string. */ $_q = "" ; /* Initialize the unencoded query. */ /**/ $gateway = "https://www.alipay.com/cooperate/gateway.do" ; /**/ foreach (c_ws_plugin__s2member_utils_strings:: trim_deep ( $vars ) as $var = $value ) if ( $var && strlen ( $value ) && ! preg_match ( "/^(sign|sign_type)$/" , $var ) ) { $query .= ( ( $query ) ? "&" : "" ) . $var . "=" . ( ( preg_match ( "/^http(s)?\:\/\//i" , $value ) ) ? rawurlencode ( $value ) : urlencode ( $value ) ) ; $_q .= ( ( $_q ) ? "&" : "" ) . $var . "=" . $value ; /* This version is used to generate the digital signature. */ } /**/ return $gateway . "?" . $query . "&sign=" . urlencode ( md5 ( $_q . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_security_code" ] ) ) . "&sign_type=MD5" ; } /** * Get ``$_POST`` or ``$_REQUEST`` vars from AliPay®. * * @package s2Member\AliPay * @since 1.5 * * @return array|bool An array of verified AliPay® ``$_POST`` or ``$_REQUEST`` vars, else false. */ public static function alipay_postvars ( ) { if ( ! empty ( $_REQUEST [ "notify_id" ] ) && ! empty ( $_REQUEST [ "notify_type" ] ) && preg_match ( "/^trade_status_sync$/i" , $_REQUEST [ "notify_type" ] ) && ! empty ( $_REQUEST [ "sign" ] ) ) { $postvars = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_REQUEST ) ) ; /**/ foreach ( $postvars as $var = $value ) if ( preg_match ( "/^s2member_/" , $var ) ) unset ( $postvars [ $var ] ) ; /**/ ksort ( $postvars ) . reset ( $postvars ) ; /**/ $_q = "" ; /* Initialize unencoded query. */ /**/ $gateway = "https://www.alipay.com/cooperate/gateway.do" ; /**/ foreach ( $postvars as $var = $value ) if ( $var && strlen ( $value ) && ! preg_match ( "/^(sign|sign_type)$/" , $var ) ) $_q .= ( ( $_q ) ? "&" : "" ) . $var . "=" . $value ; /**/ if ( $postvars [ "sign" ] === md5 ( $_q . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_security_code" ] ) /**/ && preg_match ( "/true$/i" , trim (c_ws_plugin__s2member_utils_urls:: remote ( $gateway . "?service=notify_verify&partner=" . urlencode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_alipay_partner_id" ] ) . "¬ify_id=" . urlencode ( $postvars [ "notify_id" ] ) , "" , array ( "timeout" = 20 ) ) ) ) ) return $postvars ; /**/ else /* Nope. */ return false ; } else /* Nope. */ return false ; } } } ? [ full view ]s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13185&p=25480#p25480 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\alipay\alipay-utilities.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


]]>