$username = ANTI_SPAM($_POST['username']); $password = ANTI_SPAM($_POST['password']); echo MES_User::query_login($username, $password); } else { if ($action == 'get_auto_register_mobile') { //获得自动注册的手机号码 echo MES_User::get_auto_register_mobile(); } else { if ($action == 'account') { //个人账户管理页面 $smarty->display('account.dwt'); } else { if ($action == 'change_mobile_get_code') { //修改手机的验证码 $mobile = ANTI_SPAM($_POST['mobile'], array('minLength' => 6, 'maxLength' => 30)); echo MES_User::change_mobile_get_code($mobile); } else { if ($action == 'change_mobile') { //chang your tel $mobile = ANTI_SPAM($_POST['mobile']); $code = ANTI_SPAM($_POST['code']); echo MES_User::change_mobile($mobile, $code); } else { if ($action == 'get_user_mobile_number') { //get tel only echo MES_User::get_user_mobile_number(); } else { if ($action == 'change_password') { //change your password $old = ANTI_SPAM($_POST['old']); $new = ANTI_SPAM($_POST['new']);