Location: PHPKode > projects > GBoook > gbook_v.3.3/inc/settings.inc.php
<?php

	//This is the file that gbook.php is included in
	//At the top of the file you MUST include session_start();
	//if you plan on using the captcha. Look at main.php for
	//an example
	$mainfile = "index.php";
	
	//This is the web address of the file that gbook.php is embedded in
	$mainurl = "http://www.yourdomain.com/gbook/index.php";
	
	//This is the installation path of gbook
	$url = "http://www.yourdomain.com/gbook/";
	
	//This is the webpage that the user is returned to once a 
	//message has been entered.
	$complete_url = "http://www.yourdomain.com/gbook/index.php";
	
	//This is the url people will be taken to if their message is being
	//placed in the moderators queue
	$mod_url = "http://www.yourdomain.com/gbook/index.php";
	
	//this is the absolute server path of where gbook is installed
	//there should be a trailing / at the end.
	$abspath = "/home/yourdomain/html/gbook/";
	
	//This is your domain and is used to verify referer to ensure
	//the user is using your form and not one from another domain.
	$mydomain = "yourdomain.com";
	
	//This is for access to the admin area
	$gbookuname = "admin";
	$gbookpw = "password";
	
	//database variables
	$dbhost='localhost';
	$dbname='databasename';
	$dbuser='username';
	$dbpass='password';

	

/*###############################################*/
/*
/*          Do not edit below this point.
/*
/*###############################################*/

	//Security precaution to prevent direct access of file
	//if(!defined('G_Book')){die('Direct access not premitted');}
	
	$db = mysql_connect($dbhost, $dbuser,  $dbpass);
    if (!$db){        
	    die("Failed to open database");     
	} else {        
	    $ok = mysql_select_db($dbname);        
		if(!$ok){           
		    die("Unable to access the database $dbname");        
		}     
	}
	
	define('MAINFILE', $mainfile);
	define('URL', $url);
	define('MAINURL', $mainurl);
	define('REDIRECTED', $complete_url);
	define('ABSPATH', $abspath);
	define('MODQ', $mod_url);
	define('MYDOM', $mydomain);

	$result = mysql_query("SELECT * FROM groones_settings LIMIT 0,1");
	$row = mysql_fetch_array($result);
    $emailaddr	= $row['EMAILADDR'];
    $notify 	= $row['NOTIFY'];
    $subject 	= $row['SUBJECT'];
    $numentry 	= $row['NUMENTRY'];
    $showemail 	= $row['SHOWEMAIL'];
	$keyword 	= $row['KEYWORD'];
	$captcha 	= $row['CAPTCHA'];
	
?>
Return current item: GBoook