
function doLogin($username,$pass = null,$isRegister = false){
/*
Please put your code here to database connection processing
*/
return Null/"guest"/"member"/"admin"
}
doLogin Function must have return value for Red5/FMS to receive, there are four kinds of
return value
Null: Null, login failed
"guest": String, login succeed and login as a guest
"member": String, login succeed and login as a register user
"admin": String, login succeed and login as an administrator who has the highest
purview.
Explanation: doLogin function is the most important, if it is wrong then nobody can
login. So please check it very carefully before you modify.
/*
* change the password, only for the register users
*
* @ param $username: User's login name
* @ param $oldPass: old pass word
* @ param $newPass: new pass word
*/
function modifyPassword($username,$oldPass,$newPass){
/*
Please put your code for checking your old password and setting your
new password here
*/
return true/false;
}
"modifyPassword" function must have return value and it is true of false which is for
showing whether the action is completed.
/*
* save the chat history
*
* @ param $target: Receiving massage one's name, if the one is in the
* chatting room then it is the room's name. If it is a private chat, it is the user's
Comentarios a estos manuales