From: <cpj...@pr...> - 2004-01-27 15:33:30
|
Update of /cvsroot/etest/etest/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4743/includes Modified Files: configure.php Log Message: added DB_PREFIX and fixed user documentation -- craig Index: configure.php =================================================================== RCS file: /cvsroot/etest/etest/includes/configure.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** configure.php 16 Dec 2003 12:29:01 -0000 1.31 --- configure.php 27 Jan 2004 15:32:23 -0000 1.32 *************** *** 7,21 **** Released under the GNU General Public License */ ! //Local configuration if used on local testing machine ! if ($_SERVER['REMOTE_ADDR']=="127.0.0.1") ! { ! //Set local configuration ! define('DB_HOST', 'localhost'); // Set local mysql server hostname here ! } ! else ! { ! //Set remote Configuration ! define('DB_HOST', 'mysql'); // Set mysql server hostname here ! } //Define directory structure --- 7,45 ---- Released under the GNU General Public License */ ! /****************************************************************/ ! /* ! /* Several IMPORTANT values need to be set in this configuration ! /* file. These are used to connect the the MySQL database. ! /* ! /* DB_HOST => the hostname where your DB is located ! /* DB_USERNAME => the username to login to the DB ! /* DB_PASSWORD => the password to login to the DB ! /* DB_NAME => the name of the DB to use ! /* DB_PREFIX => the table name prefix in the DB ! /* (this defaults to "etest") ! /* ! /****************************************************************/ ! ! /************************************************/ ! /* Define your MySQL database setup values here */ ! /************************************************/ ! define('DB_USERNAME', 'etest'); // MySQL username ! define('DB_PASSWORD', 'protocol'); // MySQL password ! define('DB_NAME', 'etest'); // MySQL database name ! define('DB_PREFIX', 'etest'); // MySQL table prefix ! ! // Set DB_HOST here ! if ($_SERVER['REMOTE_ADDR']=="127.0.0.1") //Set local configuration ! { ! define('DB_HOST', 'localhost'); // Set local mysql server hostname here ! } ! else //Set remote Configuration ! { ! define('DB_HOST', 'mysql'); // Set remote mysql server hostname here ! } ! ! /****************************************************************/ ! /*** DO NOT EDIT BELOW THIS LINE ***/ ! /****************************************************************/ //Define directory structure *************** *** 38,53 **** define('CLASSES_PATH', INCLUDES_PATH.'classes/'); - /************************************************/ - /* Define your MySQL database setup values here */ - /************************************************/ - define('DB_USERNAME', 'etest'); // MySQL username - define('DB_PASSWORD', 'protocol'); // MySQL password - define('DB_NAME', 'etest'); // MySQL database name - /* Database Variables for MySQL session management */ ! $DB_host = DB_HOST; // mysql db host ! $DB_base = DB_NAME; // mysql db ! $DB_user = DB_USERNAME; // mysql user ! $DB_password = DB_PASSWORD; // mysql user password /* Ensure we don't use both magic_quotes and addslashes() */ --- 62,71 ---- define('CLASSES_PATH', INCLUDES_PATH.'classes/'); /* Database Variables for MySQL session management */ ! $DB_host = DB_HOST; // mysql db host ! $DB_base = DB_NAME; // mysql db ! $DB_user = DB_USERNAME; // mysql user ! $DB_password = DB_PASSWORD; // mysql user password ! $DB_preix = DB_PREFIX; // mysql table prefix /* Ensure we don't use both magic_quotes and addslashes() */ |