| 122 |
// Append indication of article update |
// Append indication of article update |
| 123 |
if ($id != 0) |
if ($id != 0) |
| 124 |
{ |
{ |
| 125 |
$content .= ("\n--\n※作者已于 " . date("Y-m-d H:i:s") . " 修改本文※\n"); |
$content .= ("\n--\n※ 作者已于 " . (new DateTimeImmutable("", $_SESSION["BBS_user_tz"]))->format("Y-m-d H:i:s (\U\T\C P)") . " 修改本文※\n"); |
| 126 |
} |
} |
| 127 |
|
|
| 128 |
// Calculate length of content |
// Calculate length of content |
| 637 |
exit(json_encode($result_set)); |
exit(json_encode($result_set)); |
| 638 |
} |
} |
| 639 |
|
|
| 640 |
//Notify the authors of the topic which is replyed. |
//Notify the authors of the topic / article which is replyed. |
| 641 |
$sql = "SELECT DISTINCT UID FROM bbs WHERE (AID = $tid OR TID = $tid) |
$sql = "SELECT DISTINCT UID FROM bbs WHERE (AID = $tid OR AID = $reply_id) |
| 642 |
AND visible AND reply_note AND UID <> " . $_SESSION["BBS_uid"]; |
AND visible AND reply_note AND UID <> " . $_SESSION["BBS_uid"]; |
| 643 |
|
|
| 644 |
$rs = mysqli_query($db_conn, $sql); |
$rs = mysqli_query($db_conn, $sql); |
| 654 |
while ($row = mysqli_fetch_array($rs)) |
while ($row = mysqli_fetch_array($rs)) |
| 655 |
{ |
{ |
| 656 |
//Send notification message |
//Send notification message |
| 657 |
$msg_content = "[hide]SYS_Reply_Article[/hide]有人回复了您所发表/回复的主题文章,快来". |
$msg_content = "有人回复了您所发表/回复的文章,快来". |
| 658 |
"[article $aid]看看[/article]《" . $r_title . "》吧!\n"; |
"[article $aid]看看[/article]《" . $r_title . "》吧!\n"; |
| 659 |
|
|
| 660 |
$sql = "INSERT INTO bbs_msg(fromUID, toUID, content, send_dt, send_ip) |
$sql = "INSERT INTO bbs_msg(fromUID, toUID, content, send_dt, send_ip) |