Логирование методов пользователя
This commit is contained in:
1 parent
d77a8fc3c4
commit
893e1056fc
8 files changed
+274
-23
No files matched your search
@@ -3,11 +3,16 @@
|
||||
use Core\CoreException;
|
||||
use Core\ExternalServices\Telegram;
|
||||
use Core\Models\User;
|
||||
use Core\Helpers\{SystemFunctions, Cache, Log};
|
||||
use Core\Helpers\{SystemFunctions, Cache, Log, Mail, Zip};
|
||||
|
||||
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);*/
|
||||
Telegram::init('5232660453:AAGfMWu6EcRfBGSSURJsEEvGPmAqhCyzYHU', './');
|
||||
//$userId = User::registration('test', '12345', 'support@it-stories.ru', 'user', 'Тестировщик', 'http://samag.ru/uploads/5222447.png');
|
||||
|
||||
|
||||
|
||||
/*$user = new User($userId);*/
|
||||
|
||||
$userId = 2;//User::getUserId();
|
||||
try {
|
||||
@@ -17,11 +22,15 @@
|
||||
} catch (CoreException $e) {
|
||||
echo $e->showTrace();
|
||||
}
|
||||
die('stoped');
|
||||
|
||||
echo '<br><br>';
|
||||
|
||||
Zip::createArchive(LOG_PATH . '/', ROOT_PATH . '/core/cache/temp.zip');
|
||||
Telegram::sendDocument(412790359, ROOT_PATH . '/core/cache/temp.zip');
|
||||
unlink(ROOT_PATH . '/core/cache/temp.zip');
|
||||
|
||||
if(User::isUser()) {
|
||||
if (User::isAuthorized()) {
|
||||
echo SystemFunctions::arrayToTable($user->getAllUserData(), 'Информация о пользователе');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user