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 Unlimited Elements
* @author UniteCMS http://unitecms.net
* @copyright Copyright (c) 2016 UniteCMS
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
defined('UNLIMITED_ELEMENTS_INC') or die('Restricted access');
class UCAdminNoticesManager{
private static $notices = array();
/**
* get all notices
*/
public static function getNotices(){
return self::$notices;
}
/**
* add a notice instance
*/
public static function addNotice($notice){
self::$notices[$notice->getId()] = $notice;
}
/**
* mark the notice as dismissed
*/
public static function dismissNotice($id){
$notice = self::getNotice($id);
if($notice === null)
return;
$notice->dismiss();
}
/**
* postpone the notice for the given duration (in hours)
*/
public static function postponeNotice($id, $duration){
$notice = self::getNotice($id);
if($notice === null)
return;
$notice->postpone($duration);
}
/**
* get the notice by identifier
*/
private static function getNotice($id){
if(empty(self::$notices[$id]))
return null;
return self::$notices[$id];
}
}