Skip to content

Commit

Permalink
Fixes database wizard broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoFara committed Dec 29, 2023
1 parent 246cdc4 commit 87571d6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
24 changes: 13 additions & 11 deletions database_wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,18 @@ function writeToFile($conn)
function doOperation($op)
{
$message = null;
$dbname = null;
$passwd = null;
$server = null;
$socket = null;
$userid = null;
$passwd = null;
$dbname = null;
$socket = null;
if ($op == "Autocomplete") {
$_SERVER['SERVER_ADDR'];
$_SERVER['SERVER_NAME'];
$server = (string) $_SERVER['SERVER_ADDR'];
$userid = "";
$passwd = "";
$dbname = (string) $_SERVER['SERVER_NAME'];
$socket = "";
} else if ($op == "Check") {
//require_once 'inc/database_connect.php';
$server = getreq("server");
$userid = getreq("userid");
$passwd = getreq("passwd");
Expand Down Expand Up @@ -183,11 +185,11 @@ function doOperation($op)
}
}
} else if ($op == "Change") {
getreq("server");
getreq("userid");
getreq("passwd");
getreq("dbname");
getreq("socket");
$server = getreq("server");
$userid = getreq("userid");
$passwd = getreq("passwd");
$dbname = getreq("dbname");
$socket = getreq("socket");
}
$conn = new Database_Connection(
$server, $userid, $passwd, $dbname, $socket
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ ones are marked like "v1.0.0-fork".

## [Unreleased]

### Fixed

* The database wizard was broken since 2.9.0.

## 2.9.1-fork (December 29 2023)

### Added in 2.9.1-fork
Expand Down
4 changes: 4 additions & 0 deletions docs/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,10 @@ <h2 id="CHANGELOG" name="CHANGELOG">▶ Changelog - <a href="#">[↑]</a></h2>
For git tags, official releases are marked like "v1.0.0", while unofficial
ones are marked like "v1.0.0-fork".</p>
<h3>[Unreleased]</h3>
<h4>Fixed</h4>
<ul>
<li>The database wizard was broken since 2.9.0.</li>
</ul>
<h3>2.9.1-fork (December 29 2023)</h3>
<h4>Added in 2.9.1-fork</h4>
<ul>
Expand Down

0 comments on commit 87571d6

Please sign in to comment.