This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2024-01-04 16:07:05 +07:00
parent b6a4e3d561
commit d9081bf8f5
7 changed files with 19 additions and 3307 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
!.gitignore !.gitignore
composer.phar composer.phar
composer.lock
vendor vendor

View File

@ -22,9 +22,9 @@
"issues": "https://git.mirzaev.sexy/mirzaev/site-repression/issues" "issues": "https://git.mirzaev.sexy/mirzaev/site-repression/issues"
}, },
"require": { "require": {
"php": "~8.2", "php": "~8.3",
"ext-sodium": "~8.2", "ext-sodium": "~8.3",
"mirzaev/minimal": "^2.0.x-dev", "mirzaev/minimal": "^2.2.0",
"mirzaev/accounts": "~1.2.x-dev", "mirzaev/accounts": "~1.2.x-dev",
"mirzaev/arangodb": "^1.0.0", "mirzaev/arangodb": "^1.0.0",
"mirzaev/vk": "^4.0", "mirzaev/vk": "^4.0",

3302
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -18,12 +18,11 @@ define('INDEX', __DIR__);
// Автозагрузка // Автозагрузка
require __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; require __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
// Инициализация маршрутазитора // Инициализация маршрутизатора
$router = new router; $router = new router;
// Запись маршрутов // Запись маршрутов
$router->write('/', 'index', 'index'); $router->write('/', 'index', 'index');
$router->write('/system/hotline', 'hotline', 'index');
// Инициализация ядра // Инициализация ядра
$core = new core(namespace: __NAMESPACE__, router: $router); $core = new core(namespace: __NAMESPACE__, router: $router);

View File

@ -0,0 +1,3 @@
*
!.gitignore
!*.sample

View File

@ -0,0 +1,8 @@
<?php
return [
'endpoint' => 'unix:///var/run/arangodb3/arango.sock',
'database' => 'repression',
'name' => 'repression',
'password' => ''
];

View File

@ -0,0 +1,3 @@
<?php
return '';