From f92db4f5e750358bf49f4aa81d6f91b00e006494 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Sep 2005 16:50:12 +0100 Subject: [PATCH] purging of old posts is actually configurable now, added comments for some configuration options, interface cleanups --- backend.php | 14 +++++++++----- config.php-dist | 18 ++++++++++++++++-- functions.php | 4 ++-- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/backend.php b/backend.php index 0fb3d1e8..ef6caf0b 100644 --- a/backend.php +++ b/backend.php @@ -562,11 +562,15 @@ Edit  Remove  - Mark as read  - Mark as unread  + href=\"javascript:removeSelectedFeeds()\">Remove "; + if (ENABLE_PREFS_CATCHUP_UNCATCHUP) { + print " + Mark as read  + Mark as unread "; + } + print " All feeds:  Export OPML"; diff --git a/config.php-dist b/config.php-dist index b02e4c43..e441a94b 100644 --- a/config.php-dist +++ b/config.php-dist @@ -1,13 +1,27 @@ diff --git a/functions.php b/functions.php index ab9b571f..9df33518 100644 --- a/functions.php +++ b/functions.php @@ -4,9 +4,9 @@ define('MAGPIE_OUTPUT_ENCODING', 'UTF-8'); function purge_old_posts() { - if (PURGE_OLD_DAYS) { + if (PURGE_OLD_DAYS > 0) { $result = pg_query("DELETE FROM ttrss_entries WHERE - date_entered < NOW() - INTERVAL '30 days'"); + date_entered < NOW() - INTERVAL '".PURGE_OLD_DAYS." days'"); } } -- 2.39.2