SAC (Simple Add Comment) module

INTRODUCTION.

SAC is a very simple module to add comments on your website, written in PHP that uses mySQL database. It has mySQL injection protection, antispam check for data entered in the comment form and simple antiboot protection.

1. Installation.

Using SAC is very simple. First thing you have to do is to download SAC and unpack it. Now open config.php file and change definitions to those you're going to use eg. login, password, database and server. This is the file that is used by SAC to manage comments on your website. Here you can also configure how many comments you want to be displayed on your page using SAC_NUM_REC_TO_DISPLAY, and how many records (comments) you want to keep in your table by using SAC_NUM_REC_TO_KEEP.
Once this is done you can go to create_db.php file and copy query from there that creates database and table, or simply go to www.yourwebsite.com/SAC/create_db.php - this will query mySQL and do the job for you.
Now remove create_db.php file (just in case someone may try to play with SAC).

2. How to use SAC.

Once installation is finished all you have to do is to run session before any SAC call, this is done by calling session_start() and then put the following code in the place you want comments to be displayed:

<?php
require ('./SAC/comment.php');
sac_comment_display(SAC_NUM_REC_TO_DISPLAY);
sac_comment_add();
php?>


NOTE: Remember to modify path in require('./SAC/comment.php'); to what you use.

SAC Subversion repository can be accessed by:

svn checkout http://s-a-c.googlecode.com/svn/trunk/ s-a-c-read-only

All comment sections on this website are SAC.

Comments:

Author: toem Date 2012-05-03 13:42:54

tomeksad



Author: Tyler Date 2012-04-14 08:04:43

The stuff is rather significant.



Author: Isabel Date 2012-10-05 08:53:31

What i do not understood is in truth how you are not really much more well-liked than you might be now. You're so intelligent. You realize therefore significantly on the subject of this matter, produced me in my view believe it from a lot of varied angles. Its like men and women are not interested unless it is something to do with Lady gaga! Your personal stuffs great. All the time take care of it up!



Author: Kristie Date 2012-10-05 08:52:54

What i do not understood is in truth how you are not really much more well-liked than you might be now. You're so intelligent. You realize therefore significantly on the subject of this matter, produced me in my view believe it from a lot of varied angles. Its like men and women are not interested unless it is something to do with Lady gaga! Your personal stuffs great. All the time take care of it up!



Author: Mohammad Date 2012-04-02 08:02:36

Everything is very open with a really clear explanation of the challenges. It was really informative. Your site is very helpful. Many thanks for sharing!



Author: Blake Date 2012-03-29 14:29:37

I think the admin of this web page is actually working hard in support of his web page, for the reason that here every stuff is quality based data.



Author: cialis Date 2012-03-01 19:41:27

Faites attention aux plantes des entreprises ou ses.



Author: elundleslee Date 2011-12-16 11:10:59

check this link, , for special offer to your friends



Author: Дизайн интерьера Москва Date 2011-10-21 09:50:23

sait - Дизайн интерьера в Москве



Author: bt Date 2011-08-09 16:52:01

kontroler phy DP83848 STE100P



Add Comment:

Name:


Comment: