[*] новые фичи 2

This commit is contained in:
rsgrinko committed 2022-04-27 12:58:49 +03:00
1 parent 98f3b1416d
commit 436839ac9a
2 files changed
+27 -14

No files matched your search

+5 -13
View File
@@ -45,24 +45,16 @@
</div>
</nav>
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md">
<?php
Telegram::init('5232660453:AAGfMWu6EcRfBGSSURJsEEvGPmAqhCyzYHU', './');
$userId = User::getCurrentUserId();
try {
$user = new User($userId);
User::authorize((int)$userId);
echo 'Current user id: ' . $userId . '<br>';
} catch (CoreException $e) {
echo $e->showTrace();
}
echo '<br><br>';
if (User::isAuthorized()) {
echo str_replace('<table style="', '<table style="width:100%;', SystemFunctions::arrayToTable($user->getAllUserData(), 'Информация о пользователе'));
global $USER;
echo str_replace('<table style="', '<table style="width:100%;', SystemFunctions::arrayToTable($USER->getAllUserData(), 'Информация о пользователе'));
}
//echo str_replace('<table style="', '<table style="width:100%;', SystemFunctions::arrayToTable(Cache::getCacheInfo(), 'Информация о кэше'));