Location: PHPKode > projects > Guestbook and Comment Box > gb_admin/gb_config.php
<?
	
	/*****************************
	
	DATABASE DETAILS
	
	******************************/
	
	$username = "USERNAME"; // mysql user name
	$password = "PASSWORD"; // password for mysql user
	$host = "localhost"; // mysql host - mostly localhost
	
	$db = "DATABASENAME"; //database name
	define('TABLE_PREFIX',''); // table prefix -- DONT ADD ANYTHING HERE. NEED HELP ON THIS CONTACT ADMIN
	
	/****************************************
	
	COMMENT SETTINGS AND MESSAGES
	
	****************************************/
	
	define('AUTO_APPROVE',true); // If true, Comments are approved automatically 
	
	define('AUTO_APPROVE_MESSAGE',"Your comment added Successfully");
	define('PENDING_MESSAGE',"Your comment is awaiting for moderation");
	define('COMMENT_FAILED_MESSAGE',"There is a problem in adding your comment. Try again later");
	
	$display_username_box = true;  // true or false , if false while submitting a guestbook, user will not see username field
	$display_user_email = true;
	$display_user_website = true;
	$website_nofollow = true; // if true, no follow will be added
	
	
	/*****************************************
	
	Comment ERROR MEESAGES
	
	******************************************/
	define('CAPTCHA_ERROR',"Security code is invalide");
	define('AUTHOR_ERROR',"Name is required");
	define('EMAIL_ERROR',"Email is required");
	define('COMMENT_ERROR',"Comment should not be empty");
	
	
	/********************************	
	ADMIN RESULT PER PAGE
	*********************************/

	define('GUESTBOOK_ADMIN_DISPLAY',10); // Per page in admin, how many guestbook should be displayed?
	
	
	/************************************************
	
	CAPTCHA SETTINGS TO AVOID SPAMS
	
	************************************************/
	/* go to http://www.google.com/recaptcha/whyrecaptcha
		register your website and get public and private key */
	
	$captcha = false; // true or false
	$publickey = "PUBLIC KEY";
	$privatekey = "PRIVATE KEY";
	
	
	/**********************************
	Dont edit below
	**********************************/
	
	$link = mysql_connect($host,$username,$password);
	$db = mysql_select_db($db,$link);
?>
Return current item: Guestbook and Comment Box