<?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 *
* -------------------------------------------------------------------- *
* Kurzbeschreibung : SQL-Typ auswaehlen *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
+ * $Revision:: $ *
* $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 *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Some security stuff...
if (!defined('__SECURITY')) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
- require($INC);
-}
-
-// Select MySQL 3 as default database type
-if (!defined('_DB_TYPE')) define('_DB_TYPE', "mysql3");
+ die();
+} // END - if
// Create include file name
-$INC = sprintf("inc/db/lib-%s.php", constant('_DB_TYPE'));
+$inc = sprintf("inc/db/lib-%s.php", getConfig('_DB_TYPE'));
-if (INCLUDE_READABLE($INC)) {
+if (isIncludeReadable($inc)) {
// Include abstraction layer
- LOAD_INC_ONCE($INC);
+ loadIncludeOnce($inc);
} else {
// Bye, bye...
- die("Cannot load database abstraction layer ".constant('_DB_TYPE')." -> R.I.P.");
+ die('Cannot load database abstraction layer <u>' . getConfig('_DB_TYPE') . '</u> -> R.I.P.');
}
-//
+// [EOF]
?>