|
|
@ -59,11 +59,7 @@ class Room |
|
|
|
[ |
|
|
|
[ |
|
|
|
'namespace' => $namespace['namespaceId'], |
|
|
|
'namespace' => $namespace['namespaceId'], |
|
|
|
'name' => $namespace['displayName'], |
|
|
|
'name' => $namespace['displayName'], |
|
|
|
'total' => $total, |
|
|
|
'total' => $total |
|
|
|
'pin' => in_array( |
|
|
|
|
|
|
|
$namespace['namespaceId'], |
|
|
|
|
|
|
|
$this->_config->kevachat->room->pin |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -109,12 +105,17 @@ class Room |
|
|
|
return str_replace( |
|
|
|
return str_replace( |
|
|
|
[ |
|
|
|
[ |
|
|
|
'{logo}', |
|
|
|
'{logo}', |
|
|
|
|
|
|
|
'{about}', |
|
|
|
'{rooms}' |
|
|
|
'{rooms}' |
|
|
|
], |
|
|
|
], |
|
|
|
[ |
|
|
|
[ |
|
|
|
file_get_contents( |
|
|
|
file_get_contents( |
|
|
|
__DIR__ . '/../../logo.ascii' |
|
|
|
__DIR__ . '/../../logo.ascii' |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
implode( |
|
|
|
|
|
|
|
PHP_EOL, |
|
|
|
|
|
|
|
$this->_config->kevachat->link->about |
|
|
|
|
|
|
|
), |
|
|
|
implode( |
|
|
|
implode( |
|
|
|
PHP_EOL, |
|
|
|
PHP_EOL, |
|
|
|
$rooms |
|
|
|
$rooms |
|
|
@ -409,9 +410,10 @@ class Room |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private function _url(?string $path = null) |
|
|
|
private function _url(?string $path = null, ?string $name = null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return ( |
|
|
|
return |
|
|
|
|
|
|
|
( |
|
|
|
$this->_config->gemini->server->port == 1965 ? |
|
|
|
$this->_config->gemini->server->port == 1965 ? |
|
|
|
sprintf( |
|
|
|
sprintf( |
|
|
|
'gemini://%s%s', |
|
|
|
'gemini://%s%s', |
|
|
@ -424,6 +426,10 @@ class Room |
|
|
|
$this->_config->gemini->server->port, |
|
|
|
$this->_config->gemini->server->port, |
|
|
|
$path |
|
|
|
$path |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
. |
|
|
|
|
|
|
|
( |
|
|
|
|
|
|
|
$name ? ' ' . $name : null |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |