26 $xoops->preload()->triggerEvent(
'core.readpmsg.start');
32 $op = Request::getCmd(
'op',
'list');
33 $id = Request::getInt(
'msg_id', 0);
34 $start = Request::getInt(
'start', 0);
39 $xoops->header(
'module:system/system_readpmsg.tpl');
56 $xoops->tpl()->assign(
'uid',
$xoops->user->getVar(
"uid"));
60 if (
$pm_arr[0]->getVar(
'read_msg') == 0) {
64 if (!is_object($poster)) {
65 $xoops->tpl()->assign(
'poster',
false);
68 $xoops->tpl()->assign(
'poster', $poster);
69 $avatar =
$xoops->service(
'avatar')->getAvatarUrl($poster)->getValue();
72 $xoops->tpl()->assign(
'msg_id',
$pm_arr[0]->getVar(
"msg_id"));
73 $xoops->tpl()->assign(
'subject',
$pm_arr[0]->getVar(
"subject"));
75 $xoops->tpl()->assign(
'msg_image',
$pm_arr[0]->getVar(
"msg_image",
"E"));
76 $xoops->tpl()->assign(
'msg_text',
$pm_arr[0]->getVar(
"msg_text"));
80 $xoops->tpl()->assign(
'read',
true);
81 $xoops->tpl()->assign(
'token',
$xoops->security()->getTokenHTML());
87 if (isset($_POST[
"ok"]) && $_POST[
"ok"] == 1) {
88 if (!
$xoops->security()->check()) {
89 $xoops->redirect(
"viewpmsg.php", 3, implode(
",",
$xoops->security()->getErrors()));
94 echo
$xoops->alert(
'error', $obj->getHtmlErrors());
97 $xoops->tpl()->assign(
'subject', $obj->getVar(
"subject"));
static formatTimestamp($time, $format= 'l', $timeoffset=null)
const E_YOU_DO_NOT_HAVE_ANY_PRIVATE_MESSAGE
const S_YOUR_MESSAGES_DELETED
defined('DS') or define('DS' DIRECTORY_SEPARATOR
const Q_ARE_YOU_SURE_YOU_WANT_TO_DELETE_THIS_MESSAGES
const E_YOU_ARE_NOT_REGISTERED
if(!$xoops->isUser()) $op