diff --git a/admin/phpcmd.php b/admin/phpcmd.php
index d3df297..9cb2e10 100644
--- a/admin/phpcmd.php
+++ b/admin/phpcmd.php
@@ -31,6 +31,7 @@
+
diff --git a/core/lib/Core/Models/MQ.class.php b/core/lib/Core/Models/MQ.class.php
index 35e9022..3a7d2ec 100644
--- a/core/lib/Core/Models/MQ.class.php
+++ b/core/lib/Core/Models/MQ.class.php
@@ -81,7 +81,7 @@
if ((int)$result === 27) {
throw new CoreException('Сервер обмена временно недоступен');
}
- return 'Generated num: ' . $result;
+ return 'Пользователь с ID ' . $params['0'] . ' обновлен';
}
/**
@@ -93,7 +93,7 @@
*/
private function convertToJson($arData): ?string
{
- if(empty($arData)) {
+ if (empty($arData)) {
$arData = [];
}
return json_encode($arData, JSON_UNESCAPED_UNICODE);
@@ -344,7 +344,6 @@
null,
false
);
-
} catch (\Throwable|CoreException $t) {
$endTime = round(microtime(true) - $startTime, 4);
$this->DB->update(
@@ -399,7 +398,7 @@
'attempts' => $arTask['attempts'],
'date_created' => $arTask['date_created'],
'date_updated' => $arTask['date_updated'],
- 'class' => $arTask['class'],
+ 'class' => addslashes($arTask['class']),
'method' => $arTask['method'],
'params' => $arTask['params'],
'status' => $arTask['status'],
diff --git a/core/lib/Core/Models/User.class.php b/core/lib/Core/Models/User.class.php
index c145c41..7af9e6c 100644
--- a/core/lib/Core/Models/User.class.php
+++ b/core/lib/Core/Models/User.class.php
@@ -177,7 +177,6 @@
$res = (DB::getInstance())->query('SELECT * FROM `' . self::USERS_TABLE . '` ORDER BY `id` ' . $sort . ' LIMIT ' . $limit);
Cache::set($cacheId, $res);
}
- Log::logToFile(__METHOD__, 'User.log', func_get_args());
return $res;
}
@@ -417,7 +416,6 @@
setcookie('userLogin', $result['login'], time() + 3600 * 24);
setcookie('token', md5(self::$cryptoSalt . $result['id'] . $result['login'] . $result['password']), time() + 3600 * 24);
}
- Log::logToFile(__METHOD__, 'User.log', func_get_args());
return true;
} else {
return false;
@@ -435,8 +433,6 @@
*/
public static function securityAuthorize(string $login, string $password, bool $remember = false): bool
{
- Log::logToFile(__METHOD__, 'User.log', func_get_args());
-
/** @var $DB DB */
$DB = DB::getInstance();
$result = $DB->getItem(self::USERS_TABLE, ['login' => $login, 'password' => self::passwordEncryption($password)], true);
@@ -527,7 +523,6 @@
*/
public static function logout(): void
{
- Log::logToFile(__METHOD__, 'User.log', func_get_args());
$_SESSION['id'] = '';
$_SESSION['authorize'] = '';
$_SESSION['login'] = '';