I need a quick script created based on the following description:
First, it must have an admin area, where I can set it all up. The admin area must allow me to edit a few basic fields, including:
* Page URL
* HTML Template
* Default HTML
* Querystring variable
Then, I need to be able to add/edit/delete user records, each including:
* ID (alphanumeric)
* Image URL
When the main page ([url removed, login to view]) is accessed normally, the code will fire and replace the <!--Template--> token with the data from the Default HTML field.
If the [url removed, login to view] page has a querystring that matches the querystring variable then it pulls up the values from the record with ID = '1' and inserts them into the HTML Template data, based on the <!--TokenName-->.
IE, just replace each <!--TokenName--> instance with the proper field from the DB record. So <!--ImageURL--> would be replaced by the Image URL field from the DB
Once the template tokens have been replaced, the template will replace the <!--Template--> token in the html from the Page URL, which will then be displayed to the user.
So, in a nutshell, it will work like this: A user visits the [url removed, login to view] page, check to see if there is a querystring variable that matches the querystring variable supplied by the admin.
If there is a match, then get the associated row and fill in the tokens in the template, then display the page
If there isn't a match, then replace the <!--Template--> token in the html with the Default HTML value.
I am an experienced programmer, so I know that this script won't be too hard to create. It's simple database and file access, with a simple str_replace function call for each token. I just don't have time to do it myself, which is why I'm posting it here.
I need it completed ASAP
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
Must run on PHP 4+, on both windows and unix servers