Location: PHPKode > projects > WaterFlea Database Maintenance Tool > waterflea-0.6-beta/include/_Database.php
<?php

/*#####################################################################################

WaterFlea - Database Maintenance Tool
Copyright (C) Benjamin Rafael F. Intal

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program 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 General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

WaterFlea project site is at http://www.sourceforge.net/projects/waterflea/
WaterFlea website is at http://waterflea.sourceforge.net/

If you have questions or suggestions, please visit the said URLs above,
or you could contact me via email at <hide@address.com> - just mention in the
WaterFlea in the subject and what it's all about.

#######################################################################################*/


/*
	DATABASE CONFIGURATION
*/

// connectivity
define ("DB_HOSTNAME", "<yourHostNameHere>");
define ("DB_PORT", "3306");
define ("DB_USERNAME", "<yourUserNameHere>");
define ("DB_PASSWORD", "<yourPasswordHere>");

// database
define ("DB_DATABASE", "<yourDatabaseHere>");

/*
	ADMIN DATABASE TABLE CONFIGURATION
*/

// table containing the usernames and passwords of 
// the database maintainers
define ("ADMIN_TABLE", "users");

// username field in ADMIN_TABLE
define ("ADMIN_FIELD_USER", "name");

// password field in ADMIN_TABLE
define ("ADMIN_FIELD_PASS", "_password");

// access type field in ADMIN_TABLE
// If no table is defined ("") then all the users
// are assumed to have full access to the db
define ("ADMIN_FIELD_ACCESS", "");

/*
	FILESYSTEM CONFIGURATION
*/

// upload folder (this should have access from the server, use chmod)
define ("UPLOAD_FOLDER", "uploadedimages/");
?>
Return current item: WaterFlea Database Maintenance Tool