<?php
/************************************************************************
- * MXChange v0.2.1 Start: 01/31/2004 *
- * =============== Last change: 08/29/2004 *
+ * Mailer v0.2.1-FINAL Start: 01/31/2004 *
+ * =================== Last change: 08/29/2004 *
* *
* -------------------------------------------------------------------- *
* File : lib.php *
* $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 - 2009 by Roland Haeder *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
die();
} // END - if
-// Is it not set?
-if (!isConfigEntrySet('_DB_TYPE')) setConfigEntry('_DB_TYPE', 'mysql3');
-
// Create include file name
$inc = sprintf("inc/db/lib-%s.php", getConfig('_DB_TYPE'));
-if (isIncludeReadable($inc)) {
- // Include abstraction layer
- loadIncludeOnce($inc);
-} else {
+if (!isIncludeReadable($inc)) {
// Bye, bye...
- die('Cannot load database abstraction layer <u>' . getConfig('_DB_TYPE') . '</u> -> R.I.P.');
-}
+ reportBug(__FILE__, __LINE__, 'Cannot load database abstraction layer <u>' . getConfig('_DB_TYPE') . '</u> -> R.I.P.');
+} // END - if
+
+// Include abstraction layer
+loadIncludeOnce($inc);
+
+// Initialize it
+initDatabaseLayer();
// [EOF]
?>