Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:49:28-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13006 2011-12-20T09:49:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=57716#p57716 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: December 20, 2011, 9:49 am

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

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


]]>
2011-12-07T01:02:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=55398#p55398 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: December 7, 2011, 1:02 am

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

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


]]>
2011-11-05T19:25:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=51772#p51772 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: November 5, 2011, 8:25 pm

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

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


]]>
2011-10-29T20:34:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=49867#p49867 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: October 29, 2011, 9:34 pm

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

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


]]>
2011-10-17T15:38:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=47661#p47661 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: October 17, 2011, 1:38 pm

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

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


]]>
2011-10-11T14:34:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=46061#p46061 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: October 11, 2011, 12:34 pm

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

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


]]>
2011-10-03T15:46:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=44192#p44192 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: October 3, 2011, 1:46 pm

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

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


]]>
2011-10-03T03:40:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=42899#p42899 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: October 3, 2011, 1:40 am

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

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


]]>
2011-09-27T05:25:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=41145#p41145 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: September 27, 2011, 3:25 am

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

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


]]>
2011-09-26T21:02:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=39901#p39901 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: September 26, 2011, 7:02 pm

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

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


]]>
2011-09-17T16:19:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=38045#p38045 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: September 17, 2011, 2:19 pm

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

Statistics: Posted by System Robot — September 17th, 2011, 4:19 pm


]]>
2011-09-14T01:27:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=36626#p36626 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: September 13, 2011, 11:27 pm

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

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


]]>
2011-09-13T12:02:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=35354#p35354 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: September 13, 2011, 10:02 am

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

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


]]>
2011-08-15T14:11:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=31461#p31461 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: August 15, 2011, 3:11 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\css-js-in.inc.php ?php /** * CSS/JS loading handlers for s2Member ( inner processing routines ). * * 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\CSS_JS * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_css_js_in" ) ) { /** * CSS/JS loading handlers for s2Member ( inner processing routines ). * * @package s2Member\CSS_JS * @since 3.5 */ class c_ws_plugin__s2member_css_js_in { /** * Outputs CSS for theme integration. * * @package s2Member\CSS_JS * @since 3.5 * * @attaches-to: ``add_action("init");`` * * @return null Or exits script execution after loading CSS. */ public static function css ( ) { do_action ( "ws_plugin__s2member_before_css" , get_defined_vars ( ) ) ; /**/ if ( ! empty ( $_GET [ "ws_plugin__s2member_css" ] ) ) { header ( "Content-Type: text/css; charset=utf-8" ) ; header ( "Expires: " . gmdate ( "D, d M Y H:i:s" , strtotime ( "+1 week" ) ) . " GMT" ) ; header ( "Last-Modified: " . gmdate ( "D, d M Y H:i:s" ) . " GMT" ) ; header ( "Cache-Control: max-age=604800" ) ; header ( "Pragma: public" ) ; /**/ $u = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] ; $i = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] . "/images" ; /**/ ob_start ( "c_ws_plugin__s2member_utils_css::compress_css" ) ; /**/ include_once dirname ( dirname ( __FILE__ ) ) . "/s2member.css" ; /**/ do_action ( "ws_plugin__s2member_during_css" , get_defined_vars ( ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /**/ do_action ( "ws_plugin__s2member_after_css" , get_defined_vars ( ) ) ; } /** * Outputs JS for theme integration. * * Be sure s2Member's API Constants are already defined before firing this. * * @package s2Member\CSS_JS * @since 3.5 * * @attaches-to: ``add_action("init");`` * * @return null Or exits script execution after loading JS w/Globals. */ public static function js_w_globals ( ) { do_action ( "ws_plugin__s2member_before_js_w_globals" , get_defined_vars ( ) ) ; /**/ if ( ! empty ( $_GET [ "ws_plugin__s2member_js_w_globals" ] ) ) { header ( "Content-Type: text/javascript; charset=utf-8" ) ; header ( "Expires: " . gmdate ( "D, d M Y H:i:s" , strtotime ( "+1 week" ) ) . " GMT" ) ; header ( "Last-Modified: " . gmdate ( "D, d M Y H:i:s" ) . " GMT" ) ; header ( "Cache-Control: max-age=604800" ) ; header ( "Pragma: public" ) ; /**/ echo "var S2MEMBER_VERSION = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_VERSION) . "'," ; /**/ echo "S2MEMBER_CURRENT_USER_LOGIN_COUNTER = " . S2MEMBER_CURRENT_USER_LOGIN_COUNTER . "," ; /**/ echo "S2MEMBER_CURRENT_USER_IS_LOGGED_IN = " . ( (S2MEMBER_CURRENT_USER_IS_LOGGED_IN) ? "true" : "false" ) . "," ; echo "S2MEMBER_CURRENT_USER_IS_LOGGED_IN_AS_MEMBER = " . ( (S2MEMBER_CURRENT_USER_IS_LOGGED_IN_AS_MEMBER) ? "true" : "false" ) . "," ; /**/ echo "S2MEMBER_CURRENT_USER_ACCESS_LEVEL = " . S2MEMBER_CURRENT_USER_ACCESS_LEVEL . "," ; echo "S2MEMBER_CURRENT_USER_ACCESS_LABEL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_ACCESS_LABEL) . "'," ; /**/ echo "S2MEMBER_CURRENT_USER_SUBSCR_ID = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_SUBSCR_ID) . "'," ; echo "S2MEMBER_CURRENT_USER_SUBSCR_OR_WP_ID = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_SUBSCR_OR_WP_ID) . "'," ; echo "S2MEMBER_CURRENT_USER_SUBSCR_GATEWAY = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_SUBSCR_GATEWAY) . "'," ; echo "S2MEMBER_CURRENT_USER_CUSTOM = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_CUSTOM) . "'," ; /**/ echo "S2MEMBER_CURRENT_USER_REGISTRATION_TIME = " . S2MEMBER_CURRENT_USER_REGISTRATION_TIME . "," ; echo "S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME = " . S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME . "," ; /**/ echo "S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS = " . S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS . "," ; echo "S2MEMBER_CURRENT_USER_REGISTRATION_DAYS = " . S2MEMBER_CURRENT_USER_REGISTRATION_DAYS . "," ; /**/ echo "S2MEMBER_CURRENT_USER_DISPLAY_NAME = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_DISPLAY_NAME) . "'," ; echo "S2MEMBER_CURRENT_USER_FIRST_NAME = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_FIRST_NAME) . "'," ; echo "S2MEMBER_CURRENT_USER_LAST_NAME = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_LAST_NAME) . "'," ; /**/ echo "S2MEMBER_CURRENT_USER_LOGIN = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_LOGIN) . "'," ; echo "S2MEMBER_CURRENT_USER_EMAIL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_EMAIL) . "'," ; echo "S2MEMBER_CURRENT_USER_IP = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_IP) . "'," ; echo "S2MEMBER_CURRENT_USER_REGISTRATION_IP = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_REGISTRATION_IP) . "'," ; /**/ echo "S2MEMBER_CURRENT_USER_ID = " . S2MEMBER_CURRENT_USER_ID . "," ; echo "S2MEMBER_CURRENT_USER_FIELDS = " . S2MEMBER_CURRENT_USER_FIELDS . "," ; /**/ echo "S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED = " . S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED . "," ; echo "S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_IS_UNLIMITED = " . ( (S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_IS_UNLIMITED) ? "true" : "false" ) . "," ; echo "S2MEMBER_CURRENT_USER_DOWNLOADS_CURRENTLY = " . S2MEMBER_CURRENT_USER_DOWNLOADS_CURRENTLY . "," ; echo "S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_DAYS = " . S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_DAYS . "," ; /**/ echo "S2MEMBER_FILE_DOWNLOAD_LIMIT_EXCEEDED_PAGE_ID = " . S2MEMBER_FILE_DOWNLOAD_LIMIT_EXCEEDED_PAGE_ID . "," ; echo "S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_ID = " . S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_ID . "," ; echo "S2MEMBER_LOGIN_WELCOME_PAGE_ID = " . S2MEMBER_LOGIN_WELCOME_PAGE_ID . "," ; /**/ echo "S2MEMBER_CURRENT_USER_PROFILE_MODIFICATION_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_PROFILE_MODIFICATION_PAGE_URL) . "'," ; echo "S2MEMBER_FILE_DOWNLOAD_LIMIT_EXCEEDED_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_FILE_DOWNLOAD_LIMIT_EXCEEDED_PAGE_URL) . "'," ; echo "S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL) . "'," ; echo "S2MEMBER_LOGIN_WELCOME_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_LOGIN_WELCOME_PAGE_URL) . "'," ; echo "S2MEMBER_LOGOUT_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_LOGOUT_PAGE_URL) . "'," ; echo "S2MEMBER_LOGIN_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_LOGIN_PAGE_URL) . "'," ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) { if ( defined ( ( $S2MEMBER_LEVELn_LABEL = "S2MEMBER_LEVEL" . $n . "_LABEL" ) ) ) echo $S2MEMBER_LEVELn_LABEL . " = '" . c_ws_plugin__s2member_utils_strings:: esc_sq ( constant ( $S2MEMBER_LEVELn_LABEL ) ) . "'," ; } /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) { if ( defined ( ( $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED = "S2MEMBER_LEVEL" . $n . "_FILE_DOWNLOADS_ALLOWED" ) ) ) echo $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED . " = " . constant ( $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED ) . "," ; } /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) { if ( defined ( ( $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED_DAYS = "S2MEMBER_LEVEL" . $n . "_FILE_DOWNLOADS_ALLOWED_DAYS" ) ) ) echo $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED_DAYS . " = " . constant ( $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED_DAYS ) . "," ; } /**/ echo "S2MEMBER_FILE_DOWNLOAD_INLINE_EXTENSIONS = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_FILE_DOWNLOAD_INLINE_EXTENSIONS) . "'," ; /**/ echo "S2MEMBER_REG_EMAIL_FROM_NAME = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_REG_EMAIL_FROM_NAME) . "'," ; echo "S2MEMBER_REG_EMAIL_FROM_EMAIL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_REG_EMAIL_FROM_EMAIL) . "'," ; /**/ echo "S2MEMBER_PAYPAL_NOTIFY_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_NOTIFY_URL) . "'," ; echo "S2MEMBER_PAYPAL_RETURN_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_RETURN_URL) . "'," ; /**/ echo "S2MEMBER_PAYPAL_BUSINESS = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_BUSINESS) . "'," ; echo "S2MEMBER_PAYPAL_ENDPOINT = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_ENDPOINT) . "'," ; echo "S2MEMBER_PAYPAL_API_ENDPOINT = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_API_ENDPOINT) . "'," ; /**/ echo "S2MEMBER_VALUE_FOR_PP_INV = Math.round (new Date ().getTime ()) + '~" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_IP) . "'," ; echo "S2MEMBER_VALUE_FOR_PP_INV_GEN = function(){ var invoice = '', formatSeed = function(seed, reqWidth) { seed = parseInt(seed, 10).toString (16); if (reqWidth seed.length) return seed.slice (seed.length - reqWidth); else if (reqWidth seed.length) return Array(1 + (reqWidth - seed.length)).join ('0') + seed; return seed; }; if (typeof S2MEMBER_VALUE_FOR_PP_INV_GEN_UNIQUE_SEED === 'undefined') S2MEMBER_VALUE_FOR_PP_INV_GEN_UNIQUE_SEED = Math.floor (Math.random () * 0x75bcd15); S2MEMBER_VALUE_FOR_PP_INV_GEN_UNIQUE_SEED++; invoice = formatSeed(parseInt(new Date ().getTime () / 1000, 10), 8); invoice += formatSeed(S2MEMBER_VALUE_FOR_PP_INV_GEN_UNIQUE_SEED, 5); invoice += '~' + S2MEMBER_CURRENT_USER_IP; return invoice; }," ; /**/ echo "S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0 = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0) . "'," ; echo "S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0 = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0) . "'," ; /**/ echo "S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1 = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1) . "'," ; echo "S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1 = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1) . "';" ; /**/ $u = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] ; $i = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] . "/images" ; /**/ include_once dirname ( dirname ( __FILE__ ) ) . "/s2member-min.js" ; /**/ do_action ( "ws_plugin__s2member_during_js_w_globals" , get_defined_vars ( ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /**/ do_action ( "ws_plugin__s2member_after_js_w_globals" , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\css-js-in.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 2:11 pm


]]>
2011-07-11T17:27:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=27669#p27669 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: July 11, 2011, 6:27 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\css-js-in.inc.php ?php /** * CSS/JS loading handlers for s2Member ( inner processing routines ). * * 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\CSS_JS * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_css_js_in" ) ) { /** * CSS/JS loading handlers for s2Member ( inner processing routines ). * * @package s2Member\CSS_JS * @since 3.5 */ class c_ws_plugin__s2member_css_js_in { /** * Outputs CSS for theme integration. * * @package s2Member\CSS_JS * @since 3.5 * * @attaches-to: ``add_action("init");`` * * @return null Or exits script execution after loading CSS. */ public static function css ( ) { do_action ( "ws_plugin__s2member_before_css" , get_defined_vars ( ) ) ; /**/ if ( ! empty ( $_GET [ "ws_plugin__s2member_css" ] ) ) { header ( "Content-Type: text/css; charset=utf-8" ) ; header ( "Expires: " . gmdate ( "D, d M Y H:i:s" , strtotime ( "+1 week" ) ) . " GMT" ) ; header ( "Last-Modified: " . gmdate ( "D, d M Y H:i:s" ) . " GMT" ) ; header ( "Cache-Control: max-age=604800" ) ; header ( "Pragma: public" ) ; /**/ $u = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] ; $i = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] . "/images" ; /**/ ob_start ( "c_ws_plugin__s2member_utils_css::compress_css" ) ; /**/ include_once dirname ( dirname ( __FILE__ ) ) . "/s2member.css" ; /**/ do_action ( "ws_plugin__s2member_during_css" , get_defined_vars ( ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /**/ do_action ( "ws_plugin__s2member_after_css" , get_defined_vars ( ) ) ; } /** * Outputs JS for theme integration. * * Be sure s2Member's API Constants are already defined before firing this. * * @package s2Member\CSS_JS * @since 3.5 * * @attaches-to: ``add_action("init");`` * * @return null Or exits script execution after loading JS w/Globals. */ public static function js_w_globals ( ) { do_action ( "ws_plugin__s2member_before_js_w_globals" , get_defined_vars ( ) ) ; /**/ if ( ! empty ( $_GET [ "ws_plugin__s2member_js_w_globals" ] ) ) { header ( "Content-Type: text/javascript; charset=utf-8" ) ; header ( "Expires: " . gmdate ( "D, d M Y H:i:s" , strtotime ( "+1 week" ) ) . " GMT" ) ; header ( "Last-Modified: " . gmdate ( "D, d M Y H:i:s" ) . " GMT" ) ; header ( "Cache-Control: max-age=604800" ) ; header ( "Pragma: public" ) ; /**/ $g = "var S2MEMBER_VERSION = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_VERSION) . "'," ; /**/ $g .= "S2MEMBER_CURRENT_USER_IS_LOGGED_IN = " . ( (S2MEMBER_CURRENT_USER_IS_LOGGED_IN) ? "true" : "false" ) . "," ; $g .= "S2MEMBER_CURRENT_USER_IS_LOGGED_IN_AS_MEMBER = " . ( (S2MEMBER_CURRENT_USER_IS_LOGGED_IN_AS_MEMBER) ? "true" : "false" ) . "," ; /**/ $g .= "S2MEMBER_CURRENT_USER_ACCESS_LEVEL = " . S2MEMBER_CURRENT_USER_ACCESS_LEVEL . "," ; $g .= "S2MEMBER_CURRENT_USER_ACCESS_LABEL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_ACCESS_LABEL) . "'," ; /**/ $g .= "S2MEMBER_CURRENT_USER_SUBSCR_ID = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_SUBSCR_ID) . "'," ; $g .= "S2MEMBER_CURRENT_USER_SUBSCR_OR_WP_ID = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_SUBSCR_OR_WP_ID) . "'," ; $g .= "S2MEMBER_CURRENT_USER_SUBSCR_GATEWAY = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_SUBSCR_GATEWAY) . "'," ; $g .= "S2MEMBER_CURRENT_USER_CUSTOM = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_CUSTOM) . "'," ; /**/ $g .= "S2MEMBER_CURRENT_USER_REGISTRATION_TIME = " . S2MEMBER_CURRENT_USER_REGISTRATION_TIME . "," ; $g .= "S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME = " . S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME . "," ; /**/ $g .= "S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS = " . S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS . "," ; $g .= "S2MEMBER_CURRENT_USER_REGISTRATION_DAYS = " . S2MEMBER_CURRENT_USER_REGISTRATION_DAYS . "," ; /**/ $g .= "S2MEMBER_CURRENT_USER_DISPLAY_NAME = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_DISPLAY_NAME) . "'," ; $g .= "S2MEMBER_CURRENT_USER_FIRST_NAME = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_FIRST_NAME) . "'," ; $g .= "S2MEMBER_CURRENT_USER_LAST_NAME = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_LAST_NAME) . "'," ; /**/ $g .= "S2MEMBER_CURRENT_USER_LOGIN = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_LOGIN) . "'," ; $g .= "S2MEMBER_CURRENT_USER_EMAIL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_EMAIL) . "'," ; $g .= "S2MEMBER_CURRENT_USER_IP = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_IP) . "'," ; $g .= "S2MEMBER_CURRENT_USER_REGISTRATION_IP = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_REGISTRATION_IP) . "'," ; /**/ $g .= "S2MEMBER_CURRENT_USER_ID = " . S2MEMBER_CURRENT_USER_ID . "," ; $g .= "S2MEMBER_CURRENT_USER_FIELDS = " . S2MEMBER_CURRENT_USER_FIELDS . "," ; /**/ $g .= "S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED = " . S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED . "," ; $g .= "S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_IS_UNLIMITED = " . ( (S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_IS_UNLIMITED) ? "true" : "false" ) . "," ; $g .= "S2MEMBER_CURRENT_USER_DOWNLOADS_CURRENTLY = " . S2MEMBER_CURRENT_USER_DOWNLOADS_CURRENTLY . "," ; $g .= "S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_DAYS = " . S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_DAYS . "," ; /**/ $g .= "S2MEMBER_FILE_DOWNLOAD_LIMIT_EXCEEDED_PAGE_ID = " . S2MEMBER_FILE_DOWNLOAD_LIMIT_EXCEEDED_PAGE_ID . "," ; $g .= "S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_ID = " . S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_ID . "," ; $g .= "S2MEMBER_LOGIN_WELCOME_PAGE_ID = " . S2MEMBER_LOGIN_WELCOME_PAGE_ID . "," ; /**/ $g .= "S2MEMBER_CURRENT_USER_PROFILE_MODIFICATION_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_PROFILE_MODIFICATION_PAGE_URL) . "'," ; $g .= "S2MEMBER_FILE_DOWNLOAD_LIMIT_EXCEEDED_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_FILE_DOWNLOAD_LIMIT_EXCEEDED_PAGE_URL) . "'," ; $g .= "S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL) . "'," ; $g .= "S2MEMBER_LOGIN_WELCOME_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_LOGIN_WELCOME_PAGE_URL) . "'," ; $g .= "S2MEMBER_LOGOUT_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_LOGOUT_PAGE_URL) . "'," ; $g .= "S2MEMBER_LOGIN_PAGE_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_LOGIN_PAGE_URL) . "'," ; /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) { if ( defined ( ( $S2MEMBER_LEVELn_LABEL = "S2MEMBER_LEVEL" . $n . "_LABEL" ) ) ) $g .= $S2MEMBER_LEVELn_LABEL . " = '" . c_ws_plugin__s2member_utils_strings:: esc_sq ( constant ( $S2MEMBER_LEVELn_LABEL ) ) . "'," ; } /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) { if ( defined ( ( $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED = "S2MEMBER_LEVEL" . $n . "_FILE_DOWNLOADS_ALLOWED" ) ) ) $g .= $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED . " = " . constant ( $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED ) . "," ; } /**/ for ( $n = 0 ; $n = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "levels" ] ; $n ++ ) { if ( defined ( ( $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED_DAYS = "S2MEMBER_LEVEL" . $n . "_FILE_DOWNLOADS_ALLOWED_DAYS" ) ) ) $g .= $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED_DAYS . " = " . constant ( $S2MEMBER_LEVELn_FILE_DOWNLOADS_ALLOWED_DAYS ) . "," ; } /**/ $g .= "S2MEMBER_FILE_DOWNLOAD_INLINE_EXTENSIONS = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_FILE_DOWNLOAD_INLINE_EXTENSIONS) . "'," ; /**/ $g .= "S2MEMBER_REG_EMAIL_FROM_NAME = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_REG_EMAIL_FROM_NAME) . "'," ; $g .= "S2MEMBER_REG_EMAIL_FROM_EMAIL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_REG_EMAIL_FROM_EMAIL) . "'," ; /**/ $g .= "S2MEMBER_PAYPAL_NOTIFY_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_NOTIFY_URL) . "'," ; $g .= "S2MEMBER_PAYPAL_RETURN_URL = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_RETURN_URL) . "'," ; /**/ $g .= "S2MEMBER_PAYPAL_BUSINESS = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_BUSINESS) . "'," ; $g .= "S2MEMBER_PAYPAL_ENDPOINT = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_ENDPOINT) . "'," ; $g .= "S2MEMBER_PAYPAL_API_ENDPOINT = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_PAYPAL_API_ENDPOINT) . "'," ; /**/ $g .= "S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0 = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0) . "'," ; $g .= "S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0 = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0) . "'," ; /**/ $g .= "S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1 = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1) . "'," ; $g .= "S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1 = '" . c_ws_plugin__s2member_utils_strings:: esc_sq (S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1) . "'," ; /**/ $g = trim ( $g , " ," ) . ";" ; /* Trim & add semicolon. */ /**/ $u = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] ; $i = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] . "/images" ; /**/ echo $g . "\n" ; /* Add a line break. */ unset ( $g ) ; /* Now unset this variable. */ /**/ include_once dirname ( dirname ( __FILE__ ) ) . "/s2member-min.js" ; /**/ do_action ( "ws_plugin__s2member_during_js_w_globals" , get_defined_vars ( ) ) ; /**/ exit ( ) ; /* Clean exit. */ } /**/ do_action ( "ws_plugin__s2member_after_js_w_globals" , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\css-js-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:27 pm


]]>
2011-07-09T06:07:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13006&p=25301#p25301 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\css-js-in.inc.php
Docs updated: December 20, 2011, 9:49 am

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

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


]]>