$MU->Allow_AccessToRoom($roomid); } send_Action_Response('Success', '1'); break; case 'LeaveRoom': $uid = get_POST_var("uid"); $rid = get_POST_var("rid"); $MU = new ManageUsers(); $MU->userId = $CURRENT_USERID; $res = $MU->Logout_fromRoom($rid); send_Action_Response('Success', '1'); break; case 'updateChatMessageBookMark': $msgid = get_POST_var("msgid"); $roomId = get_POST_var("roomId"); $T_MB = new ManageBookMarks(); $result = $T_MB->ToggleBookMark_ChatRoomMessage($msgid, $CURRENT_USERID, $roomId); send_Action_Response('Success', $result); break; case 'updateStatusMsg': $msg = get_POST_var("msg"); $nmsg = base64_encode(htmlentities($msg, ENT_QUOTES)); $uid = $_SESSION['empl_id']; $MU = new ManageUsers(); $MU->userId = $CURRENT_USERID; $MU->set_status($nmsg); send_Action_Response('Success', $nmsg); exit; break; case 'Register_Last_Ping': register_LastPingAt();
}else{ My_JsLibrary.showErrMsg(); } } }); return false; }); }; </script> <center> <div style='margin-left: auto; margin-right: auto; margin:2px; font-size: 110%; font-weight: bold; padding: 10px; width: 82%;'>List of Recent BookMarks</div> <div id='BOOKMARKSLIST'> <?php $MB = new ManageBookMarks(); $LASTX_BOOKMARKS_SQL = $MB->get_LastX_BookMarks_query($CURRENT_USERID, 200); $result = mysql_query($LASTX_BOOKMARKS_SQL); $MCR = new ManageChatRooms(); while ($row = mysql_fetch_array($result)) { $tmp_preview_str = "<div style='margin-top: 10px; padding: 10px; background-color: #F1F4E3; border-bottom: 2px solid #E7E7E7; text-align:left; display: table; width: 96%;' id='{$row['bkm_msgId']}'>"; if ($row['msgType'] == 'F') { $TMP_MF = new ManageFiles(); $d_fileId = $row['fileId']; $fileInfo = $TMP_MF->get_file_Info($d_fileId, $CURRENT_USERID); $tmp_preview_str .= "<div class='umsg' style='float:left; line-height:150%;'>" . USERID_TO_USERNAME($row['saidBy_empl_id']) . " has uploaded a file <a href='chatfiledownload.php?fc={$fileInfo['fileId']}'>{$fileInfo['fileName']}</a> <span style='color: #A9A9A9;'>" . formatBytesToHumanReadable($fileInfo['fileSize']) . "</span> <a rel='prettyPhoto[iframes]' href='filemail.php?fid={$fileInfo['fileId']}&iframe=true&width=800&height=400'>Email</a>"; if (in_array($fileInfo['fileExt'], array('jpg', 'jpeg', 'gif', 'png', 'bmp'))) { $tmp_preview_str .= "<br/><img src=files/chat_files/thumbs/{$fileInfo['fileRandomName']}>"; } $tmp_preview_str .= "</div>"; } else {