mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
新增候选提醒到管理组
1. 新增候选提醒到管理组消息 2. 修改发送私信的实现为message::add()
This commit is contained in:
@@ -226,7 +226,13 @@ if (user_can('delownsub'))
|
||||
$msg = $CURUSER['username'].nexus_trans("subtitle.msg_deleted_your_sub", [], $locale). $a['title'].($reason != "" ? nexus_trans("subtitle.msg_reason_is", [], $locale).$reason : "");
|
||||
$subject = nexus_trans("subtitle.msg_your_sub_deleted", [], $locale);
|
||||
$time = date("Y-m-d H:i:s");
|
||||
sql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $a[uppedby], '" . $time . "', " . sqlesc($msg) . ", ".sqlesc($subject).")") or sqlerr(__FILE__, __LINE__);
|
||||
\App\Models\Message::add([
|
||||
'sender' => 0,
|
||||
'receiver' => $a['uppedby'],
|
||||
'added' => now(),
|
||||
'msg' => $msg,
|
||||
'subject' => $subject,
|
||||
]);
|
||||
}
|
||||
$res = sql_query("SELECT lang_name from language WHERE sub_lang=1 AND id = " . sqlesc($a["lang_id"])) or sqlerr(__FILE__, __LINE__);
|
||||
$arr = mysql_fetch_assoc($res);
|
||||
|
||||
Reference in New Issue
Block a user