C R E D I T S S Y S T E M
Customer creates account, buys credits by entering the correct code and uses credits to
view content. Credit System script should take care of:'
* user database (mysql or ascii) Database contains: email, password and amount of credits
* creates login session for user when user is logged in
* Add credits to users account when user buys credits.
* Deduct credits from user account when user buys content
Users will buy credits by calling to the phone number from where he gets the code.
(This system is already done). Now user enters the correct code on a from.
The script should check the code which user enters from the different text based code
database (this database exist already). If the code is there, script adds X amount of
credits to user account and shows message: "X credits added!" If the user enters
the code which is not found from the database, script shows error message: "Invalid code!"
When user clicks protected directory, script checks how many credits is required to view
the 'content' of this specific directory (content is basicly [url removed, login to view] that contains
links to video / photo gallery or includes send message form). Then script checks if user
have enough credits on account. If user does not have enough credits script shows
'not enought credits, buy more' message. If user have enough credits, user gets access
to this directory (and content).
Each content directory contains own index file. Protecting these directories can be done by
establishing session which allows access ONLY to the specific directory / index file when user have
enough credits on the account. If entering to directory1 costs 100 credits, those credits will be
deducted from user account when he enters to this directory. The session should not allow
access to the directory2 ...or 6.
CREATE NEW ACCOUNT
Send forgotten password - Sends forgotten password using php´s internal mail function.
User database contains:
email - password - credits
Credits = X (How many credits users gets to the account when he enters the correct code)
New user credits = X (How many 'free' credits a new user will have at the beginning)
Not enough credits message / page = X
Credits added message = X
How long each session is valid = X minutes
path to code database
path to user database
And possible other required options?
How many credits is required to view video
How many credits is required to view photo gallery
How many credits is required to send message
How many credits is required to view live video minute
+ live video page that contains:
Start button = opens live page
Stop button = closes live page
Timer that closes live page when user does not have any credits left
and shows buy more credits message / page. Timer starts when live page is opened.
When timer is on it deducts every minute X credits from the user account. Timer stops
when live page is closed.
Each protected directory contains ascii info file where is how many credits
is required to view those: i.e. specific directory / index file for video / gallery /
live video / and - or send message form.
This script should be able to be integrated on the existing site. Details about the
site available upon request.
When user IS NOT logged in, there should be visible:
1) create new account link and
2) login from, where user can enter email address(which is same = username) and password.
When user IS logged in, there should be visible:
1) amount of credits,
2) buy more credits link and
3) logout link.
Add credits to user account
List / Edit / Delete users (user list should show all data about each user)
Live video ON/OFF. When ON, Start button at live video page is enabled. When OFF
start button is disabled and there is 'Live Video Offline' message visible.