@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * @author Jan Pedersen |
| 24 | 24 | * @author Taiwen Jiang <[email protected]> |
| 25 | 25 | */ |
| 26 | -include __DIR__ . '/header.php'; |
|
| 26 | +include __DIR__.'/header.php'; |
|
| 27 | 27 | |
| 28 | 28 | $xoops = Xoops::getInstance(); |
| 29 | 29 | $xoops->header(); |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | * @author Taiwen Jiang <[email protected]> |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
| 22 | +require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
| 23 | 23 | |
| 24 | 24 | $xoops = Xoops::getInstance(); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | // paypal |
| 44 | 44 | $modversion['paypal'] = array(); |
| 45 | 45 | $modversion['paypal']['business'] = '[email protected]'; |
| 46 | -$modversion['paypal']['item_name'] = 'Donation : ' . _PM_MI_DESC; |
|
| 46 | +$modversion['paypal']['item_name'] = 'Donation : '._PM_MI_DESC; |
|
| 47 | 47 | $modversion['paypal']['amount'] = 0; |
| 48 | 48 | $modversion['paypal']['currency_code'] = 'USD'; |
| 49 | 49 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @author Taiwen Jiang <[email protected]> |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | -include_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 29 | +include_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 30 | 30 | |
| 31 | 31 | $xoops = Xoops::getInstance(); |
| 32 | 32 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | if (is_object($pm) && !$xoops->user->isAdmin() && ($pm->getVar('from_userid') != $xoops->user->getVar('uid')) |
| 50 | 50 | && ($pm->getVar('to_userid') != $xoops->user->getVar('uid')) |
| 51 | 51 | ) { |
| 52 | - $xoops->redirect(XOOPS_URL . '/modules/' . $xoops->module->getVar("dirname", "n") . '/index.php', 2, XoopsLocale::E_NO_ACCESS_PERMISSION); |
|
| 52 | + $xoops->redirect(XOOPS_URL.'/modules/'.$xoops->module->getVar("dirname", "n").'/index.php', 2, XoopsLocale::E_NO_ACCESS_PERMISSION); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | if (is_object($pm) && !empty($_POST['action'])) { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | $res_message = isset($res_message) ? $res_message : (($res) ? _PM_ACTION_DONE : _PM_ACTION_ERROR); |
| 115 | - $xoops->redirect('viewpmsg.php?op=' . htmlspecialchars($_REQUEST['op']), 2, $res_message); |
|
| 115 | + $xoops->redirect('viewpmsg.php?op='.htmlspecialchars($_REQUEST['op']), 2, $res_message); |
|
| 116 | 116 | } |
| 117 | 117 | $start = !empty($_GET['start']) ? (int)($_GET['start']) : 0; |
| 118 | 118 | $total_messages = !empty($_GET['total_messages']) ? (int)($_GET['total_messages']) : 0; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public static function eventCorePmliteStart($args) |
| 36 | 36 | { |
| 37 | - header("location: ./modules/pm/pmlite.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
| 37 | + header("location: ./modules/pm/pmlite.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
| 38 | 38 | exit(); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public static function eventCoreReadpmsgStart($args) |
| 49 | 49 | { |
| 50 | - header("location: ./modules/pm/readpmsg.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
| 50 | + header("location: ./modules/pm/readpmsg.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
| 51 | 51 | exit(); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public static function eventCoreViewpmsgStart($args) |
| 62 | 62 | { |
| 63 | - header("location: ./modules/pm/viewpmsg.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
| 63 | + header("location: ./modules/pm/viewpmsg.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
| 64 | 64 | exit(); |
| 65 | 65 | } |
| 66 | 66 | |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | public static function eventCoreServiceLocateUserMessage(Provider $provider) |
| 99 | 99 | { |
| 100 | - $path = dirname(__DIR__) . '/class/PMProvider.php'; |
|
| 100 | + $path = dirname(__DIR__).'/class/PMProvider.php'; |
|
| 101 | 101 | require $path; |
| 102 | 102 | $object = new PMProvider(); |
| 103 | 103 | $provider->register($object); |
@@ -6,61 +6,61 @@ discard block |
||
| 6 | 6 | $xoops = Xoops::getInstance(); |
| 7 | 7 | |
| 8 | 8 | //%%%%%% File Name readpmsg.php %%%%% |
| 9 | -define("_PM_DELETED","Your message(s) has been deleted"); |
|
| 10 | -define("_PM_PRIVATEMESSAGE","Private Messages"); |
|
| 11 | -define("_PM_INBOX","Inbox"); |
|
| 12 | -define("_PM_FROM","From"); |
|
| 13 | -define("_PM_YOUDONTHAVE","You don't have any private messages"); |
|
| 14 | -define("_PM_FOLDER_EMPTY","This folder is empty."); |
|
| 15 | -define("_PM_FROMC","From: "); |
|
| 16 | -define("_PM_SENTC","Sent: "); // The date of message sent |
|
| 9 | +define("_PM_DELETED", "Your message(s) has been deleted"); |
|
| 10 | +define("_PM_PRIVATEMESSAGE", "Private Messages"); |
|
| 11 | +define("_PM_INBOX", "Inbox"); |
|
| 12 | +define("_PM_FROM", "From"); |
|
| 13 | +define("_PM_YOUDONTHAVE", "You don't have any private messages"); |
|
| 14 | +define("_PM_FOLDER_EMPTY", "This folder is empty."); |
|
| 15 | +define("_PM_FROMC", "From: "); |
|
| 16 | +define("_PM_SENTC", "Sent: "); // The date of message sent |
|
| 17 | 17 | //define("_PM_PROFILE","Profile"); |
| 18 | 18 | |
| 19 | 19 | // %s is a username |
| 20 | -define("_PM_PREVIOUS","Previous Message"); |
|
| 21 | -define("_PM_NEXT","Next Message"); |
|
| 20 | +define("_PM_PREVIOUS", "Previous Message"); |
|
| 21 | +define("_PM_NEXT", "Next Message"); |
|
| 22 | 22 | |
| 23 | 23 | //%%%%%% File Name pmlite.php %%%%% |
| 24 | 24 | //define("_PM_SORRY","Sorry! You are not a registered user."); |
| 25 | 25 | //define("_PM_REGISTERNOW","Register Now!"); |
| 26 | -define("_PM_GOBACK","Go Back"); |
|
| 27 | -define("_PM_USERNOEXIST","The selected user doesn't exist in the database."); |
|
| 28 | -define("_PM_PLZTRYAGAIN","Please check the name and try again."); |
|
| 29 | -define("_PM_MESSAGEPOSTED","Your message has been posted"); |
|
| 30 | -define("_PM_CLICKHERE","You can click here to view your private messages"); |
|
| 31 | -define("_PM_ORCLOSEWINDOW","Or click here to close this window."); |
|
| 32 | -define("_PM_USERWROTE","%s wrote:"); |
|
| 33 | -define("_PM_TO","To: "); |
|
| 34 | -define("_PM_SUBJECTC","Subject: "); |
|
| 35 | -define("_PM_MESSAGEC","Message: "); |
|
| 36 | -define("_PM_CLEAR","Clear"); |
|
| 37 | -define("_PM_CANCELSEND","Cancel Send"); |
|
| 26 | +define("_PM_GOBACK", "Go Back"); |
|
| 27 | +define("_PM_USERNOEXIST", "The selected user doesn't exist in the database."); |
|
| 28 | +define("_PM_PLZTRYAGAIN", "Please check the name and try again."); |
|
| 29 | +define("_PM_MESSAGEPOSTED", "Your message has been posted"); |
|
| 30 | +define("_PM_CLICKHERE", "You can click here to view your private messages"); |
|
| 31 | +define("_PM_ORCLOSEWINDOW", "Or click here to close this window."); |
|
| 32 | +define("_PM_USERWROTE", "%s wrote:"); |
|
| 33 | +define("_PM_TO", "To: "); |
|
| 34 | +define("_PM_SUBJECTC", "Subject: "); |
|
| 35 | +define("_PM_MESSAGEC", "Message: "); |
|
| 36 | +define("_PM_CLEAR", "Clear"); |
|
| 37 | +define("_PM_CANCELSEND", "Cancel Send"); |
|
| 38 | 38 | //define("_PM_SUBMIT","Submit"); |
| 39 | 39 | define("_PM_SAVEINOUTBOX", "Save a copy in your outbox?"); |
| 40 | 40 | |
| 41 | 41 | //%%%%%% File Name viewpmsg.php %%%%% |
| 42 | -define("_PM_SUBJECT","Subject"); |
|
| 43 | -define("_PM_DATE","Date"); |
|
| 44 | -define("_PM_NOTREAD","Not Read"); |
|
| 45 | -define("_PM_SEND","Send new message"); |
|
| 46 | -define("_PM_DELETE","Delete"); |
|
| 47 | -define("_PM_TOSAVE","Move to Savebox"); |
|
| 48 | -define("_PM_UNSAVE","Move out of Savebox"); |
|
| 49 | -define("_PM_EMPTY","Empty"); |
|
| 42 | +define("_PM_SUBJECT", "Subject"); |
|
| 43 | +define("_PM_DATE", "Date"); |
|
| 44 | +define("_PM_NOTREAD", "Not Read"); |
|
| 45 | +define("_PM_SEND", "Send new message"); |
|
| 46 | +define("_PM_DELETE", "Delete"); |
|
| 47 | +define("_PM_TOSAVE", "Move to Savebox"); |
|
| 48 | +define("_PM_UNSAVE", "Move out of Savebox"); |
|
| 49 | +define("_PM_EMPTY", "Empty"); |
|
| 50 | 50 | define("_PM_REPLY", "Reply"); |
| 51 | 51 | //define("_PM_PLZREG","Please register first to send private messages!"); |
| 52 | -define("_PM_SAVED_PART","You are allowed %d in your Savebox and you saved %d messages for this time"); |
|
| 53 | -define("_PM_SAVED_ALL","Messages have been moved to Savebox"); |
|
| 54 | -define("_PM_UNSAVED","Messages have been removed from Savebox"); |
|
| 55 | -define("_PM_EMPTIED","The box has been emptied"); |
|
| 56 | -define("_PM_RUSUREEMPTY","Are you sure to empty the box?"); |
|
| 57 | -define("_PM_SURE_TO_DELETE","Are you sure to delete these message(s)?"); |
|
| 52 | +define("_PM_SAVED_PART", "You are allowed %d in your Savebox and you saved %d messages for this time"); |
|
| 53 | +define("_PM_SAVED_ALL", "Messages have been moved to Savebox"); |
|
| 54 | +define("_PM_UNSAVED", "Messages have been removed from Savebox"); |
|
| 55 | +define("_PM_EMPTIED", "The box has been emptied"); |
|
| 56 | +define("_PM_RUSUREEMPTY", "Are you sure to empty the box?"); |
|
| 57 | +define("_PM_SURE_TO_DELETE", "Are you sure to delete these message(s)?"); |
|
| 58 | 58 | |
| 59 | 59 | define("_PM_ONLINE", "Online"); |
| 60 | 60 | |
| 61 | -define("_PM_OUTBOX","Outbox"); |
|
| 62 | -define("_PM_SAVEBOX","Savebox"); |
|
| 63 | -define("_PM_SAVE","SAVE"); |
|
| 61 | +define("_PM_OUTBOX", "Outbox"); |
|
| 62 | +define("_PM_SAVEBOX", "Savebox"); |
|
| 63 | +define("_PM_SAVE", "SAVE"); |
|
| 64 | 64 | |
| 65 | 65 | //WANISYS.NET PM HACK1.5 |
| 66 | 66 | //define("_PM_SORT","SORT"); |
@@ -89,5 +89,5 @@ discard block |
||
| 89 | 89 | define("_PM_ACTION_ERROR", "Operation failed"); |
| 90 | 90 | |
| 91 | 91 | //XOOPS 2.5.2 |
| 92 | -define("_PM_READ","Already Read"); |
|
| 93 | -define("_PM_SUBJECT_ICONS","Subject Icons: "); |
|
| 92 | +define("_PM_READ", "Already Read"); |
|
| 93 | +define("_PM_SUBJECT_ICONS", "Subject Icons: "); |
|
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | 26 | if (!defined('XOOPS_MAINFILE_INCLUDED')) { |
| 27 | - include_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 27 | + include_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 28 | 28 | } else { |
| 29 | - chdir(\XoopsBaseConfig::get('root-path') . '/modules/pm/'); |
|
| 29 | + chdir(\XoopsBaseConfig::get('root-path').'/modules/pm/'); |
|
| 30 | 30 | } |
| 31 | 31 | $xoops = Xoops::getInstance(); |
| 32 | 32 | $xoops->loadLanguage('main', 'pm'); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $msg_id = isset($_GET['msg_id']) ? (int)($_GET['msg_id']) : 0; |
| 40 | 40 | |
| 41 | 41 | if (empty($_GET['refresh']) && isset($_POST['op']) && $_POST['op'] !== "submit") { |
| 42 | - $jump = "pmlite.php?refresh=" . time(); |
|
| 42 | + $jump = "pmlite.php?refresh=".time(); |
|
| 43 | 43 | if ($send == 1) { |
| 44 | 44 | $jump .= "&send={$send}"; |
| 45 | 45 | } else { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | - header('location: ' . $jump); |
|
| 55 | + header('location: '.$jump); |
|
| 56 | 56 | exit(); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | $tpl = new XoopsTpl(); |
| 70 | 70 | if ($count != 1) { |
| 71 | 71 | $error_message = _PM_USERNOEXIST; |
| 72 | - $error_message .= "<br />" . _PM_PLZTRYAGAIN; |
|
| 73 | - $error_message .= "<br />[ <a href='javascript:history.go(-1)'>" . _PM_GOBACK . "</a> ]"; |
|
| 72 | + $error_message .= "<br />"._PM_PLZTRYAGAIN; |
|
| 73 | + $error_message .= "<br />[ <a href='javascript:history.go(-1)'>"._PM_GOBACK."</a> ]"; |
|
| 74 | 74 | $tpl->assign('error_message', $error_message); |
| 75 | 75 | } else { |
| 76 | 76 | if ($xoops->security()->check()) { |
@@ -90,19 +90,19 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | if (!$pm_handler->insert($pm)) { |
| 92 | 92 | $error_message = $pm->getHtmlErrors(); |
| 93 | - $error_message .= "<br /><a href='javascript:history.go(-1)'>" . _PM_GOBACK . "</a>"; |
|
| 93 | + $error_message .= "<br /><a href='javascript:history.go(-1)'>"._PM_GOBACK."</a>"; |
|
| 94 | 94 | $tpl->assign('error_message', $error_message); |
| 95 | 95 | } else { |
| 96 | 96 | // @todo: Send notification email if user has selected this in the profile |
| 97 | 97 | $info_message = _PM_MESSAGEPOSTED; |
| 98 | 98 | $info_message .= "<br />"; |
| 99 | - $info_message .= "<br /><a href=\"javascript:window.opener.location='" . \XoopsBaseConfig::get('url') . "/viewpmsg.php';window.close();\">" . _PM_CLICKHERE . "</a>"; |
|
| 100 | - $info_message .= "<br /><br /><a href=\"javascript:window.close();\">" . _PM_ORCLOSEWINDOW . "</a>"; |
|
| 99 | + $info_message .= "<br /><a href=\"javascript:window.opener.location='".\XoopsBaseConfig::get('url')."/viewpmsg.php';window.close();\">"._PM_CLICKHERE."</a>"; |
|
| 100 | + $info_message .= "<br /><br /><a href=\"javascript:window.close();\">"._PM_ORCLOSEWINDOW."</a>"; |
|
| 101 | 101 | $tpl->assign('info_message', $info_message); |
| 102 | 102 | } |
| 103 | 103 | } else { |
| 104 | 104 | $error_message = implode('<br />', $xoops->security()->getErrors()); |
| 105 | - $error_message .= "<br /><a href=\"javascript:window.close();\">" . _PM_ORCLOSEWINDOW . "</a>"; |
|
| 105 | + $error_message .= "<br /><a href=\"javascript:window.close();\">"._PM_ORCLOSEWINDOW."</a>"; |
|
| 106 | 106 | $tpl->assign('error_message', $error_message); |
| 107 | 107 | } |
| 108 | 108 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | $pm_uname = XoopsUser::getUnameFromId($pm->getVar("from_userid")); |
| 120 | 120 | $message = "[quote]\n"; |
| 121 | 121 | $message .= sprintf(_PM_USERWROTE, $pm_uname); |
| 122 | - $message .= "\n" . $pm->getVar("msg_text", "E") . "\n[/quote]"; |
|
| 122 | + $message .= "\n".$pm->getVar("msg_text", "E")."\n[/quote]"; |
|
| 123 | 123 | } else { |
| 124 | 124 | unset($pm); |
| 125 | 125 | $reply = $send2 = 0; |
@@ -131,8 +131,8 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | if ($reply == 1) { |
| 133 | 133 | $subject = $pm->getVar('subject', 'E'); |
| 134 | - if (!preg_match("/^" . XoopsLocale::C_RE . "/i", $subject)) { |
|
| 135 | - $subject = XoopsLocale::C_RE . ' ' . $subject; |
|
| 134 | + if (!preg_match("/^".XoopsLocale::C_RE."/i", $subject)) { |
|
| 135 | + $subject = XoopsLocale::C_RE.' '.$subject; |
|
| 136 | 136 | } |
| 137 | 137 | $form->addElement(new Xoops\Form\Label(_PM_TO, $pm_uname)); |
| 138 | 138 | $form->addElement(new Xoops\Form\Hidden('to_userid', $pm->getVar("from_userid"))); |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | } else { |
| 52 | 52 | if (empty($_REQUEST['ok'])) { |
| 53 | 53 | echo $xoops->confirm(array( |
| 54 | - 'ok' => 1, 'delete_messages' => 1, 'op' => $op, |
|
| 55 | - 'msg_ids' => json_encode(array_map("intval", $_POST['msg_id'])) |
|
| 54 | + 'ok' => 1, 'delete_messages' => 1, 'op' => $op, |
|
| 55 | + 'msg_ids' => json_encode(array_map("intval", $_POST['msg_id'])) |
|
| 56 | 56 | ), $_SERVER['REQUEST_URI'], XoopsLocale::Q_ARE_YOU_SURE_YOU_WANT_TO_DELETE_THIS_MESSAGES); |
| 57 | 57 | $xoops->footer(); |
| 58 | 58 | } else { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | } else { |
| 130 | 130 | if (empty($_REQUEST['ok'])) { |
| 131 | 131 | echo $xoops->confirm(array( |
| 132 | - 'ok' => 1, 'empty_messages' => 1, 'op' => $op |
|
| 132 | + 'ok' => 1, 'empty_messages' => 1, 'op' => $op |
|
| 133 | 133 | ), $_SERVER['REQUEST_URI'], _PM_RUSUREEMPTY); |
| 134 | 134 | $xoops->footer(); |
| 135 | 135 | } else { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @author Taiwen Jiang <[email protected]> |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | -include_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 29 | +include_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 30 | 30 | |
| 31 | 31 | $xoops = Xoops::getInstance(); |
| 32 | 32 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $clean_msg_id = array_map("intval", $clean_msg_id); |
| 62 | 62 | } |
| 63 | 63 | $size = count($clean_msg_id); |
| 64 | - $msg =& $clean_msg_id; |
|
| 64 | + $msg = & $clean_msg_id; |
|
| 65 | 65 | for ($i = 0; $i < $size; ++$i) { |
| 66 | 66 | $pm = $pm_handler->get($msg[$i]); |
| 67 | 67 | if ($pm->getVar('to_userid') == $xoops->user->getVar('uid')) { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | $xoops->tpl()->assign('op', $op); |
| 219 | 219 | |
| 220 | 220 | if ($total_messages > $xoops->getModuleConfig('perpage')) { |
| 221 | - $nav = new XoopsPageNav($total_messages, $xoops->getModuleConfig('perpage'), $start, "start", 'op=' . $op); |
|
| 221 | + $nav = new XoopsPageNav($total_messages, $xoops->getModuleConfig('perpage'), $start, "start", 'op='.$op); |
|
| 222 | 222 | $xoops->tpl()->assign('pagenav', $nav->renderNav(4)); |
| 223 | 223 | } |
| 224 | 224 | |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | } |
| 234 | 234 | } |
| 235 | 235 | $member_handler = $xoops->getHandlerMember(); |
| 236 | - $senders = $member_handler->getUserList(new Criteria('uid', "(" . implode(", ", array_unique($uids)) . ")", "IN")); |
|
| 236 | + $senders = $member_handler->getUserList(new Criteria('uid', "(".implode(", ", array_unique($uids)).")", "IN")); |
|
| 237 | 237 | foreach (array_keys($pm_arr) as $i) { |
| 238 | 238 | $message = $pm_arr[$i]; |
| 239 | 239 | //$message['msg_time'] = XoopsLocale::formatTimestamp($message["msg_time"], 'e'); |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $send_button = new Xoops\Form\Button('', 'send', XoopsLocale::A_SEND); |
| 253 | 253 | $send_button->set( |
| 254 | 254 | 'onclick', |
| 255 | - 'openWithSelfMain("' . $xoops->url('modules/pm/pmlite.php?send=1') . '" , "pmlite", 740,640);' |
|
| 255 | + 'openWithSelfMain("'.$xoops->url('modules/pm/pmlite.php?send=1').'" , "pmlite", 740,640);' |
|
| 256 | 256 | ); |
| 257 | 257 | $delete_button = new Xoops\Form\Button('', 'delete_messages', XoopsLocale::A_DELETE, 'submit'); |
| 258 | 258 | $move_button = new Xoops\Form\Button('', 'move_messages', ($op === 'save') ? _PM_UNSAVE |
@@ -180,8 +180,8 @@ |
||
| 180 | 180 | $msg .= _PM_EMAIL_MESSAGE . ":\n"; |
| 181 | 181 | $msg .= "\n" . $pm->getVar("subject") . "\n"; |
| 182 | 182 | $msg .= "\n" . strip_tags(str_replace(array( |
| 183 | - "<p>", "</p>", "<br />", "<br />" |
|
| 184 | - ), "\n", $pm->getVar("msg_text"))) . "\n\n"; |
|
| 183 | + "<p>", "</p>", "<br />", "<br />" |
|
| 184 | + ), "\n", $pm->getVar("msg_text"))) . "\n\n"; |
|
| 185 | 185 | $msg .= "--------------\n"; |
| 186 | 186 | $msg .= $xoops->getConfig('sitename') . ": " . \XoopsBaseConfig::get('url') . "\n"; |
| 187 | 187 | |
@@ -171,19 +171,19 @@ |
||
| 171 | 171 | $msg .= "\n"; |
| 172 | 172 | $from = new XoopsUser($pm->getVar("from_userid")); |
| 173 | 173 | $to = new XoopsUser($pm->getVar("to_userid")); |
| 174 | - $msg .= sprintf(_PM_EMAIL_FROM, $from->getVar("uname") . " (" . \XoopsBaseConfig::get('url') |
|
| 175 | - . "/userinfo.php?uid=" . $pm->getVar("from_userid") . ")"); |
|
| 174 | + $msg .= sprintf(_PM_EMAIL_FROM, $from->getVar("uname")." (".\XoopsBaseConfig::get('url') |
|
| 175 | + . "/userinfo.php?uid=".$pm->getVar("from_userid").")"); |
|
| 176 | 176 | $msg .= "\n"; |
| 177 | - $msg .= sprintf(_PM_EMAIL_TO, $to->getVar("uname") . " (" . \XoopsBaseConfig::get('url') |
|
| 178 | - . "/userinfo.php?uid=" . $pm->getVar("to_userid") . ")"); |
|
| 177 | + $msg .= sprintf(_PM_EMAIL_TO, $to->getVar("uname")." (".\XoopsBaseConfig::get('url') |
|
| 178 | + . "/userinfo.php?uid=".$pm->getVar("to_userid").")"); |
|
| 179 | 179 | $msg .= "\n"; |
| 180 | - $msg .= _PM_EMAIL_MESSAGE . ":\n"; |
|
| 181 | - $msg .= "\n" . $pm->getVar("subject") . "\n"; |
|
| 182 | - $msg .= "\n" . strip_tags(str_replace(array( |
|
| 180 | + $msg .= _PM_EMAIL_MESSAGE.":\n"; |
|
| 181 | + $msg .= "\n".$pm->getVar("subject")."\n"; |
|
| 182 | + $msg .= "\n".strip_tags(str_replace(array( |
|
| 183 | 183 | "<p>", "</p>", "<br />", "<br />" |
| 184 | - ), "\n", $pm->getVar("msg_text"))) . "\n\n"; |
|
| 184 | + ), "\n", $pm->getVar("msg_text")))."\n\n"; |
|
| 185 | 185 | $msg .= "--------------\n"; |
| 186 | - $msg .= $xoops->getConfig('sitename') . ": " . \XoopsBaseConfig::get('url') . "\n"; |
|
| 186 | + $msg .= $xoops->getConfig('sitename').": ".\XoopsBaseConfig::get('url')."\n"; |
|
| 187 | 187 | |
| 188 | 188 | $xoopsMailer = $xoops->getMailer(); |
| 189 | 189 | $xoopsMailer->useMail(); |