[TEP-COMMIT] [CVS catalog] move the database type value to a configuration parameter
anonymous-OfajU3CKLf1/[email protected] 22 Jul 2004 16:59:05 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog/includes on MAIN
classes/database.php +5 -1 1.3 -> 1.4
configure.php +1 1.15 -> 1.16
+6 -1
2 modified files
move the database type value to a configuration parameter
----------
catalog /catalog /includes /classes
database.php 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- database.php 2004/07/22 16:17:07 1.3
+++ database.php 2004/07/22 16:59:03 1.4
@@ -23,7 +23,11 @@
$number_of_queries = 0,
$time_of_queries = 0;
- function &connect($server, $username, $password, $type = 'mysql') {
+ function &connect($server, $username, $password, $type = '') {
+ if (empty($type)) {
+ $type = DB_DATABASE_CLASS;
+ }
+
require('database/' . $type . '.php');
$class = 'osC_Database_' . $type;
----------
catalog /catalog /includes
configure.php 1.15 -> 1.16
diff -u -r1.15 -r1.16
--- configure.php 2004/02/16 06:47:40 1.15
+++ configure.php 2004/07/22 16:59:04 1.16
@@ -42,6 +42,7 @@
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'osCommerce');
+ define('DB_DATABASE_CLASS', 'mysql');
define('DB_TABLE_PREFIX', 'osc_');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
CVSspam 0.2.8
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click