23 if (!is_object(
$GLOBALS[
'xoopsUser'])) {
37 if (is_object($pm) && ($pm->getVar(
'from_userid') !=
$GLOBALS[
'xoopsUser']->getVar(
'uid'))
38 && ($pm->getVar(
'to_userid') !=
$GLOBALS[
'xoopsUser']->getVar(
'uid'))
44 if (is_object($pm) && !empty(
$_POST[
'action']) ) {
45 if (!
$GLOBALS[
'xoopsSecurity']->check()) {
46 echo implode(
'<br />',
$GLOBALS[
'xoopsSecurity']->getErrors());
52 }
else if (!empty(
$_REQUEST[
'move_message'])
61 if ($pm->getVar(
'from_userid') !=
$GLOBALS[
'xoopsUser']->getVar(
'uid'))
break;
62 if (!empty(
$_REQUEST[
'delete_message'])) {
64 }
else if (!empty(
$_REQUEST[
'move_message'])) {
69 if ($pm->getVar(
'to_userid') ==
$GLOBALS[
'xoopsUser']->getVar(
'uid')) {
70 if (!empty(
$_REQUEST[
'delete_message'])) {
72 $res1 = ($res1) ?
$pm_handler->setTosave($pm, 0) :
false;
73 }
else if (!empty(
$_REQUEST[
'move_message'])) {
77 if ($pm->getVar(
'from_userid') ==
$GLOBALS[
'xoopsUser']->getVar(
'uid')) {
78 if (!empty(
$_REQUEST[
'delete_message'])) {
80 $res2 = ($res2) ?
$pm_handler->setFromsave($pm, 0) :
false;
81 }
else if (!empty(
$_REQUEST[
'move_message'])) {
85 $res = $res1 && $res2;
90 if ($pm->getVar(
'to_userid') !=
$GLOBALS[
'xoopsUser']->getVar(
'uid')) {
93 if (!empty(
$_REQUEST[
'delete_message'])) {
95 }
else if (!empty(
$_REQUEST[
'move_message'])) {
107 include
$GLOBALS[
'xoops']->path(
'header.php');
109 if (!is_object($pm)) {
116 $crit_to->add(
new Criteria(
'to_save', 1));
117 $crit_to->add(
new Criteria(
'to_userid',
$GLOBALS[
'xoopsUser']->getVar(
'uid')));
119 $crit_from->add(
new Criteria(
'from_save', 1));
120 $crit_from->add(
new Criteria(
'from_userid',
$GLOBALS[
'xoopsUser']->getVar(
'uid')));
136 include_once
$GLOBALS[
'xoops']->path(
'class/xoopsformloader.php');
139 if (is_object($pm) && !empty($pm)) {
140 if ($pm->getVar(
'from_userid') !=
$GLOBALS[
'xoopsUser']->getVar(
'uid')) {
142 $reply_button->setExtra(
"onclick='javascript:openWithSelfMain(\"" . XOOPS_URL .
"/modules/pm/pmlite.php?reply=1&msg_id={$msg_id}\", \"pmlite\", 565,500);'");
143 $pmform->addElement($reply_button);
153 if ($pm->getVar(
"from_userid") ==
$GLOBALS[
'xoopsUser']->getVar(
"uid")) {
159 $GLOBALS[
'xoopsTpl']->assign(
'poster',
false);
165 if ($pm->getVar(
"to_userid") ==
$GLOBALS[
'xoopsUser']->getVar(
"uid") && $pm->getVar(
'read_msg') == 0) {
169 $message = $pm->getValues();
172 $GLOBALS[
'xoopsTpl']->assign(
'message', $message);
178 include
$GLOBALS[
'xoops']->path(
'footer.php');