Location: PHPKode > scripts > SelectaPix Image Gallery > includes/config.php
<?
/* +----------------------------------------------------------------------+
   |SelectaPix Open Source Gallery	                                      |
   +----------------------------------------------------------------------+
   | Copyright (c) 2004 OutOfTheTrees			                          |
   |                                                                      |
   | http://www.outofthetrees.co.uk/index.php                             |
   | 												                      |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.0 of the GPL license,       |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | http://www.outofthetrees.co.uk/license/2_0.txt.                      |
   | If you did not receive a copy of the SelectaPix license and are 	  |
   | unable to obtain it through the world-wide-web, please send a note   |
   | to hide@address.com so we can mail you a copy immediately.|
   +----------------------------------------------------------------------+ */
if (!defined("ACCESS")) {
    die ("Direct request denied");
}
/************************************************
	SELECTAPIX CONFIGURATION FILE
	Change the values in double inverted commas ("")
	below to reflect your specific site/server
	setup.
*************************************************


 ************************************************
	DATABASE SPECIFIC VALUES

 ************************************************/

define('SQL_DBASE', "your_db"); 				// Set name of database to use
define('SQL_USER', "your_user");				// Set database username
define('SQL_PASS', "your_pass");                // Set database R/W password
define('SQL_SERVER', "localhost");            	// Set server name
define('SQL_ABM_TBL', "albums");        		// Define a different MySQL table name for the albums table if required
define('SQL_IMG_TBL', "images");             	// Define a different MySQL table name for the images table if required

 /************************************************
	GENERAL SITE CONFIGURATION VALUES

 *************************************************

 /************************************************
	SITE PATH
	Set full path to root directory on your server
	e.g. /var/www/yoursite/
		 /www/htdocs/yoursite/
		 C:/program files/Apache Group/Apache/htdocs/

 ************************************************/
define('SITE_PATH', "D:/program files/Apache Group/Apache/htdocs/");
 /************************************************
	SITE URL
	Set real base URL of site (include the
	trailing slash - /)
	e.g. http://localhost/
		 http://www.yourdomain.com/

 ************************************************/
define('SITE_URL', "http://localhost/");
 /************************************************
	SITE_DIR
	The folder (relative to the web root) on the
	server in which your SelectaPix files are to
	be stored.
	e.g. gallery/

 ************************************************/
define('SITE_DIR', "gallery/");
 /************************************************
	IMAGE_DIR
	The folder (relative to the web root) on the
	server in which your images are to be stored.
	e.g. images/

 ************************************************/
define('IMAGE_DIR', "gallery/images/");
 /************************************************
	STYLESHEET
	Path to the stylesheet to be used. If you
	intend to upload SelectaPix 'as is' you do
	not need to change this value.
	default =  assets/general.css

 ************************************************/
define('STYLESHEET', "assets/general.css");
 /************************************************
	SITE_NAME
	The title of your site
	e.g. Fred's Photo Gallery

 ************************************************/
define('SITE_NAME', "My gallery");
 /************************************************
	ADMIN_EMAIL
	Your email address - used to notify errors etc
	e.g. hide@address.com

 ************************************************/
define('ADMIN_EMAIL', "hide@address.com");
 /************************************************
	TOP_CAT_NAME
	Name of the top category or level - used for
	the top level in the breadcrumbtrail
	e.g. Photo Albums
		 Categories

 ************************************************/
define('TOP_CAT_NAME', "Photo Albums");
 /************************************************
	IMAGES_PER_PAGE
	Number of images to display per album page
	(leave blank for all)

 ************************************************/
define('IMAGES_PER_PAGE', "10");

/*************************************************
	IMAGE UPLOAD SPECIFIC VALUES
	These values define the size of images that
	are to be uploaded to your site. The defaults
	will work fine. If you're not sure leave these
	values alone.
*************************************************/

define('MAX_PIC_SIZE_KB', "150");            // Maximum size of images to be uploaded to your site
define('MAX_THUMB_WIDTH', "80");             // Maximum width of thumbnail images (auto created)
define('MAX_THUMB_HEIGHT', "80");            // Maximum height of thumbnail images (auto created)
define('MAX_IMAGE_WIDTH', "150");            // Maximum width of main images (auto created)
define('MAX_IMAGE_HEIGHT', "150");           // Maximum height of main images (auto created)
define('MAX_DESCRIPTION', "200");            // Maximum description length (in characters)
define('IMAGE_QUALITY', "70");				 // Enter a value of between 0 and 100. The higher the number,
									 		 // the better the image quality (and the higher the file size)
									 		 // default is 70
?>
Return current item: SelectaPix Image Gallery