Exemple #1
0
 public function dateAdded($raw = false)
 {
     $date = intval(substr($this->id, 0, -6));
     if ($raw) {
         return $date;
     } else {
         return timestamptodate($date);
     }
 }
 public function firstAction()
 {
     if (!FreshRSS_Auth::hasAccess('admin')) {
         Minz_Error::error(403);
     }
     invalidateHttpCache();
     $this->view->update_to_apply = false;
     $this->view->last_update_time = 'unknown';
     $timestamp = @filemtime(join_path(DATA_PATH, 'last_update.txt'));
     if ($timestamp !== false) {
         $this->view->last_update_time = timestamptodate($timestamp);
     }
 }