function OpenFile($date, $min = false, $max = false) { global $TMP_PATH; $this->fname = LOGGER::GetLogFile($date); if ($this->file) { $this->CloseFile(); } $this->file = @fopen($this->fname, "r"); if ($this->file) { $this->min = $min; $this->max = $max; } return $this->file; }