Codewhite Comments V.1

Installation of the Codewhite Comment Script V.1 is fairly simple. You mearly add <?php include("comments.php"); ?> to the php page where you wish to have the comments form installed and add <!--INSERT--> where you wish to have the comments inserted into.

The <!--INSERT--> tag must be on a line by itself for the script to find it.

 

There are only 3 files required. The are as follows:

comments.php
This file is the simplest of the three, it is a form which accepts the comments. It also includes a hidden field "cfile" which tells the form what page it is insterted into.

docomment.php
This file processes the comments. It takes the name, email, comments and file name from the previous page along with the current time and the user's IP address, which is only visible in the PHP code itself. It then builds the comment and adds the comment to the page where the <!--INSERT--> tag is located. Once finished it returns to the original page.
It also has security built in so that going directly to the docomment.php page will not alter any files.

commentkill.php
This file cleans the comments. It will first check if there is a backup made of the file in question, it will then delete the file and reload a fresh copy of the original page with no comments.

Download the complete code here, including a copy of these install instructions.

 

 

 

This is an example page with comments. If there are inapropriate comments click here to remove all comments.

Name:

Email:

Comments:

CAPTCHA Image Reload Image

Codewhite Comments V.1 Copyright Codewhite Designs.