I search a script with follow features:
The user can pay the full functional website for some time (week, month, six months, a year - for example).
After payment, the script pass a parameter that the user has paid, and the user data insert into the database mySQL (name, start subscription date, the subscription end date).
Each time when user is authenticated on the site checking valid or not the subscription.
For some time before the end of the subscription script notifies the user via e-mail that the subscription ends (for example, a message comes once a day for a week before the end of the subscription).
If the user does not prolong their subscription, then script closes access to the site. If prolongs, then change the values in the database.
Maybe there are already existing solutions?