X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fdb%2Flib.php;h=a75102395302e5b0ffdeb9967423968169374016;hb=dcab53bf379a6e7a0224b255dfab06512cb694dd;hp=31e2194b31b6c55825986d1df58d4cd3e624730f;hpb=f97a999e0737c0007ae9c3c26dfef49f75a175ac;p=mailer.git diff --git a/inc/db/lib.php b/inc/db/lib.php index 31e2194b31..a751023953 100644 --- a/inc/db/lib.php +++ b/inc/db/lib.php @@ -17,7 +17,7 @@ * 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 * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -38,23 +38,22 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; - require($INC); -} + die(); +} // END - if -// Select MySQL 3 as default database type -if (!defined('_DB_TYPE')) define('_DB_TYPE', "mysql3"); +// Is it not set? +if (!isConfigEntrySet('_DB_TYPE')) setConfigEntry('_DB_TYPE', 'mysql3'); // 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 ' . getConfig('_DB_TYPE') . ' -> R.I.P.'); } -// +// [EOF] ?>