purging of old posts is actually configurable now, added comments for some configuration options, interface cleanups
This commit is contained in:
parent
f179a35d12
commit
f92db4f5e7
14
backend.php
14
backend.php
|
@ -562,11 +562,15 @@
|
|||
<a class=\"button\"
|
||||
href=\"javascript:editSelectedFeed()\">Edit</a>
|
||||
<a class=\"buttonWarn\"
|
||||
href=\"javascript:removeSelectedFeeds()\">Remove</a>
|
||||
<a class=\"button\"
|
||||
href=\"javascript:readSelectedFeeds()\">Mark as read</a>
|
||||
<a class=\"button\"
|
||||
href=\"javascript:unreadSelectedFeeds()\">Mark as unread</a>
|
||||
href=\"javascript:removeSelectedFeeds()\">Remove</a> ";
|
||||
if (ENABLE_PREFS_CATCHUP_UNCATCHUP) {
|
||||
print "
|
||||
<a class=\"button\"
|
||||
href=\"javascript:readSelectedFeeds()\">Mark as read</a>
|
||||
<a class=\"button\"
|
||||
href=\"javascript:unreadSelectedFeeds()\">Mark as unread</a> ";
|
||||
}
|
||||
print "
|
||||
All feeds:
|
||||
<a class=\"button\" href=\"opml.php?op=Export\">Export OPML</a>";
|
||||
|
||||
|
|
|
@ -1,13 +1,27 @@
|
|||
<?
|
||||
define(DB_CONN, "host=localhost dbname=fox user=fox password=XXXXXXXXXXX");
|
||||
// DB connection string, PostgreSQL must be configured to accept connections
|
||||
// via TCP/IP and authentified by password.
|
||||
|
||||
define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache');
|
||||
// Local cache directory for RSS feeds
|
||||
|
||||
define(HEADLINES_PER_PAGE, 15);
|
||||
define(MIN_UPDATE_TIME, 1800);
|
||||
|
||||
define(WEB_DEMO_MODE, false);
|
||||
|
||||
define(ENABLE_FEED_ICONS, true);
|
||||
define(ICONS_DIR, "icons");
|
||||
define(ICONS_URL, "icons");
|
||||
|
||||
define(PURGE_OLD_DAYS, 30);
|
||||
// Articles older than this number of days will be deleted automatically
|
||||
|
||||
define(UPDATE_POST_ON_CHECKSUM_CHANGE, true);
|
||||
|
||||
define(ENABLE_PREFS_CATCHUP_UNCATCHUP, false);
|
||||
// enable "Mark as read/unread" buttons in preferences dialog
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -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'");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue