test
This commit is contained in:
1 parent
30f1bcc327
commit
d672f3772b
1 file changed
+3
-1
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/core/bootstrap.php';
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/core/bootstrap.php';
|
||||||
|
|
||||||
|
echo '<a href="/admin/">Админка</a> | <a href="/">Обновить страницу</a> <br>';
|
||||||
|
|
||||||
Telegram::init('5232660453:AAGfMWu6EcRfBGSSURJsEEvGPmAqhCyzYHU', './');
|
Telegram::init('5232660453:AAGfMWu6EcRfBGSSURJsEEvGPmAqhCyzYHU', './');
|
||||||
//$userId = User::registration('test', '12345', 'support@it-stories.ru', 'user', 'Тестировщик', 'http://samag.ru/uploads/5222447.png');
|
//$userId = User::registration('test', '12345', 'support@it-stories.ru', 'user', 'Тестировщик', 'http://samag.ru/uploads/5222447.png');
|
||||||
|
|
||||||
@@ -14,7 +16,7 @@
|
|||||||
|
|
||||||
/*$user = new User($userId);*/
|
/*$user = new User($userId);*/
|
||||||
|
|
||||||
$userId = 2;//User::getUserId();
|
$userId = User::getCurrentUserId();
|
||||||
try {
|
try {
|
||||||
$user = new User($userId);
|
$user = new User($userId);
|
||||||
User::authorize((int)$userId);
|
User::authorize((int)$userId);
|
||||||
|
|||||||
Reference in new issue
Block a user