]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib.php
More cleanups and small improvements (e.g. usage of wrappers).
[mailer.git] / inc / db / lib.php
index ba0d73c1e0178d8528c40a87b683a334446007d6..41c725852ce066b0114d943e68888b37f6f8bde4 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : SQL-Typ auswaehlen                               *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -41,15 +36,19 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Create include file name
-$inc = sprintf("inc/db/lib-%s.php", getConfig('_DB_TYPE'));
+$inc = sprintf('inc/db/lib-%s.php', getConfig('_DB_TYPE'));
 
-if (isIncludeReadable($inc)) {
-       // Include abstraction layer
-       loadIncludeOnce($inc);
-} else {
+// Is the database library available?
+if (!isIncludeReadable($inc)) {
        // Bye, bye...
-       debug_report_bug(__FILE__, __LINE__, 'Cannot load database abstraction layer <u>' . getConfig('_DB_TYPE') . '</u> -&gt; R.I.P.');
-}
+       reportBug(__FILE__, __LINE__, 'Cannot load database library <u>' . getConfig('_DB_TYPE') . '</u> -&gt; R.I.P.');
+} // END - if
+
+// Include abstraction layer
+loadIncludeOnce($inc);
+
+// Initialize it
+initDatabaseLayer();
 
 // [EOF]
 ?>