Browse code

Add includes/dbfunctions.php include back to config.php, but leave the actual dbconnect in the includes/dbfunctions.php file where it belongs - this makes legacy modules work without adding another include

Clarissa Walker authored on 2026/09/05 13:38:28
Showing 1 changed files
... ...
@@ -6,4 +6,5 @@ $dbpass = "dbpass";
6 6
 $sitekey = "";
7 7
 $settingsprefix = "settings";
8 8
 
9
+include("includes/dbfunctions.php");
9 10
 ?>
Browse code

Even more general cleanup - redundancy also removed from one file

Clarissa Walker authored on 2026/08/22 18:49:10
Showing 1 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
+?>
Browse code

3.5.6 efiction version

Jimako authored on 2024/03/09 16:09:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,12 @@
1
+<?php 
2
+$dbhost = "localhost";
3
+$dbname = "dbname";
4
+$dbuser= "dbuser";
5
+$dbpass = "dbpass";
6
+$sitekey = "";
7
+$settingsprefix = "settings";
8
+
9
+include_once("includes/dbfunctions.php");
10
+if(!empty($sitekey)) $dbconnect = dbconnect($dbhost, $dbuser,$dbpass, $dbname);
11
+
12
+?>
0 13
\ No newline at end of file