mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 15:17:13 +00:00
@@ -48,7 +48,7 @@ class adm_DB {
|
|||||||
var $connection;
|
var $connection;
|
||||||
function __construct(){
|
function __construct(){
|
||||||
global $database;
|
global $database;
|
||||||
$database = new MYSQLi_DB(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB);
|
$database = new MYSQLi_DB(SQL_SERVER.':'.SQL_PORT, SQL_USER, SQL_PASS, SQL_DB);
|
||||||
$this->connection = $database->return_link();
|
$this->connection = $database->return_link();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -432,7 +432,7 @@ class MYSQLi_DB implements IDbConnection {
|
|||||||
*/
|
*/
|
||||||
public function connect() {
|
public function connect() {
|
||||||
// try to connect
|
// try to connect
|
||||||
$this->dblink = mysqli_connect($this->hostname, $this->username, $this->password);
|
$this->dblink = mysqli_connect($this->hostname.':'.$this->port, $this->username, $this->password);
|
||||||
|
|
||||||
// return on error
|
// return on error
|
||||||
if (mysqli_error($this->dblink)) {
|
if (mysqli_error($this->dblink)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user