protected function siteView()
    {
        if (!userHasPermission('admin:admin:logs:site:browse')) {
            unauthorised();
        }

        // --------------------------------------------------------------------------

        $oUri                      = Factory::service('Uri');
        $sFile                     = $oUri->segment(6);
        $this->data['page']->title = 'Browse Logs &rsaquo; ' . $sFile;

        $oSiteLogModel      = Factory::model('SiteLog', 'nails/module-admin');
        $this->data['logs'] = $oSiteLogModel->readLog($sFile);

        if (!$this->data['logs']) {
            show404();
        }

        Helper::loadView('site/view');
    }
protected function siteView()
    {
        if (!userHasPermission('admin:admin:logs:site:browse')) {
            unauthorised();
        }

        // --------------------------------------------------------------------------

        $oUri                      = Factory::service('Uri');
        $sFile                     = $oUri->segment(6);
        $this->data['page']->title = 'Browse Logs &rsaquo; ' . $sFile;

        $oSiteLogModel      = Factory::model('SiteLog', 'nails/module-admin');
        $this->data['logs'] = $oSiteLogModel->readLog($sFile);

        if (!$this->data['logs']) {
            show404();
        }

        Helper::loadView('site/view');
    }
protected function siteView ( ) { if ( ! userHasPermission ( 'admin:admin:logs:site:browse' ) ) { unauthorised ( ) ; } // -------------------------------------------------------------------------- $ oUri = Factory :: service ( 'Uri' ) ; $ sFile = $ oUri -> segment ( 6 ) ; $ this -> data [ 'page' ] -> title = 'Browse Logs &rsaquo; ' . $ sFile ; $ oSiteLogModel = Factory :: model ( 'SiteLog' , 'nails/module-admin' ) ; $ this -> data [ 'logs' ] = $ oSiteLogModel -> readLog ( $ sFile ) ; if ( ! $ this -> data [ 'logs' ] ) { show404 ( ) ; } Helper :: loadView ( 'site/view' ) ; }
View a single log file
View a single log file