Location: PHPKode > scripts > Some Chess > some-chess/config.php
<?php
/***************************************************************************************
** "Some Chess" some rights reserved 2006
** Some Chess written by Jon Link
** 
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; either
** version 2.1 of the License, or (at your option) any later version.
** 
** This library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
** Lesser General Public License for more details.
** 
** You should have received a copy of the GNU Lesser General Public
** License along with this library; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
** 
** The images [prnqk][dl][dl].png are GPL, from Wikimedia Commons, see gpl.txt
**
** a small portion of the code to display the chess board was taken from
** phpChessBoard by Andreas Stieger http://www.wh-hms.uni-ulm.de/~tux/phpChessBoard/
*****************************************************************************************/

//-- Main Settings (SOME CHANGES REQUIRED)
$host		= 'localhost'; 		// host name of database (usually it's localhost)
$username	= '';				// username for DB
$password	= '';				// password for DB
$database	= 'somechess';		// DB name (suggested name is somechess, but you can change it of course)
@mysql_connect($host,$username,$password);
@mysql_select_db($database) or die('ERROR: can\'t connect to database');

//--------YOU MAY CHANGES THE SETTINGS BELOW IN THE GUI BUT IF YOU WANT TO USE THIS THAT'S FINE-----

$domain			= 'example.com';	// your domain (used for invite email & rss)
$homeFolder		= '/somechess'; 	// the location of Some Chess on your server
$playerImgDir	= 'playerImg'; 		// the folder where user uploaded images will go
$lang			= 'en';				// the default language some chess uses (only english is available at the moment)
$adminEmail		= '';				// currently only used for backup 

//-- Backup Options  (see readme for instructions on using cron to automate backup)
//-- since this option is new & this is beta software I suggest checking the backup
//-- files to make sure they are being created properly before depending on this solution
$backupEmail	= 1;	// email backups of MySQL database to admin
$backupFolder	= 1;	// save backups of MySQL database to backup folder

//-- Admin Panel Options (0 disables, 1 enables)
$showBackup		= 1;	// show backup option in admin panel
$showUpdate		= 1;	// show update option in admin panel

//-- Misc Settings (changes optional) 
//-- time between refreshes (in seconds 0 disables refresh)
$boardRefresh 	= 30;	// the game board
$chatRefresh	= 25;	// the chat window

//-- 0 disables, 1 or more enables 
$showStats		= 1;	// show the link to the stats page
$showChat		= 1;	// show the chat window
$showPlayerImg	= 1; 	// show user images & the upload form
$allowUndo		= 0; 	// enable undo requests
$allowRegister	= 0;	// enables registration without invitation (via login page)
$verifyReg		= 0;	// enables basic image verification for registration
$endDays		= 20;	// number of days before game can be ended because of not making a move

//-- the level new users start at
$startPower	= 0;		// user can't invite friends
//$startPower	= 1; 	// user can invite friends
//$startPower	= 2; 	// currently not used
//$startPower	= 3; 	// currently not used
//$startPower	= 4; 	// user has admin options
								
// NOTE: make sure there is no white space outside of the PHP 
// tags in this file or you will get a problem with the header
//
// ALSO, things will go faster if you delete everything that is commented out 
// in this file once you configure Some Chess
?>
Return current item: Some Chess