Browse code

Even more general cleanup - redundancy also removed from one file

Clarissa Walker authored on 2026/08/22 18:49:10
Showing 2 changed files
... ...
@@ -6,7 +6,4 @@ $dbpass = "dbpass";
6 6
 $sitekey = "";
7 7
 $settingsprefix = "settings";
8 8
 
9
-include_once("includes/dbfunctions.php");
10
-if(!empty($sitekey)) $dbconnect = dbconnect($dbhost, $dbuser,$dbpass, $dbname);
11
-
12
-?>
13 9
\ No newline at end of file
10
+?>
... ...
@@ -1,13 +1,10 @@
1 1
 <?php
2 2
 
3
-
4
-
5 3
 if(function_exists("mysqli_connect")) {
6
-
7 4
 	include_once(_BASEDIR."includes/mysqli_functions.php");
8 5
 	$dbconnect = @dbconnect($dbhost, $dbuser, $dbpass, $dbname);
9
-}else {
6
+} else {
10 7
 	include(_BASEDIR."languages/en.php"); // Because we haven't selected a language setting yet
11 8
 	die(_FATALERROR._NODBFUNCTIONALITY);
12 9
 }
13
- 
14 10
\ No newline at end of file
11
+