<?php
/**
* +----------------------------------------------------------------------
* | TickyPHP [ This is a freeware ]
* +----------------------------------------------------------------------
* | Copyright (c) 2015 All rights reserved.
* +----------------------------------------------------------------------
* | Author: 罗敏贵 <e-mail:minguiluo@163.com> <QQ:271391233>
* +----------------------------------------------------------------------
* | SVN: $Id: home.php 09594 2018-09-04 09:29:53 luomingui $
* +----------------------------------------------------------------------
* | 文件功能:
* +----------------------------------------------------------------------
*/
namespace application\member\controller;
use application\admin\controller\auth as auth;
use ticky\request;
use ticky\response;
class home extends auth {
public function index() {
$memberinfo = $this->memberinfo;
$groupinfo = get_groupinfo($groupid);
$this->assign('title', '会员中心');
$this->assign('groupinfo', $groupinfo);
$this->assign('memberinfo', $memberinfo);
$this->display('index');
}
public function public_checkname() {
$username = isset($_POST['username']) && is_username($_POST['username']) ? trim($_POST['username']) : exit('0');
$result = db('member')->where(array('username' => $username))->find();
$result ? exit('-1') : exit('1');
}
}