mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
init gemini authorization codes 60-62 support
This commit is contained in:
parent
3949c9ee27
commit
49b21b38d0
3 changed files with 146 additions and 0 deletions
|
|
@ -148,6 +148,120 @@ class Gemini
|
|||
|
||||
break;
|
||||
|
||||
case 60: // authorization certificate required
|
||||
|
||||
$this->_connection->setAuth(
|
||||
true
|
||||
);
|
||||
|
||||
$this->_connection->setTitle(
|
||||
_('Authorization')
|
||||
);
|
||||
|
||||
$this->_connection->setSubtitle(
|
||||
$address->getHost()
|
||||
);
|
||||
|
||||
$this->_connection->setTooltip(
|
||||
sprintf(
|
||||
'Authorization required (code: %d)',
|
||||
intval(
|
||||
$response->getCode()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$this->_connection->setData(
|
||||
sprintf(
|
||||
'Authorization required (code: %d)',
|
||||
intval(
|
||||
$response->getCode()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$this->_connection->setMime(
|
||||
Filesystem::MIME_TEXT_GEMINI
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
case 61: // certificate not authorized
|
||||
|
||||
$this->_connection->setAuth(
|
||||
true
|
||||
);
|
||||
|
||||
$this->_connection->setTitle(
|
||||
_('Oops!')
|
||||
);
|
||||
|
||||
$this->_connection->setSubtitle(
|
||||
$address->getHost()
|
||||
);
|
||||
|
||||
$this->_connection->setTooltip(
|
||||
sprintf(
|
||||
'Authorization certificate not authorized (code: %d)',
|
||||
intval(
|
||||
$response->getCode()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$this->_connection->setData(
|
||||
sprintf(
|
||||
'Authorization certificate not authorized (code: %d)',
|
||||
intval(
|
||||
$response->getCode()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$this->_connection->setMime(
|
||||
Filesystem::MIME_TEXT_GEMINI
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
case 62: // certificate not valid
|
||||
|
||||
$this->_connection->setAuth(
|
||||
true
|
||||
);
|
||||
|
||||
$this->_connection->setTitle(
|
||||
_('Oops!')
|
||||
);
|
||||
|
||||
$this->_connection->setSubtitle(
|
||||
$address->getHost()
|
||||
);
|
||||
|
||||
$this->_connection->setTooltip(
|
||||
sprintf(
|
||||
'Authorization certificate not valid (code: %d)',
|
||||
intval(
|
||||
$response->getCode()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$this->_connection->setData(
|
||||
sprintf(
|
||||
'Authorization certificate not valid (code: %d)',
|
||||
intval(
|
||||
$response->getCode()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$this->_connection->setMime(
|
||||
Filesystem::MIME_TEXT_GEMINI
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
// Try cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue