source/Application/Controller/Admin/NavigationController.php
protected function _doStartUpChecks()
    {
        $aMessage = [];

        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blCheckSysReq') !== false) {
            // check if system reguirements are ok
            $oSysReq = oxNew(\OxidEsales\Eshop\Core\SystemRequirements::class);
            if (!$oSysReq->getSysReqStatus()) {
                $aMessage['warning'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NAVIGATION_SYSREQ_MESSAGE');
                $aMessage['warning'] .= '<a href="?cl=sysreq&amp;stoken=' . $this->getSession()->getSessionChallengeToken() . '" target="basefrm">';
                $aMessage['warning'] .= \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NAVIGATION_SYSREQ_MESSAGE2') . '</a>';
            }
        } else {
            $aMessage['message'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NAVIGATION_SYSREQ_MESSAGE_INACTIVE');
            $aMessage['message'] .= '<a href="?cl=sysreq&amp;stoken=' . $this->getSession()->getSessionChallengeToken() . '" target="basefrm">';
            $aMessage['message'] .= \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NAVIGATION_SYSREQ_MESSAGE2') . '</a>';
        }

        // version check
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blCheckForUpdates')) {
            if ($sVersionNotice = $this->_checkVersion()) {
                $aMessage['message'] .= $sVersionNotice;
            }
        }


        // check if setup dir is deleted
        if (file_exists(\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sShopDir') . '/Setup/index.php')) {
            $aMessage['warning'] .= ((!empty($aMessage['warning'])) ? "<br>" : '') . \OxidEsales\Eshop\Core\Registry::getLang()->translateString('SETUP_DIRNOTDELETED_WARNING');
        }

        // check if updateApp dir is deleted or empty
        $sUpdateDir = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sShopDir') . '/updateApp/';
        if (file_exists($sUpdateDir) && !(count(glob("$sUpdateDir/*")) === 0)) {
            $aMessage['warning'] .= ((!empty($aMessage['warning'])) ? "<br>" : '') . \OxidEsales\Eshop\Core\Registry::getLang()->translateString('UPDATEAPP_DIRNOTDELETED_WARNING');
        }

        // check if config file is writable
        $sConfPath = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sShopDir') . "/config.inc.php";
        if (!is_readable($sConfPath) || is_writable($sConfPath)) {
            $aMessage['warning'] .= ((!empty($aMessage['warning'])) ? "<br>" : '') . \OxidEsales\Eshop\Core\Registry::getLang()->translateString('SETUP_CONFIGPERMISSIONS_WARNING');
        }

        return $aMessage;
    }
protected function _doStartUpChecks()
    {
        $aMessage = [];

        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blCheckSysReq') !== false) {
            // check if system reguirements are ok
            $oSysReq = oxNew(\OxidEsales\Eshop\Core\SystemRequirements::class);
            if (!$oSysReq->getSysReqStatus()) {
                $aMessage['warning'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NAVIGATION_SYSREQ_MESSAGE');
                $aMessage['warning'] .= '<a href="?cl=sysreq&amp;stoken=' . $this->getSession()->getSessionChallengeToken() . '" target="basefrm">';
                $aMessage['warning'] .= \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NAVIGATION_SYSREQ_MESSAGE2') . '</a>';
            }
        } else {
            $aMessage['message'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NAVIGATION_SYSREQ_MESSAGE_INACTIVE');
            $aMessage['message'] .= '<a href="?cl=sysreq&amp;stoken=' . $this->getSession()->getSessionChallengeToken() . '" target="basefrm">';
            $aMessage['message'] .= \OxidEsales\Eshop\Core\Registry::getLang()->translateString('NAVIGATION_SYSREQ_MESSAGE2') . '</a>';
        }

        // version check
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blCheckForUpdates')) {
            if ($sVersionNotice = $this->_checkVersion()) {
                $aMessage['message'] .= $sVersionNotice;
            }
        }


        // check if setup dir is deleted
        if (file_exists(\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sShopDir') . '/Setup/index.php')) {
            $aMessage['warning'] .= ((!empty($aMessage['warning'])) ? "<br>" : '') . \OxidEsales\Eshop\Core\Registry::getLang()->translateString('SETUP_DIRNOTDELETED_WARNING');
        }

        // check if updateApp dir is deleted or empty
        $sUpdateDir = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sShopDir') . '/updateApp/';
        if (file_exists($sUpdateDir) && !(count(glob("$sUpdateDir/*")) === 0)) {
            $aMessage['warning'] .= ((!empty($aMessage['warning'])) ? "<br>" : '') . \OxidEsales\Eshop\Core\Registry::getLang()->translateString('UPDATEAPP_DIRNOTDELETED_WARNING');
        }

        // check if config file is writable
        $sConfPath = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sShopDir') . "/config.inc.php";
        if (!is_readable($sConfPath) || is_writable($sConfPath)) {
            $aMessage['warning'] .= ((!empty($aMessage['warning'])) ? "<br>" : '') . \OxidEsales\Eshop\Core\Registry::getLang()->translateString('SETUP_CONFIGPERMISSIONS_WARNING');
        }

        return $aMessage;
    }
protected function _doStartUpChecks ( ) { $ aMessage = [ ] ; if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blCheckSysReq' ) !== false ) { // check if system reguirements are ok $ oSysReq = oxNew ( \ OxidEsales \ Eshop \ Core \ SystemRequirements :: class ) ; if ( ! $ oSysReq -> getSysReqStatus ( ) ) { $ aMessage [ 'warning' ] = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> translateString ( 'NAVIGATION_SYSREQ_MESSAGE' ) ; $ aMessage [ 'warning' ] .= '<a href="?cl=sysreq&amp;stoken=' . $ this -> getSession ( ) -> getSessionChallengeToken ( ) . '" target="basefrm">' ; $ aMessage [ 'warning' ] .= \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> translateString ( 'NAVIGATION_SYSREQ_MESSAGE2' ) . '</a>' ; } } else { $ aMessage [ 'message' ] = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> translateString ( 'NAVIGATION_SYSREQ_MESSAGE_INACTIVE' ) ; $ aMessage [ 'message' ] .= '<a href="?cl=sysreq&amp;stoken=' . $ this -> getSession ( ) -> getSessionChallengeToken ( ) . '" target="basefrm">' ; $ aMessage [ 'message' ] .= \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> translateString ( 'NAVIGATION_SYSREQ_MESSAGE2' ) . '</a>' ; } // version check if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blCheckForUpdates' ) ) { if ( $ sVersionNotice = $ this -> _checkVersion ( ) ) { $ aMessage [ 'message' ] .= $ sVersionNotice ; } } // check if setup dir is deleted if ( file_exists ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'sShopDir' ) . '/Setup/index.php' ) ) { $ aMessage [ 'warning' ] .= ( ( ! empty ( $ aMessage [ 'warning' ] ) ) ? "<br>" : '' ) . \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> translateString ( 'SETUP_DIRNOTDELETED_WARNING' ) ; } // check if updateApp dir is deleted or empty $ sUpdateDir = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'sShopDir' ) . '/updateApp/' ; if ( file_exists ( $ sUpdateDir ) && ! ( count ( glob ( "$sUpdateDir/*" ) ) === 0 ) ) { $ aMessage [ 'warning' ] .= ( ( ! empty ( $ aMessage [ 'warning' ] ) ) ? "<br>" : '' ) . \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> translateString ( 'UPDATEAPP_DIRNOTDELETED_WARNING' ) ; } // check if config file is writable $ sConfPath = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'sShopDir' ) . "/config.inc.php" ; if ( ! is_readable ( $ sConfPath ) || is_writable ( $ sConfPath ) ) { $ aMessage [ 'warning' ] .= ( ( ! empty ( $ aMessage [ 'warning' ] ) ) ? "<br>" : '' ) . \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> translateString ( 'SETUP_CONFIGPERMISSIONS_WARNING' ) ; } return $ aMessage ; }
Every Time Admin starts we perform these checks
returns some messages if there is something to display

@return string
Every Time Admin starts we perform these checks returns some messages if there is something to display