public function step2()
 {
     if (IS_AJAX) {
         if (session('error')) {
             $this->error('环境检测没有通过,请调整环境后重试!');
         } else {
             $this->success('恭喜您环境检测通过', U('step3'));
         }
     } else {
         if (session('step') !== '1') {
             $this->error("请按顺序安装", U('step1'));
         } else {
             session('step', '2');
             session('error', false);
             //环境检测
             $this->assign('check_env', check_env());
             //目录文件读写检测
             if (IS_WRITE) {
                 $this->assign('check_dirfile', check_dirfile());
             }
             //函数及扩展库检测
             $this->assign('check_func_and_ext', check_func_and_ext());
             $this->assign('meta_title', "step2");
             $this->display();
         }
     }
 }
 public function step1()
 {
     if (IS_AJAX) {
         if (session('error')) {
             $this->error('环境检测没有通过,请调整环境后重试!');
         } else {
             $this->success('恭喜您环境检测通过', U('step2'));
         }
     } else {
         session('error', false);
         //环境检测
         $env = check_env();
         //目录文件读写检测
         if (IS_WRITE) {
             $dirfile = check_dirfile();
             $this->assign('dirfile', $dirfile);
         }
         //函数检测
         $func = check_func();
         session('step', 1);
         $this->assign('env', $env);
         $this->assign('func', $func);
         $this->display();
     }
 }
 public function step1()
 {
     session('error', false);
     //环境检测
     $env = check_env();
     //目录文件读写检测
     $dirfile = check_dirfile();
     //函数检测
     $func = check_func();
     session('step', 1);
     $this->assign('env', $env);
     $this->assign('dirfile', $dirfile);
     $this->assign('func', $func);
     $this->display();
 }