public function __construct()
 {
     parent::__construct();
     if ($this->act == 'login') {
         if ($this->my['level']) {
             redirect(U('admin/index'));
         }
         return;
     }
     C('DEFAULT_THEME', 'a_tpl');
     C("URL_MODEL", 0);
     $this->isAdmin();
     include 'update.php';
     $this->version = $version;
     $this->a('version', $version);
     $qx = unserialize($this->my['qx']);
     $qx = array_merge($qx ? $qx : array(), array('index', 'login', 'dologout'));
     if ($this->my['uid'] != 1 && !in_array($this->act, $qx)) {
         $this->mySuccess('您没有权限进行该操作', U('admin/index'));
     }
     S('goodsSort', null);
     !S('goodsSort') && S('goodsSort', $this->iniSort(1), 36000);
     $this->a('goodsSort', $this->goodsSort = S('goodsSort'));
     S('artSort', null);
     !S('artSort') && S('artSort', $this->iniSort(2), 36000);
     $this->a('artSort', $this->artSort = S('artSort'));
 }
 public function __construct()
 {
     parent::__construct();
     $this->isLogin();
     $order_num = M('order')->where("buy_id={$this->my['uid']}")->count();
     $evaluate_num = M('evaluate')->where("uid={$this->my['uid']}")->count();
     $this->a('$order_num', $order_num);
     $this->a('$evaluate_num', $evaluate_num);
 }
 public function __construct()
 {
     parent::__construct();
 }
 function __construct()
 {
     parent::__construct();
     C('DEFAULT_THEME', 'wh');
 }