Location: PHPKode > projects > Gallereazy > Eric_Wright/admin/config.php
<?
##############################################################################
##############################################################################
### SET STUFF HERE ### SET STUFF HERE ### SET STUFF HERE ### SET STUFF HERE ##

$size=100;                                         // thumbnail size (pixels)
$fullsize=500;                                     // full size (pixels)

// User Password
define('PASSWORD', 'test');

// Preferences
define('HEADING', '');  // leave blank to get title from the user
define('ALLOW_COMMENTS', true);
define('SHOW_LATEST_COMMENTS', true);
define('SHOW_COMMENTS_BY_DEFAULT', true);
define('THEME', 'kelly'); // set to "default" to use the default theme
define('PATH_TO_APP', "../gallereazy/");  // relative path. must include trailing slash

// Database setup
$database_location = 'localhost';
$user = 'root';
$password = 'root';
$database_name = 'gallereazy_test';

// uncomment and change to desired name if you don't want to use
// the directory name as the username in the database
//define('USER', 'somebody');
// actually, don't use this at all because it will mess up the RSS stuff

##############################################################################
######################### DON'T TOUCH THIS STUFF ############################


mysql_connect ($database_location, $user, $password) or die("can't connect");
mysql_select_db ($database_name)  or die(mysql_error());

// get username like this by default
if(!defined('USER'))
{
	$user_array = explode("/",$_SERVER["PHP_SELF"]);
	$length = count($user_array);
	if($user_array[$length-2] != 'admin')
		define('USER', $user_array[$length-2]);
	else
		define('USER', $user_array[$length-3]);
}
?>
Return current item: Gallereazy