]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib.php
Re-added, now the right ones
[mailer.git] / inc / db / lib.php
index 4384bfea813a58fa0e813a765fa08055e6f6d573..34a0581bb10ae2d0027fa4c45a3ba8381c2f8c8c 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : SQL-Typ auswaehlen                               *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision:: 856                                                    $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -38,21 +43,18 @@ if (!defined('__SECURITY')) {
 }
 
 // Select MySQL 3 as default database type
-if (_DB_TYPE == "_DB_TYPE") define('_DB_TYPE', "mysql3");
+if (!defined('_DB_TYPE')) define('_DB_TYPE', "mysql3");
 
 // Create include file name
-$INC = sprintf("%sinc/db/lib-%s.php", PATH, _DB_TYPE);
+$INC = sprintf("inc/db/lib-%s.php", constant('_DB_TYPE'));
 
-if ((file_exists($INC)) && (is_readable($INC))) {
+if (INCLUDE_READABLE($INC)) {
        // Include abstraction layer
-       require_once($INC);
+       LOAD_INC_ONCE($INC);
 } else {
        // Bye, bye...
-       die("Cannot load database abstraction layer! R.I.P.");
+       die("Cannot load database abstraction layer ".constant('_DB_TYPE')." -> R.I.P.");
 }
 
-// Remove this globally used variable
-unset($INC);
-
 //
 ?>