Compare commits
No commits in common. "stable" and "2.4.0" have entirely different histories.
|
@ -74,9 +74,6 @@ class core extends controller
|
||||||
// Blocking requests from CloudFlare (better to write this blocking into nginx config file)
|
// Blocking requests from CloudFlare (better to write this blocking into nginx config file)
|
||||||
if (isset($$_SERVER['HTTP_USER_AGENT']) && $$_SERVER['HTTP_USER_AGENT'] === 'nginx-ssl early hints') return status::bruh->label;
|
if (isset($$_SERVER['HTTP_USER_AGENT']) && $$_SERVER['HTTP_USER_AGENT'] === 'nginx-ssl early hints') return status::bruh->label;
|
||||||
|
|
||||||
// Initializing the view template engine instance
|
|
||||||
$$this->view = new templater($$this->session);
|
|
||||||
|
|
||||||
// For the extends system
|
// For the extends system
|
||||||
parent::__construct(core: $$core);
|
parent::__construct(core: $$core);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,15 +29,15 @@ enum language
|
||||||
*
|
*
|
||||||
* @return string Translated label of the language
|
* @return string Translated label of the language
|
||||||
*/
|
*/
|
||||||
public function label(?language $$language = language::en): string
|
public function label(?language $language = language::en): string
|
||||||
{
|
{
|
||||||
// Exit (success)
|
// Exit (success)
|
||||||
return match ($$this) {
|
return match ($this) {
|
||||||
language::en => match ($$language) {
|
language::en => match ($language) {
|
||||||
language::en => 'English',
|
language::en => 'English',
|
||||||
language::ru => 'Английский'
|
language::ru => 'Английский'
|
||||||
},
|
},
|
||||||
language::ru => match ($$language) {
|
language::ru => match ($language) {
|
||||||
language::en => 'Russian',
|
language::en => 'Russian',
|
||||||
language::ru => 'Русский'
|
language::ru => 'Русский'
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ enum language
|
||||||
public function flag(): string
|
public function flag(): string
|
||||||
{
|
{
|
||||||
// Exit (success)
|
// Exit (success)
|
||||||
return match ($$this) {
|
return match ($this) {
|
||||||
language::en => '🇺🇸',
|
language::en => '🇺🇸',
|
||||||
language::ru => '🇷🇺'
|
language::ru => '🇷🇺'
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
|
|
||||||
body {
|
|
||||||
margin: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
Loading…
Reference in New Issue