function file()
{
+ if (!file_exists($this->page)) return;
return fopen($this->page, 'r');
}
function dateparts()
{
- preg_match('</(\d{4})/(\d{2})-(\d{2})->', $this->page, $ymd);
+ preg_match('</(\d{4})[/-](\d{2})-(\d{2})->', $this->page, $ymd);
return $ymd;
}