require DT_ROOT . '/module/member/message.class.php'; $do = new message(); $do->itemid = $itemid; $message = $do->get_one(); if (!$message) { wap_msg($L['msg_no_right']); } extract($message); if ($status == 4 || $status == 3) { if ($touser != $_username) { wap_msg($L['msg_no_right']); } if (!$isread) { $do->read(); if ($feedback) { $do->feedback(); } } } else { if ($status == 2 || $status == 1) { if ($fromuser != $_username) { wap_msg($L['msg_no_right']); } } } if ($TP == 'touch') { $head_link = 'index.php?moduleid=' . $moduleid . '&action=message'; $back_link = 'javascript:Dback(\'' . $head_link . '\');'; $pages = ''; } else { $content = strip_tags($content);
$do->itemid = $itemid; $message = $do->get_one(); if (!$message) { message($L['message_msg_deny']); } $fback = isset($feedback) ? 1 : 0; extract($message); if ($status == 4 || $status == 3) { if ($touser != $_username) { message($L['message_msg_deny']); } if (!$isread) { $do->read(); --$_message; if ($fback && $feedback) { $do->feedback($message); } } } else { if ($status == 2 || $status == 1) { if ($fromuser != $_username) { message($L['message_msg_deny']); } } } $addtime = timetodate($addtime, 5); $messages = array(); if ($_message) { $messages = $do->get_list("touser='******' AND status=3 AND isread=0"); } break;