'-1', `ID` NOT IN (" . $_REQUEST['got'] . "), '1')"; $aIms = getResult($sQuery); while($aIm = mysql_fetch_array($aIms)) { $aUserInfo = getUserInfo($aIm['SenderID']); $sContents .= parseXml($aXmlTemplates['message'], $aIm['Msg'], $aIm['ID'], $aIm['SenderID'], $aUserInfo['nick'], $aUserInfo['sex'], $aUserInfo['age'], $aUserInfo['photo'], $aUserInfo['profile']); } $sContents = makeGroup($sContents, "msgs"); break; /** * Declines received IM message. * @param id - user's ID. */ case "declineIm": getResult("DELETE FROM `" . $sImDBPrefix . "Pendings` WHERE `ID`='" . $sId . "'"); break; /** * Update information from remote server. * @param type - the type of information to be updated. * @param name - the name of the file to be updated. */ case "update": $sFileName = $sModulesPath . "desktop/" . $_REQUEST['type'] . "/" . $_REQUEST['name']; $rHandler = fopen($sFileName, "rb"); $sContents = fread($rHandler, filesize($sFileName)); $sContentsType = $_REQUEST['type'] == "skins" ? CONTENTS_TYPE_OTHER : CONTENTS_TYPE_XML; fclose($rHandler); break; /** * @param location - the location where you need to redirect. * @param id - user's ID. * @param nick - user's nick name. * @param password - user's password. * @param mid - mail's ID. * @param rid - ID of the recipient of a message, which will be created. * @param rnick - Nick name of the recipient of a message, which will be created. */ case "redirect": redirect($_REQUEST['location'], $_REQUEST['id'], $_REQUEST['nick'], $_REQUEST['password'], $_REQUEST['mid'], $_REQUEST['rid'], $_REQUEST['rnick']); break; /** * Updates user's information in RayTrackUsers table. * For Users, who didn't login into Ray Presence, but logged in into site. * @param id - user's ID. */ case "updOnlineStatus": updateOnline($sId, $sStatus); break; } ?>