Commit Graph

587 Commits

Author SHA1 Message Date
Retro_Guy c7cb347215 Cleanup blocking by . 2024-07-05 11:35:17 -07:00
Retro_Guy e5f23dd63f Try to avoid listing threads multiple times in thread view. 2024-07-05 06:31:17 -07:00
Retro_Guy faf883423e Change some variable names in newsportal.php to make sense. 2024-07-05 06:30:53 -07:00
Retro_Guy b5bdb0f1ab Add toggle to sort body search results by date or relevance. 2024-07-04 01:52:05 -07:00
Retro_Guy 8152a49a40 Isolate ip address in abuse.log. 2024-07-03 02:26:07 -07:00
Retro_Guy 8724e66c51 Try to standardize some logging output. Move article retrieve errors from newsportal.log to debug.log. 2024-07-03 00:16:36 -07:00
Retro_Guy 8f7692c1af Don't add articles to cache immediately when spooling or posting. 2024-07-02 14:08:17 -07:00
Retro_Guy 7cd9e58b4c Add 'change password' to account manager features. 2024-07-01 23:50:31 -07:00
Retro_Guy ee0253d919 Try to fix spaces in quotes (> >>) that some newsreaders add. 2024-06-30 08:22:25 -07:00
Retro_Guy 7952b6a00b Remove extra blank line from end of quote. 2024-06-30 00:53:56 -07:00
Retro_Guy a0bed95f5e Standardize logging of useragent and rdns blocklist logging in abuse.log. 2024-06-27 09:19:03 -07:00
Retro_Guy 804dee4e46 Improve conversion of search snippets to html in overboard.php. 2024-06-26 00:05:49 -07:00
Retro_Guy 8f4c7c9978 Remove extra blank lines at end of article when using Quote. 2024-06-25 23:26:32 -07:00
Retro_Guy 3bb2f3beb8 Add ability to filter connections by reverse dns string. 2024-06-25 04:44:51 -07:00
Retro_Guy f66db66487 Fix extra line in linewrap. 2024-06-24 13:57:51 -07:00
Retro_Guy 8fb54771ef Apply text rewrite if enabled to overboard.php. 2024-06-20 03:41:36 -07:00
Retro_Guy cc1c41f107 Add msgid and posting-user hash to post.log if enabled. 2024-06-19 02:28:28 -07:00
Retro_Guy df094abeb3 log subject in post.log since we don't yet have msgid. 2024-06-18 04:02:05 -07:00
Retro_Guy 598ba842b3 Serialize data for get_data_from_msgid cache. 2024-06-18 03:44:07 -07:00
Retro_Guy 7390e2a9bc Add cache handling to maintenance.php and eclipse keeps changing formatting in newsportal.php. 2024-06-11 03:22:21 -07:00
Retro_Guy c4a53acbc1 Continue debugging disk caching. 2024-06-07 07:39:33 -07:00
Retro_Guy f76e46cfb1 Move memcached handling to functions in preparation for adding disk caching in another function. 2024-06-07 06:33:00 -07:00
Retro_Guy 87e061abe4 Use instead of for article.db3 cache. 2024-06-07 06:13:00 -07:00
Retro_Guy 6dd5f46960 Preliminary addition of disk caching. 2024-06-07 05:43:52 -07:00
Retro_Guy 6e7b8b4057 Move memcached handling to functions in preparation for adding disk caching. 2024-06-07 04:13:23 -07:00
Retro_Guy 98db866a06 Standardize cache logging to 'cache.log'. 2024-06-06 05:50:03 -07:00
Retro_Guy 662dc7e0fe Clean up SESSION['pass'] to use true/false only. 2024-06-05 04:32:38 -07:00
Retro_Guy 3ff76df4fe Standarize some variables and address some php warnings. 2024-06-05 04:05:17 -07:00
Retro_Guy f8ec3d9ca6 Change display of no-archive msg to match style of blocked by blocklist msg. 2024-06-04 05:34:33 -07:00
Retro_Guy 2affbfc298 Compress data for memcache. 2024-06-04 04:18:19 -07:00
Retro_Guy c2cc9657f9 Add memcache to (newsportal's) message_read. 2024-06-04 03:31:37 -07:00
Retro_Guy 057fca590a Avoid creating thread dbs for groups that do not exist. 2024-06-02 08:04:07 -07:00
Retro_Guy 7622cc4e3c Fix bug in nocem that caused section to not be found (so no delete). 2024-06-01 04:27:51 -07:00
Retro_Guy 11ccd228c6 Clean up logging of refusing articles with dates in the future. 2024-05-30 11:44:14 -07:00
Retro_Guy 1ea1ed2132 Remove duplicate check of incoming article date. 2024-05-30 05:42:07 -07:00
Retro_Guy cb9102d0d3 Previous commit used an old cached copy of newsportal.php (thanks eclipse). This fixes that. 2024-05-29 05:35:46 -07:00
Retro_Guy 2ffdf5c4d2 Improve creating clickable links from urls in article. 2024-05-29 04:52:54 -07:00
Retro_Guy e6627d448b Limit overboard threads view to maxdisplay. 2024-05-27 05:58:23 -07:00
Retro_Guy 21dea6d9a7 Notify if trying to post to non-existent followup-to group. 2024-05-27 02:04:11 -07:00
Retro_Guy 5102749487 Fix bug recently introduced in deleting an article (used by nocem). 2024-05-24 06:28:17 -07:00
Retro_Guy 0f23b44ef0 Handle X-Face: header properly when a user creates an x-face of just spaces (Don't add the header). 2024-05-22 05:33:03 -07:00
Retro_Guy 6108dcefba Line wrap article before preparing for quoting. 2024-05-22 05:09:05 -07:00
Retro_Guy 775a39ab7b Allow incoming article to be up to 2 minutes in the future, no more. 2024-05-22 04:33:47 -07:00
Retro_Guy 0dac917320 Some cleanup for spoolnews, and add some more logging for debug purposes. 2024-05-22 04:20:16 -07:00
Retro_Guy e720f3729c Add feature to block clients by content of user agent string. 2024-05-21 05:39:45 -07:00
Retro_Guy 97c864d4de At least remove one of the three requests for an article from cache. 2024-05-20 05:22:24 -07:00
Retro_Guy b7badacd3f Standardize wording in memcache logging. 2024-05-20 04:15:15 -07:00
Retro_Guy 95f1b1c149 Avoid retrieving articles multiple times for display_full_headers. 2024-05-20 03:59:30 -07:00
Retro_Guy 9cf227363f Add prefix to memcache key names to allow for multiple rslight instances. 2024-05-20 03:01:44 -07:00
Retro_Guy 448275cdd8 Handle special chars in link for message id search. 2024-05-19 00:45:39 -07:00
Retro_Guy 4136c62bfd Wrap the text in quotes, but do not count the depth. 2024-05-18 13:20:44 -07:00
Retro_Guy 6b9eb7da18 Add function to wrap lines when posting. 2024-05-18 12:10:14 -07:00
Retro_Guy 768c95b0ee Add overrides option to specifiy rate limit for self identified bots. 2024-05-18 04:10:52 -07:00
Retro_Guy 453f025629 Skip polling lastarticleinfo for groups not to be shown. 2024-05-15 04:53:47 -07:00
Retro_Guy 702843d599 Add option to set maxitemsize in memcache.inc.php. 2024-05-14 06:41:07 -07:00
Retro_Guy a5fb9e5db6 Add new articles to memcache immediately. 2024-05-14 03:56:18 -07:00
Retro_Guy 76324850a9 Cleanup article.php to match article-flat.php where reading message-id from url. 2024-05-14 03:06:03 -07:00
Retro_Guy d540ccd0ca Check thread cache size before writing to memcache. 2024-05-13 16:35:58 -07:00
Retro_Guy ee782e3a63 Prefer articles db over overview db in groups_show. 2024-05-13 15:44:48 -07:00
Retro_Guy aca70518ad Cleanup article-flat.php when article is requested by message-id. 2024-05-13 15:20:15 -07:00
Retro_Guy e993aed1f0 Compress thread array data for memcache and log size in bytes when writing. 2024-05-13 04:52:59 -07:00
Retro_Guy 95b8fc2baf Minor fix to overboard to not display max + 1 articles, just max articles. 2024-05-13 04:52:28 -07:00
Retro_Guy 94c7af9d8d Fix halting overboard at oldest article in flat display. 2024-05-13 02:18:26 -07:00
Retro_Guy 611a0279d9 Use memcache for get_newsgroups_by_msgid. 2024-05-13 02:16:25 -07:00
Retro_Guy 9825d0d43d Fix retrieving article twice in overboard flat view. 2024-05-12 16:17:25 -07:00
Retro_Guy 7189381f46 Apply in overboard flat view. 2024-05-12 04:10:54 -07:00
Retro_Guy 6e91cb4807 Unset lastarticleinfo before each group display to avoid left over data from previous group. 2024-05-11 05:29:15 -07:00
Retro_Guy bf723a3c0e Remove echoed comment for debugging in overboard.php. 2024-05-11 04:50:03 -07:00
Retro_Guy 4578fa6933 Allow maintenance.php to create temp .db3 files. 2024-05-11 02:56:21 -07:00
Retro_Guy 6d19400b96 More work on thread_cache in memcache. 2024-05-10 08:08:41 -07:00
Retro_Guy 571e5eaabd Stop updating lastupdate when posting. Cleanup more logging for memcache. 2024-05-10 05:02:45 -07:00
Retro_Guy c5e72c94a8 Try to make more obvious when thread has multiple pages. 2024-05-10 04:29:41 -07:00
Retro_Guy 6c20453fa8 Fix handling redirects to other section when section names contains + 2024-05-10 04:15:55 -07:00
Retro_Guy b0b1ba8b69 More memcache cleanup and add threads to memcache. 2024-05-10 03:24:13 -07:00
Retro_Guy ea5a32cb1e Memcache for groups page plus some more cleanup. 2024-05-09 06:22:53 -07:00
Retro_Guy de02cb4f8b Delete article from memcache when deleted by nocem. 2024-05-09 03:01:42 -07:00
Retro_Guy 85a035beb5 Add memcache to get_data_from_msgid function. 2024-05-09 02:02:28 -07:00
Retro_Guy 12a3ca5009 Move memcache settings to config file. 2024-05-08 14:01:21 -07:00
Retro_Guy f97fcc59d2 Some debugging on memcache support. 2024-05-08 13:21:20 -07:00
Retro_Guy f38cc9ce0b Get lastarticleinfo in groups page from article db instead of overview db. 2024-05-08 08:53:19 -07:00
Retro_Guy 7f20ff373c Don't log memcache hits by default. 2024-05-08 08:22:59 -07:00
Retro_Guy 4864955e94 Add memcache support (starting with np_get_db_article) 2024-05-08 08:00:16 -07:00
Retro_Guy c97f2865eb Add override option to disable adding X-Rslight-* headers to posts. 2024-05-08 01:59:27 -07:00
Retro_Guy 256dfcb07d Fix bug where empty string identified as false in overboard.php. 2024-05-07 04:46:29 -07:00
Retro_Guy 187e1b917b Add show/hide toggle on section group display page. 2024-05-07 04:45:38 -07:00
Retro_Guy dfbee69ee8 Temporarily disable wordwrap when posting, as it causes another issue. 2024-05-05 10:21:25 -07:00
Retro_Guy 1fe668449d Simply add a comment in overboard.php. 2024-05-05 10:21:00 -07:00
Retro_Guy 116d47a29f Add external ability to modify display of a post (bad idea, don't do it) 2024-05-05 10:20:28 -07:00
Retro_Guy 50b156d3b7 Fix link for newsgroup in overboard articles view. 2024-05-04 02:29:15 -07:00
Retro_Guy c6573eec19 Restrict user's overboard to current section more strictly. 2024-05-03 03:36:34 -07:00
Retro_Guy 168011042e Strip html tags from overboard threaded output. 2024-05-03 00:49:04 -07:00
Retro_Guy bbdf946dca Some bug cleanup in overboard and creating .db3 files. 2024-05-02 05:45:29 -07:00
Retro_Guy 087e26ca6a Apply wordrap in post to hopefully work properly with multibyte characters. 2024-05-02 04:22:16 -07:00
Retro_Guy beae111da8 Wrap lines to 75 char in post.php. 2024-05-02 03:27:03 -07:00
Retro_Guy 2612ebe5e9 Verify group exists before creating .db3 file for articles. 2024-05-02 03:08:48 -07:00
Retro_Guy 5bb446597b Remove 'new articles' button from groups list until more testing is done. 2024-05-02 02:28:52 -07:00
Retro_Guy 0dbafa27fa Add logging for db3 write errors in spoolnews.php. 2024-05-02 02:07:10 -07:00
Retro_Guy 132ef97191 Add random trailing decimal to article times to avoid overlap in overboard. 2024-05-01 04:29:18 -07:00
Retro_Guy 7efc2bd61e Check theme image dir for new-articles.png befure using default location. 2024-04-30 04:38:54 -07:00
Retro_Guy 9495538f86 Add green button to 'Latest' link in groups list for logged in users. 2024-04-30 04:31:50 -07:00
Retro_Guy 61e1fedfc7 Move checking user's subscription array to a function in overboard.php. 2024-04-30 03:42:10 -07:00
Retro_Guy 6f62f72a1b Add overrides option to set User-Agent header. 2024-04-29 08:05:41 -07:00
Retro_Guy c7f51fdb57 Try even harder to decide whether to display snippet in head article in overboard. 2024-04-29 07:20:57 -07:00
Retro_Guy 0fad3deec3 Try harder to determine whether to show snippet in top article in overboard. 2024-04-29 04:11:23 -07:00
Retro_Guy 3c22f952df Add 'mark read' link to group list page. 2024-04-29 01:59:48 -07:00
Retro_Guy bb486431b0 Cleanup for overboard threads mod. 2024-04-28 03:05:02 -07:00
Retro_Guy 3c6fe6a341 Add more features from overboard thread view to articles view. 2024-04-26 07:03:51 -07:00
Retro_Guy 62486e4c9a Add blocklist support to overboard. 2024-04-26 06:04:58 -07:00
Retro_Guy 0c6129af53 Add spacing and move poster name in overboard thread view. 2024-04-26 05:14:29 -07:00
Retro_Guy 55e5c37067 Add Thread view to overboard. Probably still has bugs. 2024-04-26 04:48:28 -07:00
Retro_Guy 9871867104 Fix bug related to missing overrides.inc.php and also fix display of stream info on post page when using ssl. 2024-04-18 03:33:36 -07:00
Retro_Guy 78de57a360 Build (un)moderated files data during daily expire. Future need to automatically update changes to moderation flags. 2024-04-17 04:39:20 -07:00
Retro_Guy 2508c5e56f Add handling for moderated newsgroups. 2024-04-16 07:19:03 -07:00
Retro_Guy e5ff52f299 Add ability to disable adding attachments by section in overrides.inc.php. 2024-04-15 03:47:44 -07:00
Retro_Guy 886c68b764 Add note about cached pages when blocking a poster. 2024-04-15 03:11:00 -07:00
Retro_Guy e6a3cbf774 Try to display base64 data properly in overboard. 2024-04-14 05:17:33 -07:00
Retro_Guy c7e05a3f9d Add note to refresh pages after user block if necessary. 2024-04-14 03:40:41 -07:00
Retro_Guy d52936c9d9 Add banned_users.conf file to ban local users, and add some auth logging. 2024-04-12 07:53:43 -07:00
Retro_Guy 1728a22754 Restrict Message-ID search to section or group when using Search button (not form in header). 2024-04-10 07:07:58 -07:00
Retro_Guy fb84bef830 Fix missing space in short headers for local posters. 2024-04-05 08:16:52 -07:00
Retro_Guy 2f448e6e00 Add user blocking in message display (article-flat.php). 2024-04-05 05:41:44 -07:00
Retro_Guy 6b99f5ca47 Check that imagecreatefromxbm() function exists before trying to display xface. 2024-04-03 07:44:58 -07:00
Retro_Guy 79e09c4f8b Allow to disable x-face in overrides.inc.php. 2024-04-02 12:28:26 -07:00
Retro_Guy 5aef1c12a9 Sort article dates as int when presenting last article date in section display. 2024-03-31 11:14:43 -07:00
Retro_Guy 283e33c40e Fix search bug that would search section instead of group for header searches. 2024-03-23 05:22:05 -07:00
Retro_Guy b88b3ed437 Recognize $ in links. 2024-03-20 08:18:22 -07:00
Retro_Guy 41ed0a7df9 Add copy_link to article header 2024-03-20 08:14:31 -07:00
Retro_Guy 50bd662e99 Clean up some php warnings. 2024-03-17 11:22:00 -07:00
Retro_Guy ffb899d6e0 Fix overboard.php cache file version checking. 2024-03-12 08:16:54 -07:00
Retro_Guy 84efd8cc0c Handle multibyte x-face header properly. 2024-03-10 04:49:47 -07:00
Retro_Guy 149abb70b8 Cleanup overboard.php reducing resource usage. 2024-03-10 04:48:57 -07:00
Retro_Guy 860dfa61ca Add and sort by section in grouplist.php. Also update cache from cron.php so no user must wait. 2024-03-08 10:27:35 -07:00
Retro_Guy b96ace8584 Constrain overboard for section when logged in to only subscribed groups. 2024-03-05 05:53:11 -07:00
Retro_Guy 04492ff0d2 Remove checkbox to remove username cookie in post.php. 2024-03-04 16:25:42 -07:00
Retro_Guy fd5285ba88 Continue with feature to hide unsubscribed groups. Add default and also option in overrides.inc.php. 2024-03-04 09:47:34 -07:00
Retro_Guy 09d69ab2de Fix bug (hopefully) where deleting all subs did not allow new subs to be added. 2024-03-03 13:55:26 -07:00
Retro_Guy 5ec9cf5501 Add modified user's display name to aliases.conf. 2024-03-02 10:54:28 -07:00
Retro_Guy bc2b20cf17 Set cache for attachments back after last commit doing some cleanup. 2024-03-01 20:08:54 -07:00
Retro_Guy fd5ce4f804 Some code cleanup, including fixing attachments display. 2024-03-01 20:03:16 -07:00
Retro_Guy ce0a7361a5 Move script in message.inc.php to avoid loading by other scripts. 2024-03-01 17:49:05 -07:00
Retro_Guy d600e9376f Check article header integrity in spoolnews.php before spooling. 2024-03-01 13:08:21 -07:00
Retro_Guy 0803522a6d Fix return from posting one bug at a time, apparently. Fixing link to group after posting. 2024-02-29 16:34:24 -07:00
Retro_Guy 1cb7f1068f Give user option to reply to Followup-To or original groups. 2024-02-29 11:37:59 -07:00
Retro_Guy ac845dfed3 Continue cleaning up 'copy mid' link in article header. 2024-02-28 18:51:45 -07:00
Retro_Guy fea67ee0e2 Add link to copy message-id to clipboard. Requires javascript. 2024-02-27 15:31:38 -07:00
Retro_Guy c05b4ab308 Add Message-ID search bar to header. 2024-02-26 06:02:08 -07:00
Retro_Guy 1cc18961d9 Fix issue where a group in Newsgroups header exists in spoolnews/groups.txt. 2024-02-24 20:33:14 -07:00
Retro_Guy 6ff39dcca3 Fix post.php to know where to return after replying to a crossposted message. 2024-02-24 18:57:10 -07:00
Retro_Guy 1e001e7f35 Add config option in rslight.inc.php to separate email_tail from message-id generation. 2024-02-22 17:40:44 -07:00
Retro_Guy b0a90c953d Do not allow custom email address to match another user's email address. 2024-02-20 07:58:13 -07:00