logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[TEP-COMMIT] [CVS catalog] move the database type value to a configuration : msg#00006

Subject: [TEP-COMMIT] [CVS catalog] move the database type value to a configuration parameter
Commit in catalog/catalog/includes on MAIN
classes/database.php+5-11.3 -> 1.4
configure.php+11.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
<Prev in Thread] Current Thread [Next in Thread>