├── pro
├── src
├── includes
│ ├── translations
│ │ ├── .generate
│ │ └── README.md
│ ├── .htaccess
│ ├── jquery
│ │ ├── .htaccess
│ │ ├── jquery.sprintf
│ │ │ └── jquery.sprintf.min.js
│ │ └── jquery.json-ps
│ │ │ └── jquery.json-ps.min.js
│ ├── menu-pages
│ │ ├── code-samples
│ │ │ ├── current-user-profile-modification-page-url-1.x-php
│ │ │ ├── current-user-profile-modification-page-url-1-ops.x-php
│ │ │ ├── sas-sp-tracking-code.x-php
│ │ │ ├── sas-ccap-tracking-code.x-php
│ │ │ ├── idev-ccap-tracking-code.x-php
│ │ │ ├── idev-sp-tracking-code.x-php
│ │ │ ├── sas-signup-tracking-code.x-php
│ │ │ ├── idev-signup-tracking-code.x-php
│ │ │ ├── sas-modification-tracking-code.x-php
│ │ │ ├── sc-s2-conditional-nesting.x-php
│ │ │ ├── idev-modification-tracking-code.x-php
│ │ │ ├── sc-s2-conditional-nesting-farm.x-php
│ │ │ ├── ccap-file-downloads.x-php
│ │ │ ├── is-user-logged-in.x-php
│ │ │ ├── sc-current-user-can-full-access.x-php
│ │ │ ├── sc-is-user-logged-in-else.x-php
│ │ │ ├── sc-current-user-can-full-access-farm.x-php
│ │ │ ├── sc-is-user-logged-in-else-farm.x-php
│ │ │ ├── sc-s2-conditional-nesting-else.x-php
│ │ │ ├── current-user-profile-modification-page-url-3-ops.x-php
│ │ │ ├── sc-s2-conditional-nesting-else-farm.x-php
│ │ │ ├── current-user-profile-modification-page-url-3.x-php
│ │ │ ├── jwplayer-s2stream-mp3-rtmp.x-php
│ │ │ ├── jwplayer-s2stream-mp4-rtmp.x-php
│ │ │ ├── current-user-can-full-access.x-php
│ │ │ ├── jwplayer-s2stream-mp3.x-php
│ │ │ ├── jwplayer-s2stream-mp4.x-php
│ │ │ ├── current-user-id.x-php
│ │ │ ├── jwplayer-s2stream-mp3-rtmp-only.x-php
│ │ │ ├── jwplayer-s2stream-mp4-rtmp-only.x-php
│ │ │ ├── leveln-label.x-php
│ │ │ ├── current-user-last-name.x-php
│ │ │ ├── current-user-login.x-php
│ │ │ ├── current-user-first-name.x-php
│ │ │ ├── current-user-display-name.x-php
│ │ │ ├── current-user-is-logged-in.x-php
│ │ │ ├── current-user-email.x-php
│ │ │ ├── current-user-ip.x-php
│ │ │ ├── paypal-business.x-php
│ │ │ ├── reg-email-from-name.x-php
│ │ │ ├── sc-is-user-logged-in.x-php
│ │ │ ├── sc-is-user-logged-in-farm.x-php
│ │ │ ├── reg-email-from-email.x-php
│ │ │ ├── current-user-login-counter.x-php
│ │ │ ├── paypal-api-password.x-php
│ │ │ ├── paypal-endpoint.x-php
│ │ │ ├── current-user-can-constants-1.x-php
│ │ │ ├── paypal-api-username.x-php
│ │ │ ├── current-user-registration-ip.x-php
│ │ │ ├── current-user-registration-time.x-php
│ │ │ ├── current-user-access-label.x-php
│ │ │ ├── file-download-inline-extensions.x-php
│ │ │ ├── specific-page-restrictions.x-php
│ │ │ ├── leveln-file-downloads-allowed.x-php
│ │ │ ├── paypal-api-endpoint.x-php
│ │ │ ├── current-user-custom.x-php
│ │ │ ├── current-user-paid-registration-time.x-php
│ │ │ ├── current-user-profile-modification-page-url-2-ops.x-php
│ │ │ ├── current-user-is-logged-in-as-member.x-php
│ │ │ ├── leveln-file-downloads-allowed-days.x-php
│ │ │ ├── logout-page-url.x-php
│ │ │ ├── paypal-api-signature.x-php
│ │ │ ├── current-user-profile-modification-page-url-2.x-php
│ │ │ ├── paypal-return-url.x-php
│ │ │ ├── s2-conditional-supplements-1.x-php
│ │ │ ├── login-page-url.x-php
│ │ │ ├── paypal-notify-url.x-php
│ │ │ ├── current-user-downloads-allowed.x-php
│ │ │ ├── login-welcome-page-url.x-php
│ │ │ ├── paypal-pdt-identity-token.x-php
│ │ │ ├── specific-tag-restrictions.x-php
│ │ │ ├── membership-options-page-url.x-php
│ │ │ ├── current-user-downloads-currently.x-php
│ │ │ ├── current-user-downloads-allowed-days.x-php
│ │ │ ├── custom-queries-loop.x-php
│ │ │ ├── current-user-subscr-gateway.x-php
│ │ │ ├── file-download-limit-exceeded-page-url.x-php
│ │ │ ├── custom-queries.x-php
│ │ │ ├── specific-category-restrictions.x-php
│ │ │ ├── s2-conditional-supplements-2.x-php
│ │ │ ├── api-mop-vars-e.x-php
│ │ │ ├── version.x-php
│ │ │ ├── level-file-downloads.x-php
│ │ │ ├── current-user-subscr-id.x-php
│ │ │ ├── specific-post-restrictions.x-php
│ │ │ ├── current-user-is-specific-content.x-php
│ │ │ ├── current-user-subscr-or-wp-id.x-php
│ │ │ ├── sc-current-user-is-specific-content.x-php
│ │ │ ├── sc-current-user-is-specific-content-farm.x-php
│ │ │ ├── current-user-can-constants-2.x-php
│ │ │ ├── sc-s2-conditional-supplements-2-farm.x-php
│ │ │ ├── s2-conditional-supplements-3.x-php
│ │ │ ├── sc-current-user-is-specific-content-else.x-php
│ │ │ ├── sc-current-user-is-specific-content-else-farm.x-php
│ │ │ ├── current-user-can-ccaps-1.x-php
│ │ │ ├── current-user-downloads-allowed-is-unlimited.x-php
│ │ │ ├── current-user-value-for-pp-on0-os0-on1-os1.x-php
│ │ │ ├── sc-s2-conditional-supplements-2.x-php
│ │ │ ├── sc-s2-conditional-supplements-1-farm.x-php
│ │ │ ├── sc-s2-conditional-supplements-1.x-php
│ │ │ ├── jwplayer-standard-mp4.x-php
│ │ │ ├── s2member-paid-registration-time.x-php
│ │ │ ├── current-user-fields.x-php
│ │ │ ├── current-user-access-level.x-php
│ │ │ ├── current-user-access-level-conditional-upgrades.x-php
│ │ │ ├── current-user-paid-registration-days-dripping.x-php
│ │ │ ├── jwplayer-streaming-mp4.x-php
│ │ │ ├── s2drip-example1.x-php
│ │ │ ├── jwplayer-streaming-mp4-sca.x-php
│ │ │ ├── current-user-registration-days.x-php
│ │ │ ├── sc-s2-conditional-supplements-3-farm.x-php
│ │ │ ├── current-user-paid-registration-days.x-php
│ │ │ ├── sc-s2-conditional-supplements-3.x-php
│ │ │ ├── jwplayer-streaming-mp4-webm.x-php
│ │ │ ├── current-user-can-ccaps-2.x-php
│ │ │ ├── s2member-paid-registration-time-examples.x-php
│ │ │ └── api-mop-vars-ro.x-php
│ │ ├── start.inc.php
│ │ └── menu-pages.min.js
│ ├── templates
│ │ ├── cfg-files
│ │ │ ├── s2o-th-funcs.php
│ │ │ ├── s2member-logs.php
│ │ │ ├── s2-cross-xml.php
│ │ │ ├── s2member-files-no-gzip.php
│ │ │ ├── s2o-mu-plugins.php
│ │ │ ├── s2o-nw-plugins.php
│ │ │ └── s2o-st-plugins.php
│ │ ├── shortcodes
│ │ │ ├── paypal-cancellation-button-shortcode.php
│ │ │ ├── paypal-sp-checkout-button-shortcode.php
│ │ │ ├── paypal-ccaps-checkout-button-shortcode.php
│ │ │ └── paypal-checkout-button-shortcode.php
│ │ ├── options
│ │ │ ├── paypal-membership-ccap-terms.php
│ │ │ └── paypal-membership-trial-terms.php
│ │ ├── badges
│ │ │ └── s-badge.php
│ │ ├── buttons
│ │ │ ├── paypal-cancellation-button.php
│ │ │ ├── paypal-sp-checkout-button.php
│ │ │ └── paypal-ccaps-checkout-button.php
│ │ ├── errors
│ │ │ └── ip-restrictions.php
│ │ ├── players
│ │ │ ├── jwplayer-v7.php
│ │ │ ├── jwplayer-v7-rtmp.php
│ │ │ ├── jwplayer-v7-rtmp-only.php
│ │ │ ├── jwplayer-v6.php
│ │ │ ├── jwplayer-v6-rtmp.php
│ │ │ └── jwplayer-v6-rtmp-only.php
│ │ └── returns
│ │ │ └── default-return.php
│ ├── externals
│ │ └── aweber
│ │ │ ├── oauth_adapter.php
│ │ │ ├── aweber_api.php
│ │ │ ├── aweber_entry_data_array.php
│ │ │ ├── curl_response.php
│ │ │ ├── aweber_response.php
│ │ │ └── curl_object.php
│ ├── funcs.inc.php
│ ├── classes
│ │ ├── paypal-notify.inc.php
│ │ ├── paypal-return.inc.php
│ │ ├── profile-mods.inc.php
│ │ ├── profile.inc.php
│ │ ├── register.inc.php
│ │ ├── s-badge-status.inc.php
│ │ ├── profile-mods-4bp.inc.php
│ │ ├── sc-gets.inc.php
│ │ ├── sc-keys.inc.php
│ │ ├── sc-eots.inc.php
│ │ ├── sc-profile.inc.php
│ │ ├── css-js.inc.php
│ │ ├── sc-paypal-button.inc.php
│ │ ├── sc-s-badge.inc.php
│ │ ├── database.inc.php
│ │ ├── wp-footer.inc.php
│ │ ├── admin-css-js.inc.php
│ │ ├── tracking-cookies.inc.php
│ │ ├── check-activation.inc.php
│ │ ├── cron-jobs.inc.php
│ │ ├── user-new.inc.php
│ │ ├── sc-if-conds.inc.php
│ │ ├── sc-s-badge-in.inc.php
│ │ ├── meta-boxes.inc.php
│ │ ├── sc-files.inc.php
│ │ ├── sc-keys-in.inc.php
│ │ ├── ssl.inc.php
│ │ ├── cron-jobs-in.inc.php
│ │ ├── security.inc.php
│ │ ├── labels.inc.php
│ │ └── utils-css.inc.php
│ └── codes.inc.php
├── images
│ ├── bg.png
│ ├── logo.png
│ ├── s2___.png
│ ├── checked.png
│ ├── add-icon.png
│ ├── brand-bg.png
│ ├── brand-dark.png
│ ├── brand-icon.png
│ ├── brand-kb.png
│ ├── edit-icon.png
│ ├── idev-logo.gif
│ ├── large-icon.png
│ ├── lock-icon.png
│ ├── s2-powered.png
│ ├── s2___bar.png
│ ├── s2___end.png
│ ├── sas-logo.png
│ ├── small-icon.png
│ ├── trans-1px.png
│ ├── trans-bg.png
│ ├── unchecked.png
│ ├── ajax-loader.gif
│ ├── amazon-logo.png
│ ├── aweber-logo.png
│ ├── brand-light.png
│ ├── brand-tools.png
│ ├── brand-videos.png
│ ├── brand-xlink.png
│ ├── delete-icon.png
│ ├── paypal-logo.png
│ ├── arrow-down-icon.png
│ ├── arrow-up-icon.png
│ ├── brand-donations.png
│ ├── brand-favicon.png
│ ├── brand-support.png
│ ├── brand-updates.png
│ ├── jwplayer-logo.png
│ ├── logo-square-big.png
│ ├── mailchimp-stamp.png
│ ├── wordpress-dark.png
│ ├── wordpress-light.png
│ ├── brand-gradient-bg.png
│ ├── brand-upsell-pro.png
│ ├── getresponse-logo.png
│ └── brand-installation.png
└── licensing
│ └── license.txt
├── images
├── bg.png
├── logo.png
└── README.txt
├── .htaccess
├── README.md
├── composer.json
├── readme-ms.txt
└── s2member-o.php
/pro:
--------------------------------------------------------------------------------
1 | ../s2member-pro
--------------------------------------------------------------------------------
/src/includes/translations/.generate:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/images/bg.png
--------------------------------------------------------------------------------
/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/images/logo.png
--------------------------------------------------------------------------------
/src/images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/bg.png
--------------------------------------------------------------------------------
/src/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/logo.png
--------------------------------------------------------------------------------
/src/images/s2___.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/s2___.png
--------------------------------------------------------------------------------
/src/images/checked.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/checked.png
--------------------------------------------------------------------------------
/src/images/add-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/add-icon.png
--------------------------------------------------------------------------------
/src/images/brand-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-bg.png
--------------------------------------------------------------------------------
/src/images/brand-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-dark.png
--------------------------------------------------------------------------------
/src/images/brand-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-icon.png
--------------------------------------------------------------------------------
/src/images/brand-kb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-kb.png
--------------------------------------------------------------------------------
/src/images/edit-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/edit-icon.png
--------------------------------------------------------------------------------
/src/images/idev-logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/idev-logo.gif
--------------------------------------------------------------------------------
/src/images/large-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/large-icon.png
--------------------------------------------------------------------------------
/src/images/lock-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/lock-icon.png
--------------------------------------------------------------------------------
/src/images/s2-powered.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/s2-powered.png
--------------------------------------------------------------------------------
/src/images/s2___bar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/s2___bar.png
--------------------------------------------------------------------------------
/src/images/s2___end.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/s2___end.png
--------------------------------------------------------------------------------
/src/images/sas-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/sas-logo.png
--------------------------------------------------------------------------------
/src/images/small-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/small-icon.png
--------------------------------------------------------------------------------
/src/images/trans-1px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/trans-1px.png
--------------------------------------------------------------------------------
/src/images/trans-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/trans-bg.png
--------------------------------------------------------------------------------
/src/images/unchecked.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/unchecked.png
--------------------------------------------------------------------------------
/images/README.txt:
--------------------------------------------------------------------------------
1 | These images exist for backward compatibility with existing s2Member installations.
2 |
--------------------------------------------------------------------------------
/src/images/ajax-loader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/ajax-loader.gif
--------------------------------------------------------------------------------
/src/images/amazon-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/amazon-logo.png
--------------------------------------------------------------------------------
/src/images/aweber-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/aweber-logo.png
--------------------------------------------------------------------------------
/src/images/brand-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-light.png
--------------------------------------------------------------------------------
/src/images/brand-tools.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-tools.png
--------------------------------------------------------------------------------
/src/images/brand-videos.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-videos.png
--------------------------------------------------------------------------------
/src/images/brand-xlink.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-xlink.png
--------------------------------------------------------------------------------
/src/images/delete-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/delete-icon.png
--------------------------------------------------------------------------------
/src/images/paypal-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/paypal-logo.png
--------------------------------------------------------------------------------
/src/images/arrow-down-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/arrow-down-icon.png
--------------------------------------------------------------------------------
/src/images/arrow-up-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/arrow-up-icon.png
--------------------------------------------------------------------------------
/src/images/brand-donations.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-donations.png
--------------------------------------------------------------------------------
/src/images/brand-favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-favicon.png
--------------------------------------------------------------------------------
/src/images/brand-support.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-support.png
--------------------------------------------------------------------------------
/src/images/brand-updates.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-updates.png
--------------------------------------------------------------------------------
/src/images/jwplayer-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/jwplayer-logo.png
--------------------------------------------------------------------------------
/src/images/logo-square-big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/logo-square-big.png
--------------------------------------------------------------------------------
/src/images/mailchimp-stamp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/mailchimp-stamp.png
--------------------------------------------------------------------------------
/src/images/wordpress-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/wordpress-dark.png
--------------------------------------------------------------------------------
/src/images/wordpress-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/wordpress-light.png
--------------------------------------------------------------------------------
/src/images/brand-gradient-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-gradient-bg.png
--------------------------------------------------------------------------------
/src/images/brand-upsell-pro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-upsell-pro.png
--------------------------------------------------------------------------------
/src/images/getresponse-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/getresponse-logo.png
--------------------------------------------------------------------------------
/src/images/brand-installation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wpsharks/s2member/HEAD/src/images/brand-installation.png
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 | Options -Indexes
2 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sas-ccap-tracking-code.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/idev-ccap-tracking-code.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/idev-sp-tracking-code.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sas-signup-tracking-code.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/idev-signup-tracking-code.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sas-modification-tracking-code.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-s2-conditional-nesting.x-php:
--------------------------------------------------------------------------------
1 | [s2If is_user_logged_in() AND current_user_is(s2member_level1)]
2 | [_s2If is_page(1) OR is_page(2)]
3 | You can access.
4 | [/_s2If]
5 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/idev-modification-tracking-code.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-s2-conditional-nesting-farm.x-php:
--------------------------------------------------------------------------------
1 | [s2If is_user_logged_in() AND current_user_is(s2member_level1)]
2 | [_s2If is_page(1) OR is_page(2)]
3 | You can access.
4 | [/_s2If]
5 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/ccap-file-downloads.x-php:
--------------------------------------------------------------------------------
1 | http://www.example.com/?s2member_file_download=access-s2member-ccap-music/file.mp3
2 | http://www.example.com/?s2member_file_download=access-s2member-ccap-videos/file.avi
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/is-user-logged-in.x-php:
--------------------------------------------------------------------------------
1 |
2 | Content for anyone that is logged in, regardless of their Membership Level.
3 |
4 | Some public content.
5 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## s2Member® Framework
2 |
3 | s2Member® Framework ~ membership management for WordPress®.
4 |
5 | ## BRANCH RENAME: `000000-dev` is now just `dev` ...
6 |
7 | See announcement: https://github.com/websharks/s2member/issues/968
8 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-current-user-can-full-access.x-php:
--------------------------------------------------------------------------------
1 | [s2If current_user_can(access_s2member_level1)]
2 | Some content for Members who are logged in with an s2Member Level >= 1.
3 | [else]
4 | Some public content.
5 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-is-user-logged-in-else.x-php:
--------------------------------------------------------------------------------
1 | [s2If is_user_logged_in()]
2 | Content for anyone that is logged in, regardless of their Membership Level.
3 | [else]
4 | Some public content. They're NOT logged in.
5 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-current-user-can-full-access-farm.x-php:
--------------------------------------------------------------------------------
1 | [s2If current_user_can(access_s2member_level1)]
2 | Some content for Members who are logged in with an s2Member Level >= 1.
3 | [else]
4 | Some public content.
5 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-is-user-logged-in-else-farm.x-php:
--------------------------------------------------------------------------------
1 | [s2If is_user_logged_in()]
2 | Content for anyone that is logged in, regardless of their Membership Level.
3 | [else]
4 | Some public content. They're NOT logged in.
5 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-s2-conditional-nesting-else.x-php:
--------------------------------------------------------------------------------
1 | [s2If is_user_logged_in() AND current_user_is(s2member_level1)]
2 | [_s2If is_page(1) OR is_page(2)]
3 | You can access.
4 | [_else]
5 | Denied!
6 | [/_s2If]
7 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-profile-modification-page-url-3-ops.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-s2-conditional-nesting-else-farm.x-php:
--------------------------------------------------------------------------------
1 | [s2If is_user_logged_in() AND current_user_is(s2member_level1)]
2 | [_s2If is_page(1) OR is_page(2)]
3 | You can access.
4 | [_else]
5 | Denied!
6 | [/_s2If]
7 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-profile-modification-page-url-3.x-php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/jwplayer-s2stream-mp3-rtmp.x-php:
--------------------------------------------------------------------------------
1 | Copy/paste this Shortcode into any WordPress® Post or Page.
2 | [s2Stream player="jwplayer-v7-rtmp" player_path="/jwplayer/jwplayer.js" player_key="YOUR KEY HERE" file_download="audio.mp3" /]
3 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/jwplayer-s2stream-mp4-rtmp.x-php:
--------------------------------------------------------------------------------
1 | Copy/paste this Shortcode into any WordPress® Post or Page.
2 | [s2Stream player="jwplayer-v7-rtmp" player_path="/jwplayer/jwplayer.js" player_key="YOUR KEY HERE" file_download="video.mp4" /]
3 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-can-full-access.x-php:
--------------------------------------------------------------------------------
1 |
2 | Some content for Members who are logged in with an s2Member Level >= 1.
3 |
4 | Some public content.
5 |
6 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/jwplayer-s2stream-mp3.x-php:
--------------------------------------------------------------------------------
1 | Copy/paste this Shortcode into any WordPress® Post or Page.
2 | [s2Stream player="jwplayer-v7" player_path="/jwplayer/jwplayer.js" player_key="YOUR KEY HERE" file_download="audio.mp3" rewrite="yes" /]
3 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/jwplayer-s2stream-mp4.x-php:
--------------------------------------------------------------------------------
1 | Copy/paste this Shortcode into any WordPress® Post or Page.
2 | [s2Stream player="jwplayer-v7" player_path="/jwplayer/jwplayer.js" player_key="YOUR KEY HERE" file_download="video.mp4" rewrite="yes" /]
3 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-id.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: 5547
3 | (or whatever their user ID# is)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_ID" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/jwplayer-s2stream-mp3-rtmp-only.x-php:
--------------------------------------------------------------------------------
1 | Copy/paste this Shortcode into any WordPress® Post or Page.
2 | [s2Stream player="jwplayer-v7-rtmp-only" player_path="/jwplayer/jwplayer.js" player_key="YOUR KEY HERE" file_download="audio.mp3" /]
3 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/jwplayer-s2stream-mp4-rtmp-only.x-php:
--------------------------------------------------------------------------------
1 | Copy/paste this Shortcode into any WordPress® Post or Page.
2 | [s2Stream player="jwplayer-v7-rtmp-only" player_path="/jwplayer/jwplayer.js" player_key="YOUR KEY HERE" file_download="video.mp4" /]
3 |
--------------------------------------------------------------------------------
/src/includes/templates/cfg-files/s2o-th-funcs.php:
--------------------------------------------------------------------------------
1 |
6 |
7 | // s2Member-only mode. Do NOT load theme functions, exclude all themes.
8 |
--------------------------------------------------------------------------------
/src/includes/externals/aweber/oauth_adapter.php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: Free
3 | (or whatever Label you've configured for Level #0)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_LEVEL0_LABEL" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-last-name.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: Smith
3 | (or whatever their last name is)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_LAST_NAME" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-login.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: johnsmith22
3 | (or whatever their login/username is)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]
--------------------------------------------------------------------------------
/src/includes/templates/shortcodes/paypal-cancellation-button-shortcode.php:
--------------------------------------------------------------------------------
1 |
6 |
7 | [s2Member-PayPal-Button cancel="1" image="default" output="anchor" /]
8 |
--------------------------------------------------------------------------------
/src/includes/externals/aweber/aweber_api.php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: John
3 | (or whatever their first name is)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-display-name.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: Johnny
3 | (this is the User's display name)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-is-logged-in.x-php:
--------------------------------------------------------------------------------
1 |
2 | A User/Member is logged in, with an Access Level >= 0.
3 |
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2If is_user_logged_in()]
8 | content goes here
9 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-email.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: johnsmith@example.com
3 | (or whatever their email address is)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_EMAIL" /]
8 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-ip.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: 123.456.789.111
3 | (or whatever the current user's IP address happens to be)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_IP" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/paypal-business.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: paypal@example.com
3 | (or whatever you have configured as your paypal email address)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_PAYPAL_BUSINESS" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/reg-email-from-name.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: Member Support
3 | (or whatever you have configured as your From: name)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_REG_EMAIL_FROM_NAME" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-is-user-logged-in.x-php:
--------------------------------------------------------------------------------
1 | [s2If is_user_logged_in()]
2 | Content for anyone that is logged in, regardless of their Membership Level.
3 | [/s2If]
4 |
5 | [s2If !is_user_logged_in()]
6 | Some public content. They're NOT logged in.
7 | A leading !exclamation means false.
8 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/sc-is-user-logged-in-farm.x-php:
--------------------------------------------------------------------------------
1 | [s2If is_user_logged_in()]
2 | Content for anyone that is logged in, regardless of their Membership Level.
3 | [/s2If]
4 |
5 | [s2If !is_user_logged_in()]
6 | Some public content. They're NOT logged in.
7 | A leading !exclamation means false.
8 | [/s2If]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/reg-email-from-email.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: support@example.com
3 | (or whatever you have configured as your From: email)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_REG_EMAIL_FROM_EMAIL" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-login-counter.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: 47
3 | (the number of times the User has logged into your site)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_LOGIN_COUNTER" /].
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/paypal-api-password.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: 523MJSDOED54Z8JU8
3 | (or whatever you have configured as your PayPal® API Password)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_PAYPAL_API_PASSWORD" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/paypal-endpoint.x-php:
--------------------------------------------------------------------------------
1 |
2 | This will output the PayPal® endpoint domain: www.paypal.com
3 | (if sandbox testing is enabled, it will output www.sandbox.paypal.com)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_PAYPAL_ENDPOINT" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-can-constants-1.x-php:
--------------------------------------------------------------------------------
1 |
2 | Content for Members with an s2Member Level >= 1.
3 |
4 | Some content for Free Subscribers.
5 |
6 | Some public content.
7 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/paypal-api-username.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: example-pro_api1.example.com
3 | (or whatever you have configured as your PayPal® API Username)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_PAYPAL_API_USERNAME" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-registration-ip.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: 123.456.789.111
3 | (or whatever the User's Registration IP address was)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_REGISTRATION_IP" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-registration-time.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: 1270537981
3 | (this is a Unix timestamp, which is based on seconds)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_REGISTRATION_TIME" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/current-user-access-label.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: Gold Member
3 | (or whatever Label you've configured for their Membership Level)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LABEL" /].
8 |
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/file-download-inline-extensions.x-php:
--------------------------------------------------------------------------------
1 |
2 | This may output something like: pdf,jpg,jpeg,jpe,png
3 | (s2Member will display these extensions inline)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_FILE_DOWNLOAD_INLINE_EXTENSIONS" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/specific-page-restrictions.x-php:
--------------------------------------------------------------------------------
1 | ID, "page"))
7 | continue;
8 | /* Skip it. The current User/Member
9 | CANNOT access this particular Page. */
10 | }
11 | }
12 | ?>
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/leveln-file-downloads-allowed.x-php:
--------------------------------------------------------------------------------
1 | Level #0 Users are allowed to download
2 | files
3 | every days.
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_LEVEL0_FILE_DOWNLOADS_ALLOWED" /]
--------------------------------------------------------------------------------
/src/includes/menu-pages/code-samples/paypal-api-endpoint.x-php:
--------------------------------------------------------------------------------
1 |
2 | This will output the PayPal® API endpoint domain: api-3t.paypal.com
3 | (if sandbox testing is enabled, it will output api-3t.sandbox.paypal.com)
4 |
5 | ---- s2member Shortcode Equivalent ----
6 |
7 | [s2Get constant="S2MEMBER_PAYPAL_API_ENDPOINT" /]
--------------------------------------------------------------------------------
/src/includes/templates/cfg-files/s2member-logs.php:
--------------------------------------------------------------------------------
1 |
6 |
7 |
-1?6:(m=="d")?0:undefined}else{if(x=="*"){x=+h[f++]}else{if(x.charAt(0)=="*"){x=+h[x.slice(1,-1)]}else{x=+x}}}u=n?h[n.slice(0,-1)]:h[f++];switch(m){case"s":return e(String(u),t,s,x,r,y);case"c":return e(String.fromCharCode(+u),t,s,x,r);case"b":return j(u,2,z,t,s,x,r);case"o":return j(u,8,z,t,s,x,r);case"x":return j(u,16,z,t,s,x,r);case"X":return j(u,16,z,t,s,x,r).toUpperCase();case"u":return j(u,10,z,t,s,x,r);case"i":case"d":i=(+u)|0;w=i<0?"-":p;u=w+b(String(Math.abs(i)),x,"0",false);return c(u,w,t,s,r);case"e":case"E":case"f":case"F":case"g":case"G":i=+u;w=i<0?"-":p;l=["toExponential","toFixed","toPrecision"]["efg".indexOf(m.toLowerCase())];B=["toString","toUpperCase"]["eEfFgG".indexOf(m)%2];u=w+Math.abs(i)[l](x);return c(u,w,t,s,r)[B]();default:return A}};return k.replace(g,d)}}})(jQuery); -------------------------------------------------------------------------------- /src/includes/menu-pages/code-samples/jwplayer-streaming-mp4-webm.x-php: -------------------------------------------------------------------------------- 1 | 8 | 9 |JW Player® appears here.10 | 11 | 12 | 13 | $s2_jw_config["mp4_video_file_name"], "url_to_storage_source" => true, "count_against_user" => true); 15 | $webm_cfg = array("file_download" => $s2_jw_config["webm_video_file_name"], "url_to_storage_source" => true /* Don't count variations. */); ?> 16 | 17 | 20 | 21 | 36 | 37 | 38 | Sorry, you do NOT have access to this file. 39 | 40 | -------------------------------------------------------------------------------- /src/includes/classes/sc-if-conds.inc.php: -------------------------------------------------------------------------------- 1 | '1'), $attr); // One attribute. 53 | $code = c_ws_plugin__s2member_utilities::s_badge_gen($attr['v'], FALSE, FALSE); 54 | 55 | return apply_filters('ws_plugin__s2member_sc_s_badge', $code, get_defined_vars()); 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/includes/externals/aweber/aweber_response.php: -------------------------------------------------------------------------------- 1 | adapter = $adapter; 34 | $this->url = $url; 35 | $this->data = $response; 36 | } 37 | 38 | /** 39 | * __set 40 | * 41 | * Manual re-implementation of __set, allows sub classes to access 42 | * the default behavior by using the parent:: format. 43 | * 44 | * @param mixed $key Key of the attr being set 45 | * @param mixed $value Value being set to the attr 46 | * @access public 47 | */ 48 | public function __set($key, $value) { 49 | $this->{$key} = $value; 50 | } 51 | 52 | /** 53 | * __get 54 | * 55 | * PHP "MagicMethod" to allow for dynamic objects. Defers first to the 56 | * data in $this->data. 57 | * 58 | * @param String $value Name of the attribute requested 59 | * @access public 60 | * @return mixed 61 | */ 62 | public function __get($value) { 63 | if (in_array($value, $this->_privateData)) { 64 | return null; 65 | } 66 | if (array_key_exists($value, $this->data)) { 67 | return $this->data[$value]; 68 | } 69 | if ($value == 'type') return $this->_type(); 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /src/includes/classes/meta-boxes.inc.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Some premium content for all Level 1 Members. 4 | 5 | 6 | Display links for downloading your eBooks. 7 | 8 | Insert a PayPal® Modification Button that includes the Custom Capability: ebooks 9 | This might read, "Upgrade Your Membership for access to my eBooks!". 10 | } ?> 11 | 12 | 13 | Display links for accessing your reports. 14 | 15 | Insert a PayPal® Modification Button that includes the Custom Capability: reports 16 | This might read, "Upgrade Your Membership for access to my reports!". 17 | } ?> 18 | 19 | 20 | Display tips. 21 | 22 | Insert a PayPal® Modification Button that includes the Custom Capability: tips 23 | This might read, "Upgrade Your Membership for access to my tips!". 24 | } ?> 25 | 26 | 27 | Some public content. 28 | 29 | 30 | ---- s2member Shortcode Equivalents ---- 31 | 32 | [s2If current_user_can(access_s2member_level1)] 33 | 34 | Some premium content for all Level 1 Members. 35 | 36 | [_s2If current_user_can(access_s2member_ccap_ebooks)] 37 | Display links for downloading your eBooks. 38 | [/_s2If] 39 | [_s2If !current_user_can(access_s2member_ccap_ebooks)] 40 | Insert a PayPal® Modification Button that includes the Custom Capability: ebooks 41 | This might read, "Upgrade Your Membership for access to my eBooks!". 42 | [/_s2If] 43 | 44 | [_s2If current_user_can(access_s2member_ccap_reports)] 45 | Display links for accessing your reports. 46 | [/_s2If] 47 | [_s2If !current_user_can(access_s2member_ccap_reports)] 48 | Insert a PayPal® Modification Button that includes the Custom Capability: reports 49 | This might read, "Upgrade Your Membership for access to my reports!". 50 | [/_s2If] 51 | 52 | [_s2If current_user_can(access_s2member_ccap_tips)] 53 | Display tips. 54 | [/_s2If] 55 | [_s2If !current_user_can(access_s2member_ccap_tips)] 56 | Insert a PayPal® Modification Button that includes the Custom Capability: tips 57 | This might read, "Upgrade Your Membership for access to my tips!". 58 | [/_s2If] 59 | 60 | [/s2If] 61 | 62 | [s2If !current_user_can(access_s2member_level1)] 63 | Some public content. 64 | [/s2If] -------------------------------------------------------------------------------- /src/includes/classes/sc-keys-in.inc.php: -------------------------------------------------------------------------------- 1 | '', 'directive' => ''), $attr); 53 | 54 | foreach(array_keys(get_defined_vars()) as $__v) $__refs[$__v] =& $$__v; 55 | do_action('ws_plugin__s2member_before_sc_get_key_after_shortcode_atts', get_defined_vars()); 56 | unset($__refs, $__v); // Allow variables to be modified by reference. 57 | 58 | if($attr['file_download']) // Requesting a File Download Key? 59 | $get = c_ws_plugin__s2member_files::file_download_key($attr['file_download'], $attr['directive']); 60 | 61 | return apply_filters('ws_plugin__s2member_sc_get_key', isset($get) ? $get : '', get_defined_vars()); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/includes/menu-pages/start.inc.php: -------------------------------------------------------------------------------- 1 | ' . "\n"; 34 | 35 | echo ''."\n"; 36 | 37 | echo ''."\n"; 40 | 41 | echo 'Quick Start
' . "\n"; 42 | 43 | echo '' . "\n"; 44 | echo '' . "\n"; 45 | echo '
' . "\n"; 66 | 67 | echo '' . "\n"; 68 | } 69 | } 70 | } 71 | 72 | new c_ws_plugin__s2member_menu_page_start (); 73 | -------------------------------------------------------------------------------- /src/includes/classes/ssl.inc.php: -------------------------------------------------------------------------------- 1 | ID, 's2member_force_ssl', TRUE)))) 61 | if(!preg_match('/^(0|no|off|false)$/i', (string)$force_ssl) && ($forced = TRUE)) // Make sure it's NOT a negative variation. 62 | c_ws_plugin__s2member_ssl_in::force_ssl(get_defined_vars()); // Call inner routine now. 63 | } 64 | do_action('ws_plugin__s2member_after_check_force_ssl', get_defined_vars()); 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/includes/menu-pages/code-samples/s2member-paid-registration-time-examples.x-php: -------------------------------------------------------------------------------- 1 | ------- Example #1 ------------------------------------------------------ 2 | 3 | 0){ ?> 4 | 5 | This is some content that will be displayed to all Members that have paid you at some point. 6 | 7 | 0){ ?> 8 | This will be displayed to all Members that have paid for Level#2 at some point. 9 | 10 | 11 | 0){ ?> 12 | This will be displayed to all Members that have paid for Level#3 at some point. 13 | 14 | 15 | 16 | 17 | ------- Example #2 ------------------------------------------------------ 18 | 19 | 0){ ?> 20 | 21 | This is some content that will be displayed to all Members that have paid you at some point. 22 | 23 | 25 | 26 | 27 | Drip content to Members that started paying you at Level#1, at least 30 days ago. 28 | 29 | 30 | 31 | Drip more content to Members that started paying you at Level#1, at least 60 days ago. 32 | 33 | 34 | 35 | 36 | ---- Example #2 Shortcode Equivalent (Requires s2Member Pro) ------------ 37 | 38 | [s2If php="s2member_paid_registration_time() > 0"] 39 | 40 | This is some content that will be displayed to all Members that have paid you at some point. 41 | 42 | [_s2If php="($level1_payment_time = s2member_paid_registration_time('level1')) && $level1_payment_time <= ($_30_days_ago = strtotime('-30 days'))"] 43 | Drip content to Members that started paying you at Level#1, at least 30 days ago. 44 | [/_s2If] 45 | 46 | [_s2If php="($level1_payment_time = s2member_paid_registration_time('level1')) && $level1_payment_time <= ($_60_days_ago = strtotime('-60 days'))"] 47 | Drip content to Members that started paying you at Level#1, at least 60 days ago. 48 | [/_s2If] 49 | 50 | [/s2If] 51 | 52 | **NOTE** The use of `[s2If php=""]` requires s2Member Pro. 53 | **NOTE** Arbitrary PHP code (via [s2If php=""]) will only work if you enable this functionality. 54 | Please visit `Dashboard → s2Member → Restriction Options → Simple Shortcode Conditionals` 55 | to set your preferences and enable `[s2If php=""]` when s2Member Pro is installed. -------------------------------------------------------------------------------- /src/includes/templates/returns/default-return.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | %%doctype_html_head%% 8 | 9 | 10 | 11 | 12 | 13 |' . "\n"; 46 | echo ' ' . "\n"; 64 | echo '' . "\n"; 65 | echo '' . "\n"; 47 | 48 | do_action("ws_plugin__s2member_during_start_page_before_left_sections", get_defined_vars()); 49 | 50 | echo 51 | '',"\n"; 56 | 57 | echo ' ' . "\n"; 58 | 59 | echo '' . "\n"; 60 | c_ws_plugin__s2member_menu_pages_rs::display (); 61 | echo ' ' . "\n"; 62 | 63 | echo '14 |19 | 20 | 21 | 22 | 23 |15 | %%header%% 16 |17 | 18 |24 |32 | 33 | 34 |25 | %%response%% 26 |30 | 31 |27 | %%continue%% 28 |29 |35 |40 | 41 | %%tracking%% 42 | 43 | 44 |36 | %%support%% 37 |38 | 39 |