$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']); echo MES_User::change_password($old, $new); } else { if ($action == 'forget_password_step1') { //change your password when your forget it $mobile = ANTI_SPAM($_POST['mobile']); $code = ANTI_SPAM($_POST['code']); echo MES_User::forget_password_step1($mobile, $code); } else { if ($action == 'forget_password_step2') { //change your password when your forget it