I am in need of a piece of PHP or Javascript code that can be inserted into the head html of a single php or html page that will work with the API of Ontraport ([login to view URL]) to protect the page content.
Ontraport is my shopping cart application that is similar to infusionsoft in it's primary functions. Ontraport has already developed a wordpress plugin that protects pages and posts called "PilotPress" that can be found in the WP plugin directory. The page code must protect the content of a single html/non-wordpress page from being accessed by users who do not have an active membership in my Ontraport CRM.
The code would need to validate the visitor via login screen if no active login is detected when the visitor lands on a page.
Ontraport has a free page builder called Ontrapages that allows members to host pages on the Ontraport platform. The pages have an area to include code in the <head> and also the <footer> sections.
Members should not need to login for every protected individual page they navigate to that they have a valid membership and have already logged into one of them. This would be the case that a product purchased may have 3-5 pages that only paid members can access. The paid members should not have to login to each page they land on using the navigation from the members dashboard.
The purpose of this script it to protect content that does not need a full wordpress install with the PilotPress plugin installed. Instead of installing wordpress, I want to use the Ontraport page builder to host and deliver the paid/protected content to members.
Please NOTE: To protect my time from auto-reply scripts or people who do not read/understand the project but just bid, all responses must contain the word "ONTRASCRIPT" in the subject or they WILL BE IGNORED/DELETED.
Thanks!