Esempio n. 1
0
 function view_login()
 {
     if (!isset($_SESSION['userName'])) {
         $api = new ApiAct();
         $res = $api->act_getAuthCompanyList();
         //获取鉴权的公司列表
         $this->smarty->assign('lists', $res);
         $this->smarty->display('login.htm');
     } else {
         //echo C('USER_GO_URL'));
         redirect_to(C('USER_GO_URL'));
     }
 }