예제 #1
0
파일: default.php 프로젝트: sangkasi/joomla
 /**
  * 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();
 }
예제 #2
0
 private function _shReadSecStatsFromFile($shFileName)
 {
     $logFile = fopen($shFileName, 'r');
     if ($logFile) {
         while (!feof($logFile)) {
             $line = fgets($logFile, 4096);
             Sh404sefHelperSecurity::_shDecodeSecLogLine($line);
         }
         fClose($logFile);
     }
 }