Compare commits

...

3 Commits

3 changed files with 12 additions and 5 deletions

View File

@ -74,6 +74,9 @@ 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);
} }

View File

@ -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 => '🇷🇺'
}; };

View File

@ -1,5 +1,9 @@
@charset "UTF-8"; @charset "UTF-8";
body {
margin: unset;
}
main { main {
display: flex; display: flex;
flex-direction: column; flex-direction: column;