public function checkSystemInit()
    {
        if (!session()->has('chkSysInit') || $GLOBALS["SL"]->REQ->has('refresh')) {
            $sysChk = User::select('id')
                ->get();
            if ($sysChk->isEmpty()) {
                return $this->freshUser($GLOBALS["SL"]->REQ);
            }
            $sysChk = SLDatabases::select('DbID')
                ->where('DbUser', '>', 0)
                ->get();
            if ($sysChk->isEmpty()) {
                return $this->redir('/fresh/database', true);
            }
            if (!$this->chkHasTreeOne()) {
                return $this->redir('/fresh/survey', true);
            }
            $survInst = new SurvLoopInstaller;
            $survInst->checkSysInit();
            session()->put('chkSysInit', 1);
        }
        return '';
    }
public function checkSystemInit()
    {
        if (!session()->has('chkSysInit') || $GLOBALS["SL"]->REQ->has('refresh')) {
            $sysChk = User::select('id')
                ->get();
            if ($sysChk->isEmpty()) {
                return $this->freshUser($GLOBALS["SL"]->REQ);
            }
            $sysChk = SLDatabases::select('DbID')
                ->where('DbUser', '>', 0)
                ->get();
            if ($sysChk->isEmpty()) {
                return $this->redir('/fresh/database', true);
            }
            if (!$this->chkHasTreeOne()) {
                return $this->redir('/fresh/survey', true);
            }
            $survInst = new SurvLoopInstaller;
            $survInst->checkSysInit();
            session()->put('chkSysInit', 1);
        }
        return '';
    }
public function checkSystemInit ( ) { if ( ! session ( ) -> has ( 'chkSysInit' ) || $ GLOBALS [ "SL" ] -> REQ -> has ( 'refresh' ) ) { $ sysChk = User :: select ( 'id' ) -> get ( ) ; if ( $ sysChk -> isEmpty ( ) ) { return $ this -> freshUser ( $ GLOBALS [ "SL" ] -> REQ ) ; } $ sysChk = SLDatabases :: select ( 'DbID' ) -> where ( 'DbUser' , '>' , 0 ) -> get ( ) ; if ( $ sysChk -> isEmpty ( ) ) { return $ this -> redir ( '/fresh/database' , true ) ; } if ( ! $ this -> chkHasTreeOne ( ) ) { return $ this -> redir ( '/fresh/survey' , true ) ; } $ survInst = new SurvLoopInstaller ; $ survInst -> checkSysInit ( ) ; session ( ) -> put ( 'chkSysInit' , 1 ) ; } return '' ; }
Check For Basic System Setup First
Check For Basic System Setup First