Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): Cannot assign requested address
Filename: mysqli/mysqli_driver.php
Line Number: 201
Backtrace:
File: /www/wwwroot/dash.konsole.xyz/application/core/MY_Controller.php
Line: 343
Function: __construct
File: /www/wwwroot/dash.konsole.xyz/application/controllers/Api.php
Line: 12
Function: __construct
File: /www/wwwroot/dash.konsole.xyz/index.php
Line: 316
Function: require_once
无法使用提供的设置连接到数据库服务器。
Filename: core/MY_Controller.php
Line Number: 343
<?php
/**
* @package Doubly
* @author Unlimited Elements
* @copyright (C) 2022 Unlimited Elements, All Rights Reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
if(!defined("DOUBLY_INC")) die("restricted access");
class Doubly_Object{
private $type;
private $id;
private $object;
/**
* init object by id and type
*/
public function init($type, $id){
$objIntegrations = new Doubly_Integrations();
$this->id = $id;
$this->type = $type;
switch($type){
case GlobalsDOUBLY::EXPORT_TYPE_SNIPPET:
$this->object = $objIntegrations->getSnippetById($id);
break;
default:
$type = esc_html($type);
$id = (int)$id;
UniteFunctionsDOUBLY::throwError("Object $type with id: $id not found");
break;
}
}
}