2015-07-28 15:15:57 +08:00
|
|
|
<?php
|
|
|
|
|
namespace User\Controller;
|
|
|
|
|
use Think\Controller;
|
|
|
|
|
|
|
|
|
|
/**
|
2016-01-24 11:54:16 +08:00
|
|
|
* @author Zhou Yuyang <1009465756@qq.com> 12:28 2016/1/23
|
|
|
|
|
* @copyright 2105-2018 SRCMS
|
2015-07-28 15:15:57 +08:00
|
|
|
* @homepage http://www.src.pw
|
2016-01-24 11:54:16 +08:00
|
|
|
* @version 1.5
|
2015-07-28 15:15:57 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class IndexController extends BaseController {
|
|
|
|
|
public function index(){
|
2016-01-26 14:09:59 +08:00
|
|
|
echo waf('111111');
|
2016-01-24 11:54:16 +08:00
|
|
|
$id = session('userId');
|
|
|
|
|
$tmodel= M('setting');
|
|
|
|
|
$title = $tmodel->where('id=1')->select();
|
|
|
|
|
$page = M('post')->where('user_id='.$id)->count();
|
|
|
|
|
$user = M('member')->where('id='.$id)->select();
|
|
|
|
|
$this->assign('title', $title);
|
|
|
|
|
$this->assign('page',$page);
|
|
|
|
|
$this->assign('user',$user);
|
2015-07-28 15:15:57 +08:00
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
}
|