дикие правки
This commit is contained in:
1 parent
1412003d5e
commit
9eacb906f2
543 files changed
+50249
-19
No files matched your search
@@ -3,17 +3,20 @@
|
||||
use Core\CoreException;
|
||||
use Core\ExternalServices\Telegram;
|
||||
use Core\Models\User;
|
||||
use Core\Helpers\SystemFunctions;
|
||||
|
||||
|
||||
use Core\Helpers\{SystemFunctions, Cache};
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/core/bootstrap.php';
|
||||
|
||||
/*$userId = User::registration('test', '12345', 'support@it-stories.ru', 'user', 'Тестировщик', 'http://samag.ru/uploads/5222447.png');
|
||||
$user = new User($userId);*/
|
||||
|
||||
$userId = User::getUserId();
|
||||
$user = new User($userId);
|
||||
User::authorize((int)$userId);
|
||||
echo $userId;
|
||||
$userId = 2;//User::getUserId();
|
||||
try {
|
||||
$user = new User($userId);
|
||||
User::authorize((int)$userId);
|
||||
echo $userId;
|
||||
} catch (CoreException $e) {
|
||||
echo $e->showTrace();
|
||||
}
|
||||
|
||||
echo '<br><br>';
|
||||
|
||||
@@ -21,3 +24,7 @@
|
||||
if(User::isUser()) {
|
||||
echo SystemFunctions::arrayToTable($user->getAllUserData(), 'Информация о пользователе');
|
||||
}
|
||||
|
||||
|
||||
echo SystemFunctions::arrayToTable(Cache::getCacheInfo(), 'Информация о кэше');
|
||||
|
||||
Reference in new issue
Block a user