diff --git a/composer.json b/composer.json index d8e8c27..f4d052a 100755 --- a/composer.json +++ b/composer.json @@ -11,9 +11,9 @@ "license": "WTFPL", "authors": [ { - "name": "zharko", - "email": "zharko@gmail.com", - "homepage": "https://zharko.page", + "name": "Arsen Mirzaev Tatyano-Muradovich", + "email": "arsen@mirzaev.sexy", + "homepage": "https://mirzaev.sexy", "role": "Programmer" } ], @@ -23,8 +23,8 @@ }, "require": { "php": "^8.4", - "mirzaev/minimal": "^3.6", - "mirzaev/baza": "^3.3", + "mirzaev/minimal": "^3.7", + "mirzaev/baza": "^3.3", "twig/twig": "^3.2", "twig/extra-bundle": "^3.7", "twig/intl-extra": "^3.10" diff --git a/author/project/system/controllers/core.php b/zharko/site/system/controllers/core.php similarity index 92% rename from author/project/system/controllers/core.php rename to zharko/site/system/controllers/core.php index 2a486ce..00647eb 100755 --- a/author/project/system/controllers/core.php +++ b/zharko/site/system/controllers/core.php @@ -7,6 +7,7 @@ namespace zharko\site\controllers; // Files of the project use zharko\site\views\templater, zharko\site\models\core as models, + zharko\site\models\account, zharko\site\models\enumerations\language; // Framework for PHP @@ -20,6 +21,7 @@ use mirzaev\minimal\core as minimal, * * @package zharko\site\controllers * + * @param account $account Account * @param language $language Language * @param response $response Response * @param array $errors Registry of errors @@ -32,6 +34,13 @@ use mirzaev\minimal\core as minimal, */ class core extends controller { + /** + * Account + * + * @var account $account Account + */ + protected account $account; + /** * Language * diff --git a/author/project/system/controllers/index.php b/zharko/site/system/controllers/index.php similarity index 93% rename from author/project/system/controllers/index.php rename to zharko/site/system/controllers/index.php index 0fa7491..5d2afa7 100755 --- a/author/project/system/controllers/index.php +++ b/zharko/site/system/controllers/index.php @@ -42,7 +42,7 @@ final class index extends core */ public function index(): null { - if (str_contains($this->request->headers['accept'], content::any->value)) { + if (str_contains($this->request->headers['accept'] ?? '', content::any->value)) { // Request for any response // Render page diff --git a/author/project/system/databases/.gitignore b/zharko/site/system/databases/.gitignore similarity index 100% rename from author/project/system/databases/.gitignore rename to zharko/site/system/databases/.gitignore diff --git a/author/project/system/localizations/english.php b/zharko/site/system/localizations/english.php similarity index 100% rename from author/project/system/localizations/english.php rename to zharko/site/system/localizations/english.php diff --git a/author/project/system/localizations/russian.php b/zharko/site/system/localizations/russian.php similarity index 100% rename from author/project/system/localizations/russian.php rename to zharko/site/system/localizations/russian.php diff --git a/zharko/site/system/models/account.php b/zharko/site/system/models/account.php new file mode 100755 index 0000000..6d3b877 --- /dev/null +++ b/zharko/site/system/models/account.php @@ -0,0 +1,154 @@ + + */ +class account extends core +{ + /** + * File + * + * @var string database Path to the database file + */ + protected string $file = DATABASES . DIRECTORY_SEPARATOR . 'account.baza'; + + /** + * Database + * + * @var database $database The database + */ + public protected(set) database $database; + + /** + * Constructor + * + * @return void + */ + public function __construct() + { + // Initializing the database + $this->database = new database() + ->encoding(encoding::utf8) + ->columns( + new column('identifier', type::integer_unsigned), + new column('domain', type::string, ['length' => 32]), + new column('name', type::string, ['length' => 128]), + new column('mail', type::string, ['length' => 128]), + new column('password', type::string, ['length' => 32]), + new column('session', type::string, ['length' => 256]), + new column('session_expired', type::string, ['length' => 32]), + new column('language', type::string, ['length' => 2]), + new column('authorized_system', type::char), + new column('authorized_settings', type::char), + new column('authorized_system_accounts', type::char), + new column('authorized_system_settings', type::char), + new column('updated', type::integer_unsigned), + new column('created', type::integer_unsigned) + ) + ->connect($this->file); + } + + /** + * Authorization + * + * Searches for the account record in the database + * + * @param telegram $telegram The telegram account + * + * @throws exception_runtime if update the account record in the database by the telegram account values + * @throws exception_runtime if failed to find the registered account + * @throws exception_runtime if failed to registrate the account + * + * @return record The account record from the database + */ + public function authorization(telegram $telegram): record + { + // Searching for the account in the database + $account = $this->database->read(filter: fn(record $record) => $record->identifier_telegram === $telegram->getId(), amount: 1)[0] ?? null; + + if ($account instanceof record) { + // Found the account record + + if ( + $account->name_first !== $telegram->getFirstName() || + $account->name_second !== $telegram->getLastName() || + $account->domain !== $telegram->getUsername() + ) { + // The telegram account was updated + + // Updating the account in the database + $updated = $this->database->read( + filter: fn(record $record) => $record->identifier_telegram === $telegram->getId(), + update: function (record &$record) use ($telegram){ + // Writing new values into the record + $record->name_first = $telegram->getFirstName(); + $record->name_second = $telegram->getLastName(); + $record->domain = $telegram->getUsername(); + $record->updated = svoboda::timestamp(); + }, + amount: 1 + )[0] ?? null; + + if ($updated instanceof record && $updated->values() !== $account->values()) { + // Updated the account in the database + + // Exit (success) + return $updated; + } else { + // Not updated the account in the database + + // Exit (fail) + throw new exception_runtime('Failed to update the account record in the database by the telegram account values'); + } + } + + // Exit (success) + return $account; + } else { + // Not found the account record + + if ($this->registrate($telegram)) { + // Registered the account + + // Searching for the registered account in the database + $account = $this->database->read(filter: fn(record $record) => $record->identifier_telegram === $telegram->getId(), amount: 1)[0] ?? null; + + if ($account instanceof record) { + // Found the registered account + + // Exit (success) + return $account; + } else { + // Not found the registered account + + // Exit (fail) + throw new exception_runtime('Failed to find the registered account'); + } + } else { + // Not registered the account + + // Exit (fail) + throw new exception_runtime('Failed to registrate the account'); + } + } + } +} + diff --git a/author/project/system/models/core.php b/zharko/site/system/models/core.php similarity index 95% rename from author/project/system/models/core.php rename to zharko/site/system/models/core.php index 7759307..b0d8ae6 100755 --- a/author/project/system/models/core.php +++ b/zharko/site/system/models/core.php @@ -20,7 +20,6 @@ use exception; * * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @author Arsen Mirzaev Tatyano-Muradovich - * @author zharko */ class core extends model { diff --git a/author/project/system/models/enumerations/language.php b/zharko/site/system/models/enumerations/language.php similarity index 100% rename from author/project/system/models/enumerations/language.php rename to zharko/site/system/models/enumerations/language.php diff --git a/author/project/system/models/traits/files.php b/zharko/site/system/models/traits/files.php similarity index 100% rename from author/project/system/models/traits/files.php rename to zharko/site/system/models/traits/files.php diff --git a/author/project/system/public/css/fonts/dejavu.css b/zharko/site/system/public/css/fonts/dejavu.css similarity index 100% rename from author/project/system/public/css/fonts/dejavu.css rename to zharko/site/system/public/css/fonts/dejavu.css diff --git a/author/project/system/public/css/fonts/fira.css b/zharko/site/system/public/css/fonts/fira.css similarity index 100% rename from author/project/system/public/css/fonts/fira.css rename to zharko/site/system/public/css/fonts/fira.css diff --git a/author/project/system/public/css/fonts/hack.css b/zharko/site/system/public/css/fonts/hack.css similarity index 100% rename from author/project/system/public/css/fonts/hack.css rename to zharko/site/system/public/css/fonts/hack.css diff --git a/author/project/system/public/fonts/commissioner.ttf b/zharko/site/system/public/fonts/commissioner.ttf similarity index 100% rename from author/project/system/public/fonts/commissioner.ttf rename to zharko/site/system/public/fonts/commissioner.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSans-Bold.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSans-Bold.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSans-Bold.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSans-Bold.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSans-BoldOblique.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSans-BoldOblique.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSans-BoldOblique.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSans-BoldOblique.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSans-ExtraLight.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSans-ExtraLight.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSans-ExtraLight.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSans-ExtraLight.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSans-Oblique.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSans-Oblique.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSans-Oblique.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSans-Oblique.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSans.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSans.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSans.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSans.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSansCondensed-Bold.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSansCondensed-Bold.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSansCondensed-Bold.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSansCondensed-Bold.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSansCondensed-BoldOblique.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSansCondensed-BoldOblique.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSansCondensed-BoldOblique.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSansCondensed-BoldOblique.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSansCondensed-Oblique.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSansCondensed-Oblique.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSansCondensed-Oblique.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSansCondensed-Oblique.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSansCondensed.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSansCondensed.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSansCondensed.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSansCondensed.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSansMono-Bold.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSansMono-Bold.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSansMono-Bold.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSansMono-Bold.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSansMono-BoldOblique.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSansMono-BoldOblique.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSansMono-BoldOblique.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSansMono-BoldOblique.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSansMono-Oblique.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSansMono-Oblique.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSansMono-Oblique.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSansMono-Oblique.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSansMono.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSansMono.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSansMono.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSansMono.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSerif-Bold.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSerif-Bold.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSerif-Bold.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSerif-Bold.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSerif-BoldItalic.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSerif-BoldItalic.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSerif-BoldItalic.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSerif-BoldItalic.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSerif-Italic.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSerif-Italic.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSerif-Italic.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSerif-Italic.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSerif.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSerif.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSerif.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSerif.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-Bold.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-Bold.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-Bold.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-Bold.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-BoldItalic.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-BoldItalic.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-BoldItalic.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-BoldItalic.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-Italic.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-Italic.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-Italic.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSerifCondensed-Italic.ttf diff --git a/author/project/system/public/fonts/dejavu/DejaVuLGCSerifCondensed.ttf b/zharko/site/system/public/fonts/dejavu/DejaVuLGCSerifCondensed.ttf similarity index 100% rename from author/project/system/public/fonts/dejavu/DejaVuLGCSerifCondensed.ttf rename to zharko/site/system/public/fonts/dejavu/DejaVuLGCSerifCondensed.ttf diff --git a/author/project/system/public/fonts/fira/FiraMono-Bold.woff b/zharko/site/system/public/fonts/fira/FiraMono-Bold.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraMono-Bold.woff rename to zharko/site/system/public/fonts/fira/FiraMono-Bold.woff diff --git a/author/project/system/public/fonts/fira/FiraMono-Bold.woff2 b/zharko/site/system/public/fonts/fira/FiraMono-Bold.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraMono-Bold.woff2 rename to zharko/site/system/public/fonts/fira/FiraMono-Bold.woff2 diff --git a/author/project/system/public/fonts/fira/FiraMono-Medium.woff b/zharko/site/system/public/fonts/fira/FiraMono-Medium.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraMono-Medium.woff rename to zharko/site/system/public/fonts/fira/FiraMono-Medium.woff diff --git a/author/project/system/public/fonts/fira/FiraMono-Medium.woff2 b/zharko/site/system/public/fonts/fira/FiraMono-Medium.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraMono-Medium.woff2 rename to zharko/site/system/public/fonts/fira/FiraMono-Medium.woff2 diff --git a/author/project/system/public/fonts/fira/FiraMono-Regular.woff b/zharko/site/system/public/fonts/fira/FiraMono-Regular.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraMono-Regular.woff rename to zharko/site/system/public/fonts/fira/FiraMono-Regular.woff diff --git a/author/project/system/public/fonts/fira/FiraMono-Regular.woff2 b/zharko/site/system/public/fonts/fira/FiraMono-Regular.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraMono-Regular.woff2 rename to zharko/site/system/public/fonts/fira/FiraMono-Regular.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Bold.woff b/zharko/site/system/public/fonts/fira/FiraSans-Bold.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Bold.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Bold.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Bold.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Bold.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Bold.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Bold.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-BoldItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-BoldItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-BoldItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-BoldItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-BoldItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-BoldItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-BoldItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-BoldItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Book.woff b/zharko/site/system/public/fonts/fira/FiraSans-Book.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Book.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Book.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Book.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Book.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Book.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Book.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-BookItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-BookItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-BookItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-BookItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-BookItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-BookItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-BookItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-BookItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Eight.woff b/zharko/site/system/public/fonts/fira/FiraSans-Eight.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Eight.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Eight.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Eight.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Eight.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Eight.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Eight.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-EightItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-EightItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-EightItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-EightItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-EightItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-EightItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-EightItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-EightItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-ExtraBold.woff b/zharko/site/system/public/fonts/fira/FiraSans-ExtraBold.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ExtraBold.woff rename to zharko/site/system/public/fonts/fira/FiraSans-ExtraBold.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-ExtraBold.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-ExtraBold.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ExtraBold.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-ExtraBold.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-ExtraBoldItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-ExtraBoldItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ExtraBoldItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-ExtraBoldItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-ExtraBoldItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-ExtraBoldItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ExtraBoldItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-ExtraBoldItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-ExtraLight.woff b/zharko/site/system/public/fonts/fira/FiraSans-ExtraLight.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ExtraLight.woff rename to zharko/site/system/public/fonts/fira/FiraSans-ExtraLight.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-ExtraLight.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-ExtraLight.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ExtraLight.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-ExtraLight.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-ExtraLightItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-ExtraLightItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ExtraLightItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-ExtraLightItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-ExtraLightItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-ExtraLightItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ExtraLightItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-ExtraLightItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Four.woff b/zharko/site/system/public/fonts/fira/FiraSans-Four.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Four.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Four.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Four.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Four.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Four.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Four.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-FourItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-FourItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-FourItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-FourItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-FourItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-FourItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-FourItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-FourItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Hair.woff b/zharko/site/system/public/fonts/fira/FiraSans-Hair.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Hair.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Hair.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Hair.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Hair.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Hair.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Hair.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-HairItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-HairItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-HairItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-HairItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-HairItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-HairItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-HairItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-HairItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Heavy.woff b/zharko/site/system/public/fonts/fira/FiraSans-Heavy.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Heavy.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Heavy.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Heavy.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Heavy.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Heavy.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Heavy.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-HeavyItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-HeavyItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-HeavyItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-HeavyItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-HeavyItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-HeavyItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-HeavyItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-HeavyItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Italic.woff b/zharko/site/system/public/fonts/fira/FiraSans-Italic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Italic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Italic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Italic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Italic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Italic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Italic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Light.woff b/zharko/site/system/public/fonts/fira/FiraSans-Light.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Light.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Light.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Light.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Light.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Light.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Light.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-LightItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-LightItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-LightItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-LightItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-LightItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-LightItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-LightItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-LightItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Medium.woff b/zharko/site/system/public/fonts/fira/FiraSans-Medium.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Medium.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Medium.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Medium.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Medium.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Medium.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Medium.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-MediumItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-MediumItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-MediumItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-MediumItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-MediumItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-MediumItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-MediumItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-MediumItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Regular.woff b/zharko/site/system/public/fonts/fira/FiraSans-Regular.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Regular.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Regular.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Regular.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Regular.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Regular.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Regular.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-SemiBold.woff b/zharko/site/system/public/fonts/fira/FiraSans-SemiBold.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-SemiBold.woff rename to zharko/site/system/public/fonts/fira/FiraSans-SemiBold.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-SemiBold.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-SemiBold.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-SemiBold.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-SemiBold.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-SemiBoldItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-SemiBoldItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-SemiBoldItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-SemiBoldItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-SemiBoldItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-SemiBoldItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-SemiBoldItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-SemiBoldItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Thin.woff b/zharko/site/system/public/fonts/fira/FiraSans-Thin.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Thin.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Thin.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Thin.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Thin.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Thin.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Thin.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-ThinItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-ThinItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ThinItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-ThinItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-ThinItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-ThinItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-ThinItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-ThinItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Two.woff b/zharko/site/system/public/fonts/fira/FiraSans-Two.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Two.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Two.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Two.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Two.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Two.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Two.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-TwoItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-TwoItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-TwoItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-TwoItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-TwoItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-TwoItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-TwoItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-TwoItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-Ultra.woff b/zharko/site/system/public/fonts/fira/FiraSans-Ultra.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Ultra.woff rename to zharko/site/system/public/fonts/fira/FiraSans-Ultra.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-Ultra.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-Ultra.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-Ultra.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-Ultra.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-UltraItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-UltraItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-UltraItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-UltraItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-UltraItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-UltraItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-UltraItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-UltraItalic.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-UltraLight.woff b/zharko/site/system/public/fonts/fira/FiraSans-UltraLight.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-UltraLight.woff rename to zharko/site/system/public/fonts/fira/FiraSans-UltraLight.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-UltraLight.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-UltraLight.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-UltraLight.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-UltraLight.woff2 diff --git a/author/project/system/public/fonts/fira/FiraSans-UltraLightItalic.woff b/zharko/site/system/public/fonts/fira/FiraSans-UltraLightItalic.woff similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-UltraLightItalic.woff rename to zharko/site/system/public/fonts/fira/FiraSans-UltraLightItalic.woff diff --git a/author/project/system/public/fonts/fira/FiraSans-UltraLightItalic.woff2 b/zharko/site/system/public/fonts/fira/FiraSans-UltraLightItalic.woff2 similarity index 100% rename from author/project/system/public/fonts/fira/FiraSans-UltraLightItalic.woff2 rename to zharko/site/system/public/fonts/fira/FiraSans-UltraLightItalic.woff2 diff --git a/author/project/system/public/fonts/hack/hack-bold-subset.woff b/zharko/site/system/public/fonts/hack/hack-bold-subset.woff similarity index 100% rename from author/project/system/public/fonts/hack/hack-bold-subset.woff rename to zharko/site/system/public/fonts/hack/hack-bold-subset.woff diff --git a/author/project/system/public/fonts/hack/hack-bold-subset.woff2 b/zharko/site/system/public/fonts/hack/hack-bold-subset.woff2 similarity index 100% rename from author/project/system/public/fonts/hack/hack-bold-subset.woff2 rename to zharko/site/system/public/fonts/hack/hack-bold-subset.woff2 diff --git a/author/project/system/public/fonts/hack/hack-bold.woff b/zharko/site/system/public/fonts/hack/hack-bold.woff similarity index 100% rename from author/project/system/public/fonts/hack/hack-bold.woff rename to zharko/site/system/public/fonts/hack/hack-bold.woff diff --git a/author/project/system/public/fonts/hack/hack-bold.woff2 b/zharko/site/system/public/fonts/hack/hack-bold.woff2 similarity index 100% rename from author/project/system/public/fonts/hack/hack-bold.woff2 rename to zharko/site/system/public/fonts/hack/hack-bold.woff2 diff --git a/author/project/system/public/fonts/hack/hack-bolditalic-subset.woff b/zharko/site/system/public/fonts/hack/hack-bolditalic-subset.woff similarity index 100% rename from author/project/system/public/fonts/hack/hack-bolditalic-subset.woff rename to zharko/site/system/public/fonts/hack/hack-bolditalic-subset.woff diff --git a/author/project/system/public/fonts/hack/hack-bolditalic-subset.woff2 b/zharko/site/system/public/fonts/hack/hack-bolditalic-subset.woff2 similarity index 100% rename from author/project/system/public/fonts/hack/hack-bolditalic-subset.woff2 rename to zharko/site/system/public/fonts/hack/hack-bolditalic-subset.woff2 diff --git a/author/project/system/public/fonts/hack/hack-bolditalic.woff b/zharko/site/system/public/fonts/hack/hack-bolditalic.woff similarity index 100% rename from author/project/system/public/fonts/hack/hack-bolditalic.woff rename to zharko/site/system/public/fonts/hack/hack-bolditalic.woff diff --git a/author/project/system/public/fonts/hack/hack-bolditalic.woff2 b/zharko/site/system/public/fonts/hack/hack-bolditalic.woff2 similarity index 100% rename from author/project/system/public/fonts/hack/hack-bolditalic.woff2 rename to zharko/site/system/public/fonts/hack/hack-bolditalic.woff2 diff --git a/author/project/system/public/fonts/hack/hack-italic-subset.woff b/zharko/site/system/public/fonts/hack/hack-italic-subset.woff similarity index 100% rename from author/project/system/public/fonts/hack/hack-italic-subset.woff rename to zharko/site/system/public/fonts/hack/hack-italic-subset.woff diff --git a/author/project/system/public/fonts/hack/hack-italic-subset.woff2 b/zharko/site/system/public/fonts/hack/hack-italic-subset.woff2 similarity index 100% rename from author/project/system/public/fonts/hack/hack-italic-subset.woff2 rename to zharko/site/system/public/fonts/hack/hack-italic-subset.woff2 diff --git a/author/project/system/public/fonts/hack/hack-italic.woff b/zharko/site/system/public/fonts/hack/hack-italic.woff similarity index 100% rename from author/project/system/public/fonts/hack/hack-italic.woff rename to zharko/site/system/public/fonts/hack/hack-italic.woff diff --git a/author/project/system/public/fonts/hack/hack-italic.woff2 b/zharko/site/system/public/fonts/hack/hack-italic.woff2 similarity index 100% rename from author/project/system/public/fonts/hack/hack-italic.woff2 rename to zharko/site/system/public/fonts/hack/hack-italic.woff2 diff --git a/author/project/system/public/fonts/hack/hack-regular-subset.woff b/zharko/site/system/public/fonts/hack/hack-regular-subset.woff similarity index 100% rename from author/project/system/public/fonts/hack/hack-regular-subset.woff rename to zharko/site/system/public/fonts/hack/hack-regular-subset.woff diff --git a/author/project/system/public/fonts/hack/hack-regular-subset.woff2 b/zharko/site/system/public/fonts/hack/hack-regular-subset.woff2 similarity index 100% rename from author/project/system/public/fonts/hack/hack-regular-subset.woff2 rename to zharko/site/system/public/fonts/hack/hack-regular-subset.woff2 diff --git a/author/project/system/public/fonts/hack/hack-regular.woff b/zharko/site/system/public/fonts/hack/hack-regular.woff similarity index 100% rename from author/project/system/public/fonts/hack/hack-regular.woff rename to zharko/site/system/public/fonts/hack/hack-regular.woff diff --git a/author/project/system/public/fonts/hack/hack-regular.woff2 b/zharko/site/system/public/fonts/hack/hack-regular.woff2 similarity index 100% rename from author/project/system/public/fonts/hack/hack-regular.woff2 rename to zharko/site/system/public/fonts/hack/hack-regular.woff2 diff --git a/author/project/system/public/index.php b/zharko/site/system/public/index.php similarity index 82% rename from author/project/system/public/index.php rename to zharko/site/system/public/index.php index 1e10fd6..9633c17 100755 --- a/author/project/system/public/index.php +++ b/zharko/site/system/public/index.php @@ -6,7 +6,9 @@ namespace zharko\site; // Framework for PHP use mirzaev\minimal\core, - mirzaev\minimal\route; + mirzaev\minimal\route, + mirzaev\minimal\controller, + mirzaev\minimal\middleware; // Enabling debugging /* ini_set('error_reporting', E_ALL); @@ -48,5 +50,13 @@ $core->router ->write('/', new route('index', 'index'), 'GET') ; -// Handling request +// Writing the global middleware +$core->router->middleware(new middleware(function(callable $next, controller $controller) { + // Authorizing the account + $controller->account = account::authorization() ?? null; + + $next(); +})); + +// Processing the request $core->start(); diff --git a/author/project/system/public/themes/default/css/aside.css b/zharko/site/system/public/themes/default/css/aside.css similarity index 100% rename from author/project/system/public/themes/default/css/aside.css rename to zharko/site/system/public/themes/default/css/aside.css diff --git a/author/project/system/public/themes/default/css/colorscheme.css b/zharko/site/system/public/themes/default/css/colorscheme.css similarity index 100% rename from author/project/system/public/themes/default/css/colorscheme.css rename to zharko/site/system/public/themes/default/css/colorscheme.css diff --git a/author/project/system/public/themes/default/css/fonts.css b/zharko/site/system/public/themes/default/css/fonts.css similarity index 100% rename from author/project/system/public/themes/default/css/fonts.css rename to zharko/site/system/public/themes/default/css/fonts.css diff --git a/author/project/system/public/themes/default/css/footer.css b/zharko/site/system/public/themes/default/css/footer.css similarity index 100% rename from author/project/system/public/themes/default/css/footer.css rename to zharko/site/system/public/themes/default/css/footer.css diff --git a/author/project/system/public/themes/default/css/header.css b/zharko/site/system/public/themes/default/css/header.css similarity index 100% rename from author/project/system/public/themes/default/css/header.css rename to zharko/site/system/public/themes/default/css/header.css diff --git a/author/project/system/public/themes/default/css/main.css b/zharko/site/system/public/themes/default/css/main.css similarity index 100% rename from author/project/system/public/themes/default/css/main.css rename to zharko/site/system/public/themes/default/css/main.css diff --git a/author/project/system/public/themes/default/css/system.css b/zharko/site/system/public/themes/default/css/system.css similarity index 100% rename from author/project/system/public/themes/default/css/system.css rename to zharko/site/system/public/themes/default/css/system.css diff --git a/author/project/system/settings/.gitignore b/zharko/site/system/settings/.gitignore similarity index 100% rename from author/project/system/settings/.gitignore rename to zharko/site/system/settings/.gitignore diff --git a/author/project/system/settings/system.php.sample b/zharko/site/system/settings/system.php.sample similarity index 100% rename from author/project/system/settings/system.php.sample rename to zharko/site/system/settings/system.php.sample diff --git a/author/project/system/views/templater.php b/zharko/site/system/views/templater.php similarity index 100% rename from author/project/system/views/templater.php rename to zharko/site/system/views/templater.php diff --git a/author/project/system/views/themes/default/aside.html b/zharko/site/system/views/themes/default/aside.html similarity index 100% rename from author/project/system/views/themes/default/aside.html rename to zharko/site/system/views/themes/default/aside.html diff --git a/author/project/system/views/themes/default/core.html b/zharko/site/system/views/themes/default/core.html similarity index 100% rename from author/project/system/views/themes/default/core.html rename to zharko/site/system/views/themes/default/core.html diff --git a/author/project/system/views/themes/default/footer.html b/zharko/site/system/views/themes/default/footer.html similarity index 100% rename from author/project/system/views/themes/default/footer.html rename to zharko/site/system/views/themes/default/footer.html diff --git a/author/project/system/views/themes/default/head.html b/zharko/site/system/views/themes/default/head.html similarity index 100% rename from author/project/system/views/themes/default/head.html rename to zharko/site/system/views/themes/default/head.html diff --git a/author/project/system/views/themes/default/header.html b/zharko/site/system/views/themes/default/header.html similarity index 100% rename from author/project/system/views/themes/default/header.html rename to zharko/site/system/views/themes/default/header.html diff --git a/author/project/system/views/themes/default/index.html b/zharko/site/system/views/themes/default/index.html similarity index 100% rename from author/project/system/views/themes/default/index.html rename to zharko/site/system/views/themes/default/index.html diff --git a/author/project/system/views/themes/default/js.html b/zharko/site/system/views/themes/default/js.html similarity index 100% rename from author/project/system/views/themes/default/js.html rename to zharko/site/system/views/themes/default/js.html