getPrivileges(); parent::__construct($name, Node::CONTAINER); if ($GLOBALS['is_create_db_priv'] && $GLOBALS['cfg']['ShowCreateDb'] !== false ) { $newLabel = _pgettext('Create new database', 'New'); $new = NodeFactory::getInstance( 'Node', $newLabel ); $new->isNew = true; $new->icon = Util::getImage('b_newdb', ''); $new->title = $newLabel; $new->links = [ 'text' => 'server_databases.php?server=' . $GLOBALS['server'], 'icon' => 'server_databases.php?server=' . $GLOBALS['server'], ]; $new->classes = 'new_database italics'; $this->addChild($new); } } }