Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:49:40-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13030 2011-12-20T09:49:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=57740#p57740 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\no-cache.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:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=55422#p55422 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\no-cache.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:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=51796#p51796 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\no-cache.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:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=49891#p49891 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\no-cache.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:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=47685#p47685 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\no-cache.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:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=46085#p46085 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\no-cache.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:47:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=44216#p44216 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\no-cache.inc.php
Docs updated: October 3, 2011, 1:47 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:40:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=42923#p42923 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\no-cache.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:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=41169#p41169 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\no-cache.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:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=39925#p39925 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\no-cache.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:02 pm


]]>
2011-09-17T16:19:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=38069#p38069 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\no-cache.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:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=36650#p36650 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\no-cache.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:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=35378#p35378 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\no-cache.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:12:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=31485#p31485 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\no-cache.inc.php
Docs updated: August 15, 2011, 3:12 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\no-cache.inc.php ?php /** * No-cache 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\No_Cache * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_no_cache" ) ) { /** * No-cache routines. * * @package s2Member\No_Cache * @since 3.5 */ class c_ws_plugin__s2member_no_cache { /** * Handles no-cache headers and compatible constants for s2Member. * * This is compatible with Quick Cache and also with WP Super Cache. * * @package s2Member\No_Cache * @since 3.5 * * @attaches-to: ``add_action("init");`` * * @return null */ public static function no_cache ( ) { do_action ( "ws_plugin__s2member_before_no_cache" , get_defined_vars ( ) ) ; /**/ c_ws_plugin__s2member_no_cache:: no_cache_constants ( ) ; /* This first. */ c_ws_plugin__s2member_no_cache:: no_cache_headers ( ) ; /* Now run headers. */ /**/ do_action ( "ws_plugin__s2member_after_no_cache" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Defines compatible cache constants for s2Member. * * This is compatible with Quick Cache and also with WP Super Cache. * Quick Cache uses: ``QUICK_CACHE_ALLOWED``, and Super Cache uses: ``DONOTCACHEPAGE``. * Actually, Quick Cache is compatible with either of these defined constants. * * Always disallow caching for logged in users and GET requests with `/?s2member` systematic use. * For clarity on the systematic use with s2member in the request, see: `/classes/systematics.inc.php`. * Also disallow caching if the ``$no_cache`` param is passed in as true by other routines. * BUT, always obey the `qcAC` param that specifically allows caching. * * This function is also called upon by other routines that protect members-only content areas. * Members-only content areas should never be cached. In other words, there are some important supplemental * routines that occur outside the scope of this single function. This function is called upon by those other * targeted routines, to handle the cache constants when they are required. * * @package s2Member\No_Cache * @since 3.5 * * @param bool $no_cache Optional. Defaults to false. If true, force no-cache headers if at all possible. * @return null * * @see s2Member\URIs\c_ws_plugin__s2member_ruris::check_ruri_level_access() * @see s2Member\Categories\c_ws_plugin__s2member_catgs::check_catg_level_access() * @see s2Member\Tags\c_ws_plugin__s2member_ptags::check_ptag_level_access() * @see s2Member\Posts\c_ws_plugin__s2member_posts::check_post_level_access() * @see s2Member\Pages\c_ws_plugin__s2member_pages::check_page_level_access() * @see s2Member\IP_Restrictions\c_ws_plugin__s2member_ip_restrictions::ip_restrictions_ok() * @see s2Member\Files\c_ws_plugin__s2member_files::file_download_key() * @see Button/Form/Shortcode Generators. */ public static function no_cache_constants ( $no_cache = FALSE ) { static $once ; /* We only need to set these Constants once. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_no_cache_constants" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( ! $once && empty ( $_GET [ "qcAC" ] ) && ( $no_cache || is_user_logged_in ( ) || ( ! empty ( $_SERVER [ "QUERY_STRING" ] ) && strpos ( $_SERVER [ "QUERY_STRING" ] , "s2member" ) === 0 && c_ws_plugin__s2member_utils_conds:: is_site_root ( $_SERVER [ "REQUEST_URI" ] ) ) ) ) { /** * No-cache Constant for Quick Cache. * * @package s2Member\No_Cache * @since 3.5 * * @var bool */ if ( ! defined ( "QUICK_CACHE_ALLOWED" ) ) define ( "QUICK_CACHE_ALLOWED" , false ) ; /** * No-cache for other cache plugins. * * @package s2Member\No_Cache * @since 3.5 * * @var bool */ if ( ! defined ( "DONOTCACHEPAGE" ) ) define ( "DONOTCACHEPAGE" , true ) ; /**/ $GLOBALS [ "ws_plugin__s2member_no_cache_headers_selective" ] = true ; /**/ $once = true ; /* Only need to set these Constants one time. */ /**/ do_action ( "ws_plugin__s2member_during_no_cache_constants" , get_defined_vars ( ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_no_cache_constants" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Sends Cache-Control ( no-cache ) headers. * * This uses the ``nocache_headers()`` function provided by WordPress®. * This is compatible with the Quick Cache parameter `?qcABC=1` as well. * Always obey the `qcABC` param that specifically allows browser caching. * * @package s2Member\No_Cache * @since 3.5 * * @return null */ public static function no_cache_headers ( ) { static $once ; /* We only need to set these headers one time. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_no_cache_headers" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $using_selective_behavior = apply_filters ( "ws_plugin__s2member_no_cache_headers_selective" , false , get_defined_vars ( ) ) ; $selective = @ $GLOBALS [ "ws_plugin__s2member_no_cache_headers_selective" ] ; /* Selective ( i.e. required ) ? */ /**/ if ( ! $once && empty ( $_GET [ "qcABC" ] ) && ( ! $using_selective_behavior || $selective ) && ! apply_filters ( "ws_plugin__s2member_disable_no_cache_headers" , false , get_defined_vars ( ) ) ) { if ( is_array ( $headers = headers_list ( ) ) ) foreach ( $headers as $header ) /* Already? */ if ( stripos ( $header , "no-cache" ) !== false ) $no_cache_already_sent = true ; /**/ if ( ! $no_cache_already_sent ) nocache_headers ( ) ; /**/ $once = true ; /* Only need to set these headers once. */ /**/ do_action ( "ws_plugin__s2member_during_no_cache_headers" , get_defined_vars ( ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_no_cache_headers" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\no-cache.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-11T17:28:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=27693#p27693 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\no-cache.inc.php
Docs updated: July 11, 2011, 6:28 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\no-cache.inc.php ?php /** * No-cache 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\No_Cache * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_no_cache" ) ) { /** * No-cache routines. * * @package s2Member\No_Cache * @since 3.5 */ class c_ws_plugin__s2member_no_cache { /** * Handles no-cache headers and compatible constants for s2Member. * * This is compatible with Quick Cache and also with WP Super Cache. * * @package s2Member\No_Cache * @since 3.5 * * @attaches-to: ``add_action("init");`` * * @return null */ public static function no_cache ( ) { do_action ( "ws_plugin__s2member_before_no_cache" , get_defined_vars ( ) ) ; /**/ c_ws_plugin__s2member_no_cache:: no_cache_constants ( ) ; /* This first. */ c_ws_plugin__s2member_no_cache:: no_cache_headers ( ) ; /* Now run headers. */ /**/ do_action ( "ws_plugin__s2member_after_no_cache" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Defines compatible cache constants for s2Member. * * This is compatible with Quick Cache and also with WP Super Cache. * Quick Cache uses: ``QUICK_CACHE_ALLOWED``, and Super Cache uses: ``DONOTCACHEPAGE``. * Actually, Quick Cache is compatible with either of these defined constants. * * Always disallow caching for logged in users and GET requests with `/?s2member` systematic use. * For clarity on the systematic use with s2member in the request, see: `/classes/systematics.inc.php`. * Also disallow caching if the ``$no_cache`` param is passed in as true by other routines. * BUT, always obey the `qcAC` param that specifically allows caching. * * This function is also called upon by other routines that protect members-only content areas. * Members-only content areas should never be cached. In other words, there are some important supplemental * routines that occur outside the scope of this single function. This function is called upon by those other * targeted routines, to handle the cache constants when they are required. * * @package s2Member\No_Cache * @since 3.5 * * @param bool $no_cache Optional. Defaults to false. If true, force no-cache headers if at all possible. * @return null * * @see s2Member\URIs\c_ws_plugin__s2member_ruris::check_ruri_level_access() * @see s2Member\Categories\c_ws_plugin__s2member_catgs::check_catg_level_access() * @see s2Member\Tags\c_ws_plugin__s2member_ptags::check_ptag_level_access() * @see s2Member\Posts\c_ws_plugin__s2member_posts::check_post_level_access() * @see s2Member\Pages\c_ws_plugin__s2member_pages::check_page_level_access() * @see s2Member\IP_Restrictions\c_ws_plugin__s2member_ip_restrictions::ip_restrictions_ok() * @see s2Member\Files\c_ws_plugin__s2member_files::file_download_key() * @see Button/Form/Shortcode Generators. */ public static function no_cache_constants ( $no_cache = FALSE ) { static $once ; /* We only need to set these Constants once. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_no_cache_constants" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( ! $once && empty ( $_GET [ "qcAC" ] ) && ( $no_cache || is_user_logged_in ( ) || ( ! empty ( $_SERVER [ "QUERY_STRING" ] ) && strpos ( $_SERVER [ "QUERY_STRING" ] , "s2member" ) === 0 && c_ws_plugin__s2member_utils_conds:: is_site_root ( $_SERVER [ "REQUEST_URI" ] ) ) ) ) { /** * No-cache Constant for Quick Cache. * * @package s2Member\No_Cache * @since 3.5 * * @var bool */ if ( ! defined ( "QUICK_CACHE_ALLOWED" ) ) define ( "QUICK_CACHE_ALLOWED" , false ) ; /** * No-cache for other cache plugins. * * @package s2Member\No_Cache * @since 3.5 * * @var bool */ if ( ! defined ( "DONOTCACHEPAGE" ) ) define ( "DONOTCACHEPAGE" , true ) ; /**/ $GLOBALS [ "ws_plugin__s2member_no_cache_headers_selective" ] = true ; /**/ $once = true ; /* Only need to set these Constants one time. */ /**/ do_action ( "ws_plugin__s2member_during_no_cache_constants" , get_defined_vars ( ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_no_cache_constants" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Sends Cache-Control ( no-cache ) headers. * * This uses the ``nocache_headers()`` function provided by WordPress®. * This is compatible with the Quick Cache parameter `?qcABC=1` as well. * Always obey the `qcABC` param that specifically allows browser caching. * * @package s2Member\No_Cache * @since 3.5 * * @return null */ public static function no_cache_headers ( ) { static $once ; /* We only need to set these headers one time. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_no_cache_headers" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $using_selective_behavior = apply_filters ( "ws_plugin__s2member_no_cache_headers_selective" , false , get_defined_vars ( ) ) ; $selective = @ $GLOBALS [ "ws_plugin__s2member_no_cache_headers_selective" ] ; /* Selective ( i.e. required ) ? */ /**/ if ( ! $once && empty ( $_GET [ "qcABC" ] ) && ( ! $using_selective_behavior || $selective ) && ! apply_filters ( "ws_plugin__s2member_disable_no_cache_headers" , false , get_defined_vars ( ) ) ) { if ( is_array ( $headers = headers_list ( ) ) ) foreach ( $headers as $header ) /* Already? */ if ( stripos ( $header , "no-cache" ) !== false ) $no_cache_already_sent = true ; /**/ if ( ! $no_cache_already_sent ) nocache_headers ( ) ; /**/ $once = true ; /* Only need to set these headers once. */ /**/ do_action ( "ws_plugin__s2member_during_no_cache_headers" , get_defined_vars ( ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_no_cache_headers" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\no-cache.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-09T06:08:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13030&p=25325#p25325 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\no-cache.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:08 am


]]>