Changeset 15211 for trunk/xmlrpc/BxDolXMLRPCMessages.php
- Timestamp:
- 06/07/11 23:41:51 (12 months ago)
- File:
-
- 1 edited
-
trunk/xmlrpc/BxDolXMLRPCMessages.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc/BxDolXMLRPCMessages.php
r12990 r15211 30 30 return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "struct")); 31 31 32 require_once( BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $GLOBALS['tmpl'] . '/scripts/BxTemplMailBox.php'); 32 require_once( BX_DIRECTORY_PATH_ROOT . 'templates/tmpl_' . $GLOBALS['tmpl'] . '/scripts/BxTemplMailBox.php'); 33 33 34 34 $sRecipient = process_db_input ($sRecipient, BX_TAGS_NO_ACTION, BX_SLASHES_NO_ACTION); … … 36 36 if (!$aRecipient) 37 37 return new xmlrpcval (BX_MAILBOX_SEND_UNKNOWN_RECIPIENT); 38 38 39 39 $aMailBoxSettings = array ('member_id' => $iId); 40 40 $oMailBox = &new BxTemplMailBox('mail_page_compose', $aMailBoxSettings); 41 41 42 $aComposeSettings = array ( 42 $aComposeSettings = array ( 43 43 'send_copy' => 'recipient' == $sSendTo || 'both' == $sSendTo ? true : false, 44 44 'notification' => false, … … 58 58 $iMsgId = (int)$iMsgId; 59 59 $sJoinOn = $isInbox ? " `m`.`Sender` = `p`.`ID` " : " `m`.`Recipient` = `p`.`ID` "; 60 $aRow = db_arr ("SELECT 61 `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`Text`, `m`.`New`, 62 `p`.`NickName` AS `Nick` 60 $aRow = db_arr ("SELECT 61 `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`Text`, `m`.`New`, 62 `p`.`NickName` AS `Nick` 63 63 FROM `sys_messages` AS `m` 64 64 LEFT JOIN `Profiles` AS `p` ON ($sJoinOn) … … 97 97 $sWhere = $isInbox ? " `Recipient` = '$iId' " : " `Sender`= '$iId' "; 98 98 $sJoinOn = $isInbox ? " `m`.`Sender` = `p`.`ID` " : " `m`.`Recipient` = `p`.`ID` "; 99 $r = db_res ("SELECT 100 `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`New`, 101 `p`.`NickName` AS `Nick` 99 $r = db_res ("SELECT 100 `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`New`, 101 `p`.`NickName` AS `Nick` 102 102 FROM `sys_messages` AS `m` 103 103 LEFT JOIN `Profiles` AS `p` ON ($sJoinOn) 104 WHERE $sWhere 104 WHERE $sWhere 105 105 ORDER BY `Date` DESC"); 106 106 while ($aRow = mysql_fetch_array ($r))
Note: See TracChangeset
for help on using the changeset viewer.