feat: MySQL port into installation options

Closes #279
This commit is contained in:
Martin Ambrus
2017-11-07 12:30:32 +01:00
parent a6d14c6b6d
commit 312507fe9f
14 changed files with 168 additions and 109 deletions
+1 -1
View File
@@ -5350,7 +5350,7 @@ References:
// database is not needed if we're displaying static pages
$req_file = basename($_SERVER['PHP_SELF']);
if (!in_array($req_file, ['tutorial.php', 'anleitung.php'])) {
$database = new MYSQLi_DB(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB);
$database = new MYSQLi_DB(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB, SQL_PORT);
$link = $database->return_link();
$GLOBALS['db'] = $database;
$GLOBALS['link'] = $database->return_link();