aboutsummaryrefslogtreecommitdiff
path: root/app/Models/UserDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-10-29 00:45:42 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-10-29 00:45:42 +0100
commit9f97f7df8822ed2f32a9bc9d46ece92dee93089c (patch)
treea807ad69acd8e0db815eace379863b562a113c69 /app/Models/UserDAO.php
parent00127f07c5fc784130d658e3f26519b0279fc6b8 (diff)
Ne pas rafraîchir les flux des utilisateurs non logués depuis x jours
https://github.com/marienfressinaud/FreshRSS/issues/681 Warning: needs some testing
Diffstat (limited to 'app/Models/UserDAO.php')
-rw-r--r--app/Models/UserDAO.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/Models/UserDAO.php b/app/Models/UserDAO.php
index 85b45c4a7..60fca71b1 100644
--- a/app/Models/UserDAO.php
+++ b/app/Models/UserDAO.php
@@ -54,7 +54,15 @@ class FreshRSS_UserDAO extends Minz_ModelPdo {
}
}
- public function exist($username) {
+ public static function exist($username) {
return file_exists(DATA_PATH . '/' . $username . '_user.php');
}
+
+ public static function touch($username) {
+ return touch(DATA_PATH . '/' . $username . '_user.php');
+ }
+
+ public static function mtime($username) {
+ return @filemtime(DATA_PATH . '/' . $username . '_user.php');
+ }
}