PHP-SecureArea is a PHP / mySQL application which allows authorized members to access a secure area of a web site after the purchase of a PayPal subscription.
Members are automatically allocated to the secure areas after payment has been confirmed from PayPal or manually added through the admin displays.
PHP-SecureArea provides the checking of the completed transaction from PayPal, administration of memberships, and the sending of confirmation email and password to the customers.
The secure areas have parameters that include :
When the user makes a valid purchase, they are able to log in to the secure area for the subscription period and continue to do so as long as the customer continues to pay the subscription. Access to the secure area will end when the customer cancels the subscription or when payment fails. For manual created users, access to the secure area is controlled by a Cron job.
Subscription installments are also supported allowing a fixed number of payments to be made for a defined period.
The application does not have to be used with PayPal, as users can be manually created through the admin interface.
You can manually create users, in which case a Cron job is used to disable users at the required time.
You can create as many secure areas as you like, with each area pointing to different folders or some pointing to the same folders but with differing costs and time limits. So you could have a subscription costing $10.00 for 6 months access and another subscription costing $15.00 for 12 months access giving the customer a choice.
Customers have access to a set of administration pages where they may change their password and recover a lost password.
The following PayPal buttons can be used to see what happens when a customer purchases a subscription.
This is a live purchase for $0.01 to give access to a protected area for 3 days. After 3 days, the subscription will expire and you will not beable to access the protected area.
There are two types of buttons, one includes a system of pre-registration where the customer can enter in their personal details.
$0.01 subscription for 3 days non-recurring without pre-registration
$0.01 subscription for 3 days non-recurring with registration
Free susbcription (value of 0.00 entered for the cost) for 3 days with registration
After you have made the purchase you will receive an email with log in details.
It uses only 'standard' php, does not require any extra php modules and it should not need any changes to the .ini file.