Ремонт почты
This commit is contained in:
parent
54dd762aa1
commit
2548e7c09c
3
post.php
3
post.php
@ -42,8 +42,7 @@ if ($_SESSION['receiverName']) {
|
|||||||
db::c()->query('INSERT INTO `telegraph` (`receiver`,`text`) VALUES (?i,"?s")', $receiverId, $telegraphText);
|
db::c()->query('INSERT INTO `telegraph` (`receiver`,`text`) VALUES (?i,"?s")', $receiverId, $telegraphText);
|
||||||
$statusMessage = 'Сообщение отправлено.';
|
$statusMessage = 'Сообщение отправлено.';
|
||||||
} else $statusMessage = 'Сообщение было оставлено пустым!';
|
} else $statusMessage = 'Сообщение было оставлено пустым!';
|
||||||
}
|
} else $statusMessage = 'Телеграф сломался!';
|
||||||
$statusMessage = 'Телеграф сломался!';
|
|
||||||
|
|
||||||
if ($submit == 'sendItem' && $sendItemId && $user['money'] >= 1) {
|
if ($submit == 'sendItem' && $sendItemId && $user['money'] >= 1) {
|
||||||
$res = db::c()->query('SELECT `id`,`name` FROM `inventory` WHERE `owner` = ?i AND `id` = ?i AND `dressed` = 0 AND `setsale` = 0 AND `present` = "?s" AND `artefact` = 0', $_SESSION['uid'], $sendItemId, null)->fetch_assoc();
|
$res = db::c()->query('SELECT `id`,`name` FROM `inventory` WHERE `owner` = ?i AND `id` = ?i AND `dressed` = 0 AND `setsale` = 0 AND `present` = "?s" AND `artefact` = 0', $_SESSION['uid'], $sendItemId, null)->fetch_assoc();
|
||||||
|
Loading…
Reference in New Issue
Block a user