This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2025-02-13 08:40:08 +03:00
parent cb22d1b082
commit b91968606a
3 changed files with 19 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class core extends controller
$this->account = $this->session->account($this->errors['account']); $this->account = $this->session->account($this->errors['account']);
// Initializing of the settings // Initializing of the settings
$this->settings = settings::active(); $this->settings = settings::active(create: SETTINGS_PROJECT);
// Initializing of the language // Initializing of the language
$this->language = $this->account?->language ?? $this->session?->buffer['language'] ?? $this->settings?->language ?? language::en; $this->language = $this->account?->language ?? $this->session?->buffer['language'] ?? $this->settings?->language ?? language::en;

View File

@ -18,6 +18,7 @@ define('ROBOT_VERSION', '1.0.0');
define('VIEWS', realpath('..' . DIRECTORY_SEPARATOR . 'views')); define('VIEWS', realpath('..' . DIRECTORY_SEPARATOR . 'views'));
define('STORAGE', realpath('..' . DIRECTORY_SEPARATOR . 'storage')); define('STORAGE', realpath('..' . DIRECTORY_SEPARATOR . 'storage'));
define('SETTINGS', realpath('..' . DIRECTORY_SEPARATOR . 'settings')); define('SETTINGS', realpath('..' . DIRECTORY_SEPARATOR . 'settings'));
define('SETTINGS_PROJECT', require(SETTINGS . DIRECTORY_SEPARATOR . 'project.php'));
define('INDEX', __DIR__); define('INDEX', __DIR__);
define('ROOT', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR); define('ROOT', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);
define('THEME', 'default'); define('THEME', 'default');

View File

@ -0,0 +1,17 @@
<?php
return [
'project' => [
'name' => 'Project'
],
'language' => 'en',
'currency' => 'usd',
'company' => [
'identifier' => null,
'tax' => null,
'name' => null,
'offer' => false,
'sim' => null,
'mail' => null
]
];