/** * Browse through security log files * and update statistics, stored in * general config file for quick access */ public function updatesecstats() { // Set the default view name in case it's missing $this->_setDefaults(); Sh404sefHelperSecurity::updateSecStats(); parent::display(); }
private function _shReadSecStatsFromFile($shFileName) { $logFile = fopen($shFileName, 'r'); if ($logFile) { while (!feof($logFile)) { $line = fgets($logFile, 4096); Sh404sefHelperSecurity::_shDecodeSecLogLine($line); } fClose($logFile); } }