Example #1
0
    $c->nicknamechange();
} else {
    if (empty($_SESSION['auth_id'])) {
        //'请先登入会员账号'
        $ret['status'] = 1;
        echo json_encode($ret);
        exit;
    } else {
        if ($_POST['type'] == 'profile') {
            $c->profile();
        } elseif ($_POST['type'] == 'pw') {
            $c->pw();
        } elseif ($_POST['type'] == 'expw') {
            $c->expw();
        } elseif ($_POST['type'] == 'forgetexchange') {
            $c->forgetexchange();
        } elseif ($_POST['type'] == 'extrainfo') {
            $c->extrainfo();
        } elseif ($_POST['type'] == 'bonus_noexpw') {
            $c->bonus_noexpw();
        }
    }
}
class User
{
    public $str;
    public function home()
    {
        global $db, $config, $usermodel;
        // 初始化資料庫連結介面
        $db = new mysql($config["db"]);