Fix. Load Message class (#2585)
Fix. Use correct way to get text message. Fix. Use `Database Username` to create database if no `Create Database Username` specified.
This commit is contained in:
committed by
FusionPBX
parent
dbf3d7ab08
commit
a75d89ef73
@@ -28,6 +28,7 @@
|
|||||||
require_once "root.php";
|
require_once "root.php";
|
||||||
require_once "resources/functions.php";
|
require_once "resources/functions.php";
|
||||||
require_once "resources/classes/text.php";
|
require_once "resources/classes/text.php";
|
||||||
|
require_once "resources/classes/messages.php";
|
||||||
|
|
||||||
//start a php session
|
//start a php session
|
||||||
if (!isset($_SESSION)) { session_start(); }
|
if (!isset($_SESSION)) { session_start(); }
|
||||||
@@ -257,7 +258,7 @@
|
|||||||
include "resources/page_parts/install_config_database.php";
|
include "resources/page_parts/install_config_database.php";
|
||||||
}
|
}
|
||||||
elseif($install_step == 'execute'){
|
elseif($install_step == 'execute'){
|
||||||
echo "<p><b>".$text['header-installing'][$install_language]."</b></p>\n";
|
echo "<p><b>".$text['header-installing']."</b></p>\n";
|
||||||
//$protocol = 'http';
|
//$protocol = 'http';
|
||||||
//if($_SERVER['HTTPS']) { $protocol = 'https'; }
|
//if($_SERVER['HTTPS']) { $protocol = 'https'; }
|
||||||
//echo "<iframe src='$protocol://$domain_name/core/install/install_first_time.php' style='border:solid 1px #000;width:100%;height:auto'></iframe>";
|
//echo "<iframe src='$protocol://$domain_name/core/install/install_first_time.php' style='border:solid 1px #000;width:100%;height:auto'></iframe>";
|
||||||
|
|||||||
@@ -194,10 +194,6 @@ require_once "root.php";
|
|||||||
$this->$o_key = $value;
|
$this->$o_key = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($this->_db_create== 1) {
|
|
||||||
if (strlen($this->_db_create_username)==0) $this->_db_create_username='root';
|
|
||||||
if (strlen($this->_db_create_password)==0) $this->_db_password;
|
|
||||||
}
|
|
||||||
if (strlen($this->_db_port) == 0) { $this->_db_port = "5432"; }
|
if (strlen($this->_db_port) == 0) { $this->_db_port = "5432"; }
|
||||||
|
|
||||||
// domain info
|
// domain info
|
||||||
|
|||||||
Reference in New Issue
Block a user