|
/**
* Process user login request.
* @return true if this function fits for form data.
*/
function processUserLogin() {
var userName = Request.Form("UserID");
var password = Request.Form("Psw");
if(userName.Count != 0) {
sessionID = loginUser(userName, password);
return true;
}
sessionID = -1;
return false;
}
/**
* Process new room request.
* @return true if this function fits for form data.
*/
function processNewRoomCreation() {
sessionID = Request.Form("SessionID");
if(sessionID.Count != 0) {
// Possible new room creation attempt.
var roomName = Request.Form("RoomName");
if(roomName.Count != 0 && roomName != "") {
createRoom(sessionID, roomName);
}
return true;
}
sessionID = -1;
return false;
}
/**
* Process changing of room or opening separate request.
* @return true if this function fits for form data.
*/
function processRoomChanging() {
sessionID = Request("SessionID");
var oldRoomID = Request("RoomID");
var doesMove = (Request("Move") == 1);
if(sessionID.Count != 0) {
if(doesMove) {
sessionID = switchRoom(oldRoomID, 0, sessionID);
}
else {
sessionID = copySessionToRoom(oldRoomID, 0, sessionID);
}
return true;
}
sessionID = -1;
return false;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here