X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fdb%2Flib.php;h=34a0581bb10ae2d0027fa4c45a3ba8381c2f8c8c;hb=508228c85fba8448d00865b1639cb8cd7a69e457;hp=7578d6077012f93178cb010603cf24948f56ea63;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5;p=mailer.git diff --git a/inc/db/lib.php b/inc/db/lib.php index 7578d60770..34a0581bb1 100644 --- a/inc/db/lib.php +++ b/inc/db/lib.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * 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,17 +43,17 @@ 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."); } //