You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
787 B
PPT�LL
35 lines
787 B
PPT�LL
5 years ago
|
<?php
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: xmy 280564871@qq.com
|
||
|
* Date: 2017/4/20
|
||
|
* Time: 15:00
|
||
|
*/
|
||
|
|
||
|
namespace Open\Controller;
|
||
|
|
||
|
use Admin\Model\DevelopersModel;
|
||
|
|
||
|
class CenterController extends BaseController{
|
||
|
|
||
|
public function _initialize()
|
||
|
{
|
||
|
$uid = session("user_info.uid");
|
||
|
$account = session("user_info.account");
|
||
|
|
||
|
if(empty($uid) || empty($account)){
|
||
|
$this->redirect("Index/index");
|
||
|
}
|
||
|
|
||
|
$Develop = new DevelopersModel();
|
||
|
$user = $Develop->getUserData($uid);
|
||
|
$status = $user['status'];
|
||
|
if($status != 1 && CONTROLLER_NAME != "Message" &&CONTROLLER_NAME != "Apply"){
|
||
|
$this->redirect("apply/apply");
|
||
|
}
|
||
|
define("UID",$uid);
|
||
|
define("ACCOUNT",$account);
|
||
|
$this->assign("title_head",'stats');
|
||
|
parent::_initialize(); // TODO: Change the autogenerated stub
|
||
|
}
|
||
|
}
|