27 include
$GLOBALS[
'xoops']->path(
'class/xoopsformloader.php');
39 $jump =
"pmlite.php?refresh=" . time() .
"";
41 $jump .=
"&send=" .
$send .
"";
45 $jump .=
"&reply=" .
$reply .
"&msg_id=" .
$msg_id .
"";
48 echo
"<html><head><meta http-equiv='Refresh' content='0; url=" . $jump .
"' /></head><body></body></html>";
56 if (!
$GLOBALS[
'xoopsSecurity']->check()) {
57 $security_error =
true;
59 $res =
$xoopsDB->query(
"SELECT COUNT(*) FROM " .
$xoopsDB->prefix(
"users") .
" WHERE uid=" . intval(
$_POST[
'to_userid']) .
"");
64 if (isset($security_error) && $security_error ==
true) {
65 echo implode(
'<br />',
$GLOBALS[
'xoopsSecurity']->getErrors());
67 echo
"[ <a href='javascript:history.go(-1)' title=''>" .
_PM_GOBACK .
"</a> ]</div>";
72 if (isset(
$_POST[
'icon'])) {
73 $pm->setVar(
"msg_image",
$_POST[
'icon']);
76 $pm->setVar(
"subject",
$_POST[
'subject']);
77 $pm->setVar(
"msg_text",
$_POST[
'message']);
78 $pm->setVar(
"to_userid",
$_POST[
'to_userid']);
79 $pm->setVar(
"from_userid",
$xoopsUser->getVar(
"uid"));
81 echo $pm->getHtmlErrors();
82 echo
"<br /><a href='javascript:history.go(-1)' title=''>" .
_PM_GOBACK .
"</a>";
84 echo
"<br /><br /><div style='text-align:center;'><h4>" .
_PM_MESSAGEPOSTED .
"</h4><br /><a href=\"javascript:window.opener.location='" . XOOPS_URL .
"/viewpmsg.php';window.close();\" title=\"\">" .
_PM_CLICKHERE .
"</a><br /><br /><a href=\"javascript:window.close();\" title=\"\">" .
_PM_ORCLOSEWINDOW .
"</a></div>";
88 include_once
$GLOBALS[
'xoops']->path(
'include/xoopscodes.php');
92 if ($pm->getVar(
"to_userid") ==
$xoopsUser->getVar(
'uid')) {
94 $message =
"[quote]\n";
96 $message .=
"\n" . $pm->getVar(
"msg_text",
"E") .
"\n[/quote]";
102 echo
"<form action='pmlite.php' method='post' name='coolsus'>\n";
103 echo
"<table style=' text-align:left;' class='outer'><tr><td class='head txtright' style='width:25%'>" .
_PM_TO .
"</td>";
105 echo
"<td class='even'><input type='hidden' name='to_userid' value='" . $pm->getVar(
"from_userid") .
"' />" . $pm_uname .
"</td>";
108 echo
"<td class='even'><input type='hidden' name='to_userid' value='" .
$to_userid .
"' />" . $to_username .
"</td>";
110 require_once
$GLOBALS[
'xoops']->path(
'class/xoopsform/formelement.php');
111 require_once
$GLOBALS[
'xoops']->path(
'class/xoopsform/formselect.php');
112 require_once
$GLOBALS[
'xoops']->path(
'class/xoopsform/formlabel.php');
113 require_once
$GLOBALS[
'xoops']->path(
'class/xoopsform/formselectuser.php');
115 echo
"<td class='even'>" . $user_sel->render();
119 echo
"<tr><td class='head txtright' style='width:25%;'>" .
_PM_SUBJECTC .
"</td>";
121 $subject = $pm->getVar(
'subject',
'E');
123 if (!preg_match(
"/^" .
_RE .
"/i", $subject)) {
124 $subject =
_RE .
' ' . $subject;
126 echo
"<td class='even'><input type='text' name='subject' value='" . $subject .
"' size='30' maxlength='100' /></td>";
128 echo
"<td class='even'><input type='text' name='subject' size='30' maxlength='100' /></td>";
134 echo
"<td class='head txtright' style='width:25%;'>" .
_MESSAGEICON.
"</td>";
136 $icons_radio->addOption($iconfile,
'<img src="' . XOOPS_URL .
'/images/subject/' . $iconfile .
'" alt="" />');
143 echo
"<tr style='vertical-align:top;'><td style='width:25%;' class='head txtright'>" .
_PM_MESSAGEC .
"</td>";
144 echo
"<td class='even'>";
150 echo
"<tr><td class='head'> </td><td class='even'>
151 <input type='hidden' name='op' value='submit' />" .
$GLOBALS[
'xoopsSecurity']->getTokenHTML() .
"
152 <input type='submit' class='formButton' name='submit' value='" .
_PM_SUBMIT .
"' />
153 <input type='reset' class='formButton' value='" .
_PM_CLEAR .
"' />
154 <input type='button' class='formButton' name='cancel' value='" .
_PM_CANCELSEND .
"' onclick='javascript:window.close();' />
155 </td></tr></table>\n";