diff --git a/index.php b/index.php index 556a2fc..229ba15 100644 --- a/index.php +++ b/index.php @@ -7,6 +7,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/core/bootstrap.php'; + echo 'Админка | Обновить страницу
'; + Telegram::init('5232660453:AAGfMWu6EcRfBGSSURJsEEvGPmAqhCyzYHU', './'); //$userId = User::registration('test', '12345', 'support@it-stories.ru', 'user', 'Тестировщик', 'http://samag.ru/uploads/5222447.png'); @@ -14,7 +16,7 @@ /*$user = new User($userId);*/ - $userId = 2;//User::getUserId(); + $userId = User::getCurrentUserId(); try { $user = new User($userId); User::authorize((int)$userId);