From: <vb...@us...> - 2002-06-20 14:48:22
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv31196 Modified Files: core_database_API.php Log Message: 1. Modified admin scripts to work with custom_constant_inc.php and custom_config_inc.php. 2. Fixed a type in the admin_check, and echoed the $g_absolute_path. 3. Added the possibility of including core_database_API.php without opening the database. Used in admin_check.php. 4. "0002132: login only possible on one domain" - Now $g_path and $g_absolute_path are auto-calculated rather than assigned dummy values in config_inc1.php. This should allow multiple domains. The values can still be overridden in custom_config_inc.php. Index: core_database_API.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core_database_API.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- core_database_API.php 14 Jun 2002 07:50:50 -0000 1.11 +++ core_database_API.php 20 Jun 2002 14:48:18 -0000 1.12 @@ -124,9 +124,11 @@ } # -------------------- - if ( OFF == $g_use_persistent_connections ) { - db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name, $g_port ); - } else { - db_pconnect( $g_hostname, $g_db_username, $g_db_password, $g_database_name, $g_port ); + if ( !isset( $f_skip_open_db ) ) { + if ( OFF == $g_use_persistent_connections ) { + db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name, $g_port ); + } else { + db_pconnect( $g_hostname, $g_db_username, $g_db_password, $g_database_name, $g_port ); + } } ?> |