]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib.php
More double->single convertions
[mailer.git] / inc / db / lib.php
index 78bd9e1d1a5ac926009e6be6bea1bffebdabc70b..217d7681b042081a783791c3b3aa665800b2efba 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : SQL-Typ auswaehlen                               *
  * -------------------------------------------------------------------- *
- * $Revision:: 856                                                    $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009)             $ *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: stelzi                                                   $ *
+ * $Author::                                                          $ *
  * Needs to be in all Files and every File needs "svn propset           *
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
-}
+} // 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 <u>' . getConfig('_DB_TYPE') . '</u> -&gt; R.I.P.');
 }
 
 //