Changeset 9985 for trunk/xmlrpc
- Timestamp:
- 04/06/09 23:30:15 (3 years ago)
- Location:
- trunk/xmlrpc
- Files:
-
- 4 edited
-
BxDolXMLRPCMedia.php (modified) (1 diff)
-
BxDolXMLRPCMessages.php (modified) (3 diffs)
-
BxDolXMLRPCProfileView.php (modified) (1 diff)
-
BxDolXMLRPCUtil.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc/BxDolXMLRPCMedia.php
r9551 r9985 66 66 if (!($r = db_res (" 67 67 SELECT `c`.`Category`, COUNT(`f`.`$sFieldId`) AS `Num` 68 FROM ` Categories` AS `c`68 FROM `sys_categories` AS `c` 69 69 LEFT JOIN `$sTable` AS `f` ON (`f`.`$sFieldId` = `c`.`ID` AND `f`.`$sFieldOwner` = '$iIdProfile') 70 70 WHERE `c`.`Type` = '$sType' AND (`c`.`Owner` = '0' OR `c`.`Owner` = '$iIdProfile') -
trunk/xmlrpc/BxDolXMLRPCMessages.php
r8596 r9985 59 59 `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`Text`, `m`.`New`, 60 60 `p`.`NickName` AS `Nick` 61 FROM ` Messages` AS `m`61 FROM `sys_messages` AS `m` 62 62 LEFT JOIN `Profiles` AS `p` ON ($sJoinOn) 63 63 WHERE `m`.`ID` = '$iMsgId'"); … … 77 77 ); 78 78 if ($isInbox && $aRow['New']) 79 db_res("UPDATE ` Messages` SET `New` = 0 WHERE `ID` = '$iMsgId'");79 db_res("UPDATE `sys_messages` SET `New` = 0 WHERE `ID` = '$iMsgId'"); 80 80 } 81 81 else … … 98 98 `m`.`ID`, `m`.`Date`, `m`.`Sender`, `m`.`Recipient`, `m`.`Subject`, `m`.`New`, 99 99 `p`.`NickName` AS `Nick` 100 FROM ` Messages` AS `m`100 FROM `sys_messages` AS `m` 101 101 LEFT JOIN `Profiles` AS `p` ON ($sJoinOn) 102 102 WHERE $sWhere -
trunk/xmlrpc/BxDolXMLRPCProfileView.php
r9975 r9985 13 13 { 14 14 $aRet = array(); 15 $r = db_res ("SELECT `pc`.`Caption`, `pc`.`Content` FROM ` ProfileFields` AS `pf` INNER JOIN `sys_page_compose` AS `pc` ON (`pc`.`Func` = 'PFBlock' AND `pc`.`Content` = `pf`.`ID`) WHERE `pf`.`Type` = 'block' AND `pc`.`Column` != 0 ORDER BY `pc`.`Column`, `pc`.`Order`");15 $r = db_res ("SELECT `pc`.`Caption`, `pc`.`Content` FROM `sys_profile_fields` AS `pf` INNER JOIN `sys_page_compose` AS `pc` ON (`pc`.`Func` = 'PFBlock' AND `pc`.`Content` = `pf`.`ID`) WHERE `pf`.`Type` = 'block' AND `pc`.`Column` != 0 ORDER BY `pc`.`Column`, `pc`.`Order`"); 16 16 while ($a = mysql_fetch_array($r)) 17 17 { -
trunk/xmlrpc/BxDolXMLRPCUtil.php
r9968 r9985 21 21 // mail contacts received 22 22 $r = db_res ("SELECT `p`.`ID`, `p`.`NickName` AS `Nick` FROM `Profiles` AS `p` 23 INNER JOIN ` Messages` AS `m` ON (`m`.`Sender` = `p`.`ID`)23 INNER JOIN `sys_messages` AS `m` ON (`m`.`Sender` = `p`.`ID`) 24 24 WHERE `p`.`ID` != $iId AND `m`.`Recipient` = $iId"); 25 25 while ($aRow = mysql_fetch_array ($r)) … … 28 28 // mail contacts sent 29 29 $r = db_res ("SELECT `p`.`ID`, `p`.`NickName` AS `Nick` FROM `Profiles` AS `p` 30 INNER JOIN ` Messages` AS `m` ON (`m`.`Recipient` = `p`.`ID`)30 INNER JOIN `sys_messages` AS `m` ON (`m`.`Recipient` = `p`.`ID`) 31 31 WHERE `p`.`ID` != $iId AND `m`.`Sender` = $iId"); 32 32 while ($aRow = mysql_fetch_array ($r))
Note: See TracChangeset
for help on using the changeset viewer.