Revert "Update core/SQL_DUMPS/users.sql, core/bootstrap.php, core/migrations/000002_users.sql"

This reverts commit f5aa2e57f8
This commit is contained in:
rsgrinko committed 2022-07-10 18:54:30 +00:00
1 parent f5aa2e57f8
commit be165bdf45
5 files changed
+141 -5

No files matched your search

+27 -1
View File
@@ -11,6 +11,32 @@
}
date_default_timezone_set('Europe/Moscow');
require_once __DIR__ . '/../vendor/autoload.php';
\Sentry\init(
[
'dsn' => 'https://8657ac1a900c44e5bc51714bb4c00dbb@o1303100.ingest.sentry.io/6541634',
'error_types' => E_ALL & ~E_NOTICE,
]
);
Sentry\configureScope(function (Sentry\State\Scope $sentryScope) {
$sentryScope->setExtra('user_id', $_SESSION['id'] ?? '');
$sentryScope->setExtra('user_login', $_SESSION['login'] ?? '');
$sentryScope->setExtra('user_token', $_SESSION['token'] ?? '');
});
/*
try {
$this->functionFailsForSure();
} catch (\Throwable $exception) {
\Sentry\captureException($exception);
}
// OR
\Sentry\captureLastError();
*/
ob_start(function ($buffer) {
try {
Template::set('CLEAR_CACHE_LINK_NAME', 'Сброс файлового кэша');
@@ -101,4 +127,4 @@
if (defined('USE_ROUTER') && USE_ROUTER === true) {
Router::execute();
die();
}
}