X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fdb%2Flib.php;h=76a097bf2ca33c8902e9a7b71fdae498d9249263;hb=2a4cfc2b30c28bd1648717d86cd2c1353d7a2565;hp=217d7681b042081a783791c3b3aa665800b2efba;hpb=fe559c0f67e986c113f5b465e767e11a6588734d;p=mailer.git diff --git a/inc/db/lib.php b/inc/db/lib.php index 217d7681b0..76a097bf2c 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,19 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; - require($INC); + 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')); +$inc = sprintf("inc/db/lib-%s.php", getConfig('_DB_TYPE')); -if (isIncludeReadable($INC)) { +if (isIncludeReadable($inc)) { // Include abstraction layer - loadIncludeOnce($INC); + loadIncludeOnce($inc); } else { // Bye, bye... die('Cannot load database abstraction layer ' . getConfig('_DB_TYPE') . ' -> R.I.P.'); } -// +// [EOF] ?>