Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:51:54-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13233 2011-12-20T09:51:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=57992#p57992 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: December 20, 2011, 9:52 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:05:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=55674#p55674 <![CDATA[s2Member v111206 / Source Code: s2member-p...]]>
s2Member v111206
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: December 7, 2011, 1:05 am

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

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


]]>
2011-11-05T19:27:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=52048#p52048 <![CDATA[s2Member v111105 / Source Code: s2member-p...]]>
s2Member v111105
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-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:37:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=50144#p50144 <![CDATA[s2Member v111029 / Source Code: s2member-p...]]>
s2Member v111029
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: October 29, 2011, 9:37 pm

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

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


]]>
2011-10-17T15:41:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=47938#p47938 <![CDATA[s2Member v111017 / Source Code: s2member-p...]]>
s2Member v111017
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-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:37:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=46340#p46340 <![CDATA[s2Member v111011 / Source Code: s2member-p...]]>
s2Member v111011
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-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:37 pm


]]>
2011-10-03T15:49:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=44469#p44469 <![CDATA[s2Member v111003 / Source Code: s2member-p...]]>
s2Member v111003
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-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:43:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=43176#p43176 <![CDATA[s2Member v111002 / Source Code: s2member-p...]]>
s2Member v111002
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: October 3, 2011, 1:43 am

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

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


]]>
2011-09-27T05:28:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=41418#p41418 <![CDATA[s2Member v110927 / Source Code: s2member-p...]]>
s2Member v110927
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: September 27, 2011, 3:28 am

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

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


]]>
2011-09-26T21:04:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=40174#p40174 <![CDATA[s2Member v110926 / Source Code: s2member-p...]]>
s2Member v110926
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: September 26, 2011, 7:05 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:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=38318#p38318 <![CDATA[s2Member v110915 / Source Code: s2member-p...]]>
s2Member v110915
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: September 17, 2011, 3:04 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:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=36896#p36896 <![CDATA[s2Member v110913 / Source Code: s2member-p...]]>
s2Member v110913
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-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:04:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=35624#p35624 <![CDATA[s2Member v110912 / Source Code: s2member-p...]]>
s2Member v110912
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-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:04 pm


]]>
2011-08-15T15:17:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=31732#p31732 <![CDATA[s2Member v110815 / Source Code: s2member-p...]]>
s2Member v110815
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: August 15, 2011, 4:17 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\clickbank\clickbank-utilities.inc.php ?php /** * ClickBank® 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\ClickBank * @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_clickbank_utilities" ) ) { /** * ClickBank® utilities. * * @package s2Member\ClickBank * @since 1.5 */ class c_ws_plugin__s2member_pro_clickbank_utilities { /** * Formulates request Authorization headers. * * @package s2Member\ClickBank * @since 1.5 * * @return array Request Authorization headers for ClickBank® API communication. */ public static function clickbank_api_headers ( ) { $req [ "headers" ] [ "Accept" ] = "application/json" ; $req [ "headers" ] [ "Authorization" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_developer_key" ] . ":" . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_clerk_key" ] ; /**/ return $req ; /* Return array with headers.*/ } /** * Get ``$_POST`` or ``$_REQUEST`` vars from ClickBank®. * * @package s2Member\ClickBank * @since 1.5 * * @return array|bool An array of verified ``$_POST`` or ``$_REQUEST`` variables, else false. * * @todo Continue optimizing this routine with ``empty()`` and ``isset()``. * @todo Candidate for the use of ``ifsetor()``? */ public static function clickbank_postvars ( ) { if ( ! empty ( $_REQUEST [ "s2member_pro_clickbank_return" ] ) && ! empty ( $_REQUEST [ "cbpop" ] ) ) { $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 ] ) ; /**/ $cbpop = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_secret_key" ] ; $cbpop .= "|" . $postvars [ "cbreceipt" ] . "|" . $postvars [ "time" ] . "|" . $postvars [ "item" ] ; /**/ $mb = function_exists ( "mb_convert_encoding" ) ? @ mb_convert_encoding ( $cbpop , "UTF-8" ) : $cbpop ; $cbpop = ( $mb ) ? $mb : $cbpop ; /* Double check this, just in case conversion fails. */ $cbpop = strtoupper ( substr ( sha1 ( $cbpop ) , 0 , 8 ) ) ; /**/ if ( $postvars [ "cbpop" ] === $cbpop ) return $postvars ; /**/ else /* Nope. */ return false ; } else if ( ! empty ( $_REQUEST [ "s2member_pro_clickbank_notify" ] ) && ! empty ( $_REQUEST [ "cverify" ] ) ) { $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 ] ) ; /**/ $cverify = "" ; /* Initialize verification. */ /**/ ( $keys = array_keys ( $postvars ) ) . sort ( $keys ) ; foreach ( $keys as $key ) /* Go through keys. */ if ( $key && ! preg_match ( "/^(cverify)$/" , $key ) ) $cverify .= $postvars [ $key ] . "|" ; /**/ $cverify .= $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_secret_key" ] ; /**/ $mb = function_exists ( "mb_convert_encoding" ) ? @ mb_convert_encoding ( $cverify , "UTF-8" ) : $cverify ; $cverify = ( $mb ) ? $mb : $cverify ; /* Double check this, just in case conversion fails. */ $cverify = strtoupper ( substr ( sha1 ( $cverify ) , 0 , 8 ) ) ; /**/ if ( $postvars [ "cverify" ] === $cverify ) return $postvars ; /**/ else /* Nope. */ return false ; } else /* Nope. */ return false ; } /** * Credit card reminder on Return Page templates. * * @package s2Member\ClickBank * @since 110720 * * @attaches-to: ``add_filter("ws_plugin__s2member_return_template_support");`` * * @param str $support The current value for the `%%support%%` Replacement Code, passed through by the Filter. * @param array $vars An array of defined variables, passed through by the Filter. * @return str The ``$support`` value, after possible modification. */ public static function clickbank_cc_reminder ( $support = FALSE , $vars = FALSE ) { if ( ! empty ( $vars [ "template" ] ) && $vars [ "template" ] === "clickbank" ) return $support . /* Now add the reminder below this. ClickBank® requires site owners to display this. */ 'div class="cc-reminder"strongReminder:/strong Purchases at this site will appear on your credit card or bank statement as: codeClickBank®/code or codeCLKBANK*COM/code./div' ; /**/ return $support ; } } } ? [ full view ]s2member-pro\includes\classes\gateways\clickbank\clickbank-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:17 pm


]]>
2011-07-11T17:34:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=27898#p27898 <![CDATA[s2Member v110710 / Source Code: s2member-p...]]>
s2Member v110710
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: July 11, 2011, 6:34 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\clickbank\clickbank-utilities.inc.php ?php /** * ClickBank® 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\ClickBank * @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_clickbank_utilities" ) ) { /** * ClickBank® utilities. * * @package s2Member\ClickBank * @since 1.5 */ class c_ws_plugin__s2member_pro_clickbank_utilities { /** * Formulates request Authorization headers. * * @package s2Member\ClickBank * @since 1.5 * * @return array Request Authorization headers for ClickBank® API communication. */ public static function clickbank_api_headers ( ) { $req [ "headers" ] [ "Accept" ] = "application/json" ; $req [ "headers" ] [ "Authorization" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_developer_key" ] . ":" . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_clerk_key" ] ; /**/ return $req ; /* Return array with headers.*/ } /** * Get ``$_POST`` or ``$_REQUEST`` vars from ClickBank®. * * @package s2Member\ClickBank * @since 1.5 * * @return array|bool An array of verified ``$_POST`` or ``$_REQUEST`` variables, else false. * * @todo Continue optimizing this routine with ``empty()`` and ``isset()``. * @todo Candidate for the use of ``ifsetor()``? */ public static function clickbank_postvars ( ) { if ( ! empty ( $_REQUEST [ "s2member_pro_clickbank_return" ] ) && ! empty ( $_REQUEST [ "cbpop" ] ) ) { $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 ] ) ; /**/ $cbpop = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_secret_key" ] ; $cbpop .= "|" . $postvars [ "cbreceipt" ] . "|" . $postvars [ "time" ] . "|" . $postvars [ "item" ] ; /**/ $mb = function_exists ( "mb_convert_encoding" ) ? @ mb_convert_encoding ( $cbpop , "UTF-8" ) : $cbpop ; $cbpop = ( $mb ) ? $mb : $cbpop ; /* Double check this, just in case conversion fails. */ $cbpop = strtoupper ( substr ( sha1 ( $cbpop ) , 0 , 8 ) ) ; /**/ if ( $postvars [ "cbpop" ] === $cbpop ) return $postvars ; /**/ else /* Nope. */ return false ; } else if ( ! empty ( $_REQUEST [ "s2member_pro_clickbank_notify" ] ) && ! empty ( $_REQUEST [ "cverify" ] ) ) { $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 ] ) ; /**/ $cverify = "" ; /* Initialize verification. */ /**/ ( $keys = array_keys ( $postvars ) ) . sort ( $keys ) ; foreach ( $keys as $key ) /* Go through keys. */ if ( $key && ! preg_match ( "/^(cverify)$/" , $key ) ) $cverify .= $postvars [ $key ] . "|" ; /**/ $cverify .= $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "pro_clickbank_secret_key" ] ; /**/ $mb = function_exists ( "mb_convert_encoding" ) ? @ mb_convert_encoding ( $cverify , "UTF-8" ) : $cverify ; $cverify = ( $mb ) ? $mb : $cverify ; /* Double check this, just in case conversion fails. */ $cverify = strtoupper ( substr ( sha1 ( $cverify ) , 0 , 8 ) ) ; /**/ if ( $postvars [ "cverify" ] === $cverify ) return $postvars ; /**/ else /* Nope. */ return false ; } else /* Nope. */ return false ; } } } ? [ full view ]s2member-pro\includes\classes\gateways\clickbank\clickbank-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:34 pm


]]>
2011-07-09T06:15:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13233&p=25528#p25528 <![CDATA[s2Member v111220 / Source Code: s2member-p...]]>
s2Member v111220
Source Code: s2member-pro\includes\classes\gateways\clickbank\clickbank-utilities.inc.php
Docs updated: December 20, 2011, 9:52 am

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

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


]]>