error("非法操作"); } $clist = M("config")->where(array('id'=>1))->field("webname")->find(); $webname = $clist['webname']; $this->assign("webname",$webname); if (!session('userId')) { session('userId', 0); } else if (CONTROLLER_NAME != 'Login') { } } } ?>