Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:50:36-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13096 2011-12-20T09:50:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=57832#p57832 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-cur.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:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=55514#p55514 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\utils-cur.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:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=51888#p51888 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\utils-cur.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:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=49983#p49983 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\utils-cur.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:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=47777#p47777 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\utils-cur.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:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=46178#p46178 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\utils-cur.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:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=44308#p44308 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\utils-cur.inc.php
Docs updated: October 3, 2011, 1:48 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:41:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=43015#p43015 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\utils-cur.inc.php
Docs updated: October 3, 2011, 1:41 am

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

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


]]>
2011-09-27T05:26:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=41261#p41261 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\utils-cur.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:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=40017#p40017 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\utils-cur.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:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=38159#p38159 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\utils-cur.inc.php
Docs updated: September 17, 2011, 2:21 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:28:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=36740#p36740 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\utils-cur.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:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=35468#p35468 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\utils-cur.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:14:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=31589#p31589 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\utils-cur.inc.php
Docs updated: August 15, 2011, 4:14 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\utils-cur.inc.php ?php /** * Currency utilities. * * 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\Utilities * @since 110531 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_cur" ) ) { /** * Currency utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_cur { /** * Currency converter. * * Uses the Google® currency conversion API. * * @package s2Member\Utilities * @since 3.5 * * @param int|str $a The amount, in ``$from``. * @param str $from A 3 character Currency Code. * @param str $to A 3 character Currency Code. * @return float|str|bool A numeric amount in ``$to``, * after having been converted. Else false. * * @see http://www.techmug.com/ajax-currency-co ... oogle-api/ */ public static function convert ( $a = FALSE , $from = FALSE , $to = FALSE ) { if ( is_numeric ( $a ) && strlen ( $from = strtoupper ( $from ) ) === 3 && strlen ( $to = strtoupper ( $to ) ) === 3 ) { $q = number_format ( $a , 2 , "." , "" ) . $from . "=?" . $to ; $api = "http://www.google.com/ig/calculator?hl=en&q=" . urlencode ( $q ) ; /**/ if ( ( $json = c_ws_plugin__s2member_utils_urls:: remote ( $api ) ) && is_array ( $json = json_decode ( $json , true ) ) && ! empty ( $json [ "icc" ] ) && isset ( $json [ "rhs" ] ) && strlen ( $json [ "rhs" ] ) ) { if ( is_numeric ( $c_a = preg_replace ( "/ .*$/" , "" , trim ( $json [ "rhs" ] ) ) ) && $c_a = 0 ) return number_format ( $c_a , 2 , "." , "" ) ; } } /**/ return false ; /* Default return value. */ } /** * Converts Currency Codes to Currency Symbols. * * Defaults to the `$` dollar sign. * * @package s2Member\Utilities * @since 110531 * * @param str $currency Expects a 3 character Currency Code. * @return str A Currency Symbol. Defaults to the `$` sign. */ public static function symbol ( $currency = FALSE ) { $symbols [ "AUD" ] = "$" ; /* Australian Dollar */ $symbols [ "BRL" ] = "R$" ; /* Brazilian Real */ $symbols [ "CAD" ] = "$" ; /* Canadian Dollar */ $symbols [ "CZK" ] = "Kč" ; /* Czech Koruna */ $symbols [ "DKK" ] = "kr" ; /* Danish Krone */ $symbols [ "EUR" ] = "€" ; /* Euro */ $symbols [ "HKD" ] = "$" ; /* Hong Kong Dollar */ $symbols [ "HUF" ] = "Ft" ; /* Hungarian Forint */ $symbols [ "ILS" ] = "₪" ; /* Israeli New Sheqel */ $symbols [ "JPY" ] = "¥" ; /* Japanese Yen */ $symbols [ "MYR" ] = "RM" ; /* Malaysian Ringgit */ $symbols [ "MXN" ] = "$" ; /* Mexican Peso */ $symbols [ "NOK" ] = "kr" ; /* Norwegian Krone */ $symbols [ "NZD" ] = "$" ; /* New Zealand Dollar */ $symbols [ "PHP" ] = "Php" ; /* Philippine Peso */ $symbols [ "PLN" ] = "zł" ; /* Polish Zloty */ $symbols [ "GBP" ] = "£" ; /* Pound Sterling */ $symbols [ "SGD" ] = "$" ; /* Singapore Dollar */ $symbols [ "SEK" ] = "kr" ; /* Swedish Krona */ $symbols [ "CHF" ] = "CHF" ; /* Swiss Franc */ $symbols [ "TWD" ] = "NT$" ; /* Taiwan New Dollar */ $symbols [ "THB" ] = "฿" ; /* Thai Baht */ $symbols [ "USD" ] = "$" ; /* U.S. Dollar */ /**/ if ( ( $currency = strtoupper ( $currency ) ) && ! empty ( $symbols [ $currency ] ) ) return $symbols [ $currency ] ; /**/ else /* Else `$` sign. */ return "$" ; } } } ? [ full view ]s2member\includes\classes\utils-cur.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-11T17:30:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=27759#p27759 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\utils-cur.inc.php
Docs updated: July 11, 2011, 6:30 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\utils-cur.inc.php ?php /** * Currency utilities. * * 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\Utilities * @since 110531 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_cur" ) ) { /** * Currency utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_cur { /** * Currency converter. * * Uses the Google® currency conversion API. * * @package s2Member\Utilities * @since 3.5 * * @param int|str $a The amount, in ``$from``. * @param str $from A 3 character Currency Code. * @param str $to A 3 character Currency Code. * @return float|str|bool A numeric amount in ``$to``, * after having been converted. Else false. * * @see http://www.techmug.com/ajax-currency-co ... oogle-api/ */ public static function convert ( $a = FALSE , $from = FALSE , $to = FALSE ) { if ( is_numeric ( $a ) && strlen ( $from = strtoupper ( $from ) ) === 3 && strlen ( $to = strtoupper ( $to ) ) === 3 ) { $q = number_format ( $a , 2 , "." , "" ) . $from . "=?" . $to ; $api = "http://www.google.com/ig/calculator?hl=en&q=" . urlencode ( $q ) ; /**/ if ( ( $json = c_ws_plugin__s2member_utils_urls:: remote ( $api ) ) && is_array ( $json = json_decode ( $json , true ) ) && ! empty ( $json [ "icc" ] ) && isset ( $json [ "rhs" ] ) && strlen ( $json [ "rhs" ] ) ) { if ( is_numeric ( $c_a = preg_replace ( "/ .*$/" , "" , trim ( $json [ "rhs" ] ) ) ) && $c_a = 0 ) return number_format ( $c_a , 2 , "." , "" ) ; } } /**/ return false ; /* Default return value. */ } /** * Converts Currency Codes to Currency Symbols. * * Defaults to the `$` dollar sign. * * @package s2Member\Utilities * @since 110531 * * @param str $currency Expects a 3 character Currency Code. * @return str A Currency Symbol. Defaults to the `$` sign. */ public static function symbol ( $currency = FALSE ) { $symbols [ "AUD" ] = "$" ; /* Australian Dollar */ $symbols [ "BRL" ] = "R$" ; /* Brazilian Real */ $symbols [ "CAD" ] = "$" ; /* Canadian Dollar */ $symbols [ "CZK" ] = "Kč" ; /* Czech Koruna */ $symbols [ "DKK" ] = "kr" ; /* Danish Krone */ $symbols [ "EUR" ] = "€" ; /* Euro */ $symbols [ "HKD" ] = "$" ; /* Hong Kong Dollar */ $symbols [ "HUF" ] = "Ft" ; /* Hungarian Forint */ $symbols [ "ILS" ] = "₪" ; /* Israeli New Sheqel */ $symbols [ "JPY" ] = "¥" ; /* Japanese Yen */ $symbols [ "MYR" ] = "RM" ; /* Malaysian Ringgit */ $symbols [ "MXN" ] = "$" ; /* Mexican Peso */ $symbols [ "NOK" ] = "kr" ; /* Norwegian Krone */ $symbols [ "NZD" ] = "$" ; /* New Zealand Dollar */ $symbols [ "PHP" ] = "Php" ; /* Philippine Peso */ $symbols [ "PLN" ] = "zł" ; /* Polish Zloty */ $symbols [ "GBP" ] = "£" ; /* Pound Sterling */ $symbols [ "SGD" ] = "$" ; /* Singapore Dollar */ $symbols [ "SEK" ] = "kr" ; /* Swedish Krona */ $symbols [ "CHF" ] = "CHF" ; /* Swiss Franc */ $symbols [ "TWD" ] = "NT$" ; /* Taiwan New Dollar */ $symbols [ "THB" ] = "฿" ; /* Thai Baht */ $symbols [ "USD" ] = "$" ; /* U.S. Dollar */ /**/ if ( ( $currency = strtoupper ( $currency ) ) && ! empty ( $symbols [ $currency ] ) ) return $symbols [ $currency ] ; /**/ else /* Else `$` sign. */ return "$" ; } } } ? [ full view ]s2member\includes\classes\utils-cur.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-09T06:10:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13096&p=25391#p25391 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-cur.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:10 am


]]>