mirror of
https://e.coding.net/circlecloud/McAccount.git
synced 2025-09-06 07:37:40 +00:00
@ -13,9 +13,23 @@ class user_public extends AmysqlController {
|
||||
function login() {
|
||||
if ($this->_model ( "authme" )->login ( @$_REQUEST ['user'], md5 ( @$_REQUEST ['pass'] ) )) {
|
||||
$_SESSION ['username'] = @$_REQUEST ['user'];
|
||||
JsonSuccess ( '登陆成功' );
|
||||
JsonSuccess ( '登陆成功!' );
|
||||
} else {
|
||||
JsonError ( '登陆失败' );
|
||||
JsonError ( '登陆失败!' );
|
||||
}
|
||||
}
|
||||
function clientcheck() {
|
||||
if ($this->_model ( "authme" )->clientcheck ( @$_REQUEST ['user'] )) {
|
||||
JsonSuccess ( '通过验证 允许登录服务器!' );
|
||||
} else {
|
||||
JsonError ( '未通过验证 请T出服务器!' );
|
||||
}
|
||||
}
|
||||
function clientlogout() {
|
||||
if ($this->_model ( "authme" )->clientlogout ( @$_REQUEST ['user'] )) {
|
||||
JsonSuccess ( '离线成功!' );
|
||||
} else {
|
||||
JsonError ( '离线失败!' );
|
||||
}
|
||||
}
|
||||
function pass() {
|
||||
|
Reference in New Issue
Block a user