function AbortFileUpload($_chat, $_filename, $_error = FILE_ACTION_ERROR, $response = "") { $fileid = md5(IOStruct::GetNamebase($_filename) . $_chat->UserId . $_chat->BrowserId); $request = new FileUploadRequest(EX_FILE_UPLOAD_REQUEST . "_" . $fileid, $_chat->DesiredChatPartner, $_chat->ChatId); $request->Load(); if (!$request->Closed) { $request->Error = $_error; $request->Save(); } else { $response .= "lz_chat_file_reset();"; } return $response; }
function AbortFileUpload($_user, $_filename, $_error) { $fileid = substr(md5(namebase($_filename)), 0, 5); $request = new FileUploadRequest($this->BrowserId . "_" . $fileid, $this->DesiredChatPartner); if (dataSetExists($request->TargetFile)) { $request->Load(); $request->Error = $_error; $request->Save(); } }
function AbortFileUpload($_user, $_filename, $_error) { $fileid = md5(namebase($_filename) . $this->UserId . $this->BrowserId); $request = new FileUploadRequest(EX_FILE_UPLOAD_REQUEST . "_" . $fileid, $this->DesiredChatPartner); $request->Load(); if (!$request->Closed) { $request->Error = $_error; $request->Save(); } else { $_user->AddFunctionCall("top.lz_chat_file_reset();", false); } return $_user; }
function appendPermissions() { $ids = explode(POST_ACTION_VALUE_SPLITTER, $_POST[POST_INTERN_PROCESS_PERMISSIONS . "_va"]); $results = explode(POST_ACTION_VALUE_SPLITTER, $_POST[POST_INTERN_PROCESS_PERMISSIONS . "_vb"]); foreach ($ids as $key => $id) { $fur = new FileUploadRequest($ids[$key], CALLER_SYSTEM_ID); $fur->Load(); $fur->Permission = $results[$key]; $fur->Save(); } }