General cleanup - redundancy also removed from one file
--- a/docs/config.php
+++ b/docs/config.php
@@ -6,7 +6,5 @@
$sitekey = "";
$settingsprefix = "settings";
-include_once("includes/dbfunctions.php");
-if(!empty($sitekey)) $dbconnect = dbconnect($dbhost, $dbuser,$dbpass, $dbname);
+?>
-?>
--- a/includes/dbfunctions.php
+++ b/includes/dbfunctions.php
@@ -1,13 +1,11 @@
<?php
-
-
if(function_exists("mysqli_connect")) {
-
include_once(_BASEDIR."includes/mysqli_functions.php");
$dbconnect = @dbconnect($dbhost, $dbuser, $dbpass, $dbname);
-}else {
+} else {
include(_BASEDIR."languages/en.php"); // Because we haven't selected a language setting yet
die(_FATALERROR._NODBFUNCTIONALITY);
}
+