152097 Credits System

IN PROGRESS
Bids
0
Avg Bid (USD)
N/A
Project Budget (USD)
N/A

Project Description:
CREDITS SYSTEM

Basicly a set of PHP scripts that allows customers create account, buy credits by entering the correct code and using credits to view content.

Script should be done just with PHP (no any external things like codeingniter etc.). Script should run with PHP4 and MySQL4 or earlier.

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 form.
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 index.file 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
Email:
Password:
Send forgotten password - Sends forgotten password using php´s internal mail function.

User database contains:
email - password - credits

Ini file:
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.

ADMIN OPTIONS

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.

(!) If email / username is already taken/reserved, script shows 'select another username' message.

User can create account also WITHOUT entering email address. ONLY username and password values
are required for creating a new account.

(!) ANTI SPAM FUNCTION - New account form and login shows every time simple random number
question i.e. for example 5+4 user must enter right answer, in that case =9. If answer
is right account will be created / log

(!) When account is created, script sends confirmation email (confirm-email.txt) to the user.
This email contains link to the site with user specific random code. If user clicks that link,
database value for ' email confirmed yes/no ' will be changed to YES.
User can use the account regardless this confirmation, but if the ' email confirmed value '
is NO the user will NOT received any emails.

(!) User selects YES/NO if low credit / new content / bonus offer emails are accepted.
However if ' email confirmed ' value for user is NO, user will not get any emails.

(!) Admin option: Send email defined at user-email.txt file to all users who accepts
emails.

(!) Script sends automaticly pre defined email (lowcredit-mail.txt) to user when
user credits are under X to all users who accepts emails.

Skills required:
Anything Goes, MySQL, PHP
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.