Commit Graph

386 Commits

Author SHA1 Message Date
Retro_Guy c9fafb0f97 Create gpg keys for server and make available by link. 2023-07-26 12:33:13 -07:00
Retro_Guy c355c0e59a Create gpg key for server and move some gpg settings to gpg.conf. 2023-07-24 10:33:13 -07:00
Retro_Guy f54bfb656a Fix hard-coded dir for 'banned_names.conf'. 2023-07-17 11:08:14 -07:00
Retro_Guy 3fdae1cf95 Save attachment temp files to /tmp, not 'upload' to avoid breaking display when using files.php. 2023-07-17 10:01:05 -07:00
Retro_Guy 2937368252 Remove debug line in post.inc.php and move User-Agent out of 'if' statement. 2023-07-17 06:42:25 -07:00
Retro_Guy bef40acbb6 Cleanup warning in message.inc.php. 2023-07-16 11:36:06 -07:00
Retro_Guy af2f9a65a2 Combine message_post functions in post.inc.php. 2023-07-16 11:32:33 -07:00
Retro_Guy 0ca7c4bbb9 Fix misspelling of PDOException in newsportal.php. 2023-07-13 10:20:58 -07:00
Retro_Guy b745359929 include newsportal.php in cron.php. Check before closing in newsportal.php. 2023-07-12 08:01:52 -07:00
Retro_Guy 1d6042796d Cleanup undefined vars in search.php. 2023-07-10 13:38:45 -07:00
Retro_Guy ef0e873844 Clean up locations for ssl keys and remove unused config.inc.php from scripts dir. 2023-07-09 12:01:34 -07:00
vga256 72b83b55e5 search.php: - prevent script crash when usort() is performed on an empty database result, when using full-body search 2023-07-07 13:09:12 -07:00
vga256 18559b6299 * newsportal.php: nntp_open() now checks if the NNTP server is offline before trying to send commands. It bails out with an error if it cannot connection
* english.lang: cleaned up error messages and added more
2023-07-07 13:08:32 -07:00
vga256 e9a33a1418 * Renamed auth.inc to auth.inc.php. It is a general purpose authentication module that can be used anywhere. Successful authorization sets $logged_in = true 2023-07-07 13:06:37 -07:00
vga256 4b626a3cc9 * oops. Removing debugging information I left behind! 2023-07-07 13:02:06 -07:00
vga256 1d229d5ad1 * newsportal.php now allows a force reload of groups.txt, by suppling (force_reload=true) as the third parameter to groups_read();
* spoolnews.php now forces a reload of groups.txt whenever it runs (regardless of caching) and also checks to see if a remote server has been defined before it tries to contact one.
2023-07-07 13:00:16 -07:00
vga256 09a1eb340d * replaced german variable name with english equivalent 2023-07-07 12:56:51 -07:00
vga256 8e1fe5de65 * newsportal.php: added clarification of NNTP response 2023-07-07 12:52:37 -07:00
Retro_Guy 13c5bb1551 Trim whitespace from username to avoid bypassing rate limits. 2023-06-25 09:15:56 -07:00
Retro_Guy b0bac6f428 Some warnings cleanup in overboard.php. 2023-06-03 11:42:49 -07:00
Retro_Guy 75d000d89b Enable thread view to display last user for tradspool installs. 2023-06-03 09:51:11 -07:00
Retro_Guy bf7c76f360 Multibyte is making me multimad. 2023-06-01 13:44:14 -07:00
Retro_Guy b0f67ee17d Add logo to footer. 2023-05-29 10:08:32 -07:00
Retro_Guy 95d61c0321 Verify group in overboard.php. 2023-05-29 08:38:27 -07:00
Retro_Guy 4e90577cfa Speed up duplicate checking in spoolnews.php. More accurate dates in main groups list. 2023-05-28 06:39:52 -07:00
Retro_Guy 73fd167566 Fix tzo cookie issue and loosen throttle to start at 50. 2023-05-26 16:57:15 -07:00
Retro_Guy 9c74202a20 Fix multibyte name in groups_show. 2023-05-15 12:26:39 -07:00
Retro_Guy 31047dfbf1 Fix bug in Show Headers. 2023-05-15 03:54:49 -07:00
Retro_Guy 705cd2307f More minor code cleanup. 2023-05-14 19:41:08 -07:00
Retro_Guy 798eadcebb Clean up some warnings. 2023-05-14 11:37:10 -07:00
Retro_Guy fcde930e54 Some fixes for local only groups and one for mail check. 2023-05-12 14:02:39 -07:00
Retro_Guy a6ee49ab05 Fix for uploading attachments. 2023-05-07 16:04:05 -07:00
Retro_Guy aa36a6c3da Fix head.inc to not overwrite title. 2023-05-03 11:42:32 -07:00
Retro_Guy 9b26a9efee Fix line in post.inc.php that caused an issue with x-face usage. 2023-05-02 23:49:35 -07:00
Retro_Guy 05bce02b19 Modified newsportal cuz I'm an idiot. 2023-05-02 13:57:48 -07:00
Retro_Guy 653be9a31e Set as array, not stdClass 2023-05-02 10:42:03 -07:00
Retro_Guy f95828bb8c Cleanup lastarticleinfo 2023-05-01 20:03:57 -07:00
Retro_Guy 714e78bfb4 More fixes for php8 plus improved import-db3.php 2023-04-27 20:34:51 -07:00
Retro_Guy 6a34c54437 More minor fixes for php8 2023-04-22 11:29:58 -07:00
Retro_Guy 7db2a31bc9 More fixes for php8.2 2023-04-16 21:48:38 -07:00
Retro_Guy 0683f8ddd0 First mods for php8.2. 2023-04-13 18:52:30 -07:00
Retro_Guy b53c6891aa Avoid iconv deleting entire line for unknow char. Just delete character instead. 2023-01-02 21:56:37 +00:00
Retro_Guy 889b5f2bed Remove leading/trailing whitespace from poster name when posting. 2022-12-23 06:03:46 +00:00
Retro_Guy 40f0ae8ac3 Add 'global ' to overboard.php to display link in footer. 2022-12-19 03:24:11 +00:00
Retro_Guy 0617c7cef2 Cleanup pubkey.(pem/txt) 2022-12-15 06:19:27 +00:00
Retro_Guy 5d3febd4bb Make public key available from site. 2022-12-12 00:22:51 +00:00
Retro_Guy 6bf60708cb Move ssl dir out of spool and write public key to file. 2022-12-11 21:51:56 +00:00
Retro_Guy 96aab09612 Change tor git link to tor v3 2022-11-26 02:37:19 +00:00
Retro_Guy 2d5c4d40b7 Move version number to config.inc.php in /common, and include in overboard.php 2022-11-22 07:02:33 +00:00
Retro_Guy ca0a7053fa Specify rslight version in config.inc.php 2022-11-21 20:10:08 +00:00
Retro_Guy a75ab5f8b1 More cleanup to maintain group navigation 2022-07-25 02:24:08 +01:00
Retro_Guy eca222151d Extract individual groups for posting when replying to crossposted article 2022-07-24 21:33:45 +01:00
Retro_Guy 9215202c01 Improve locating section when accessing a group 2022-06-26 21:35:51 +01:00
Retro_Guy 21a98d9724 Temp fix in cron.php for new installs and cleanup in post.php 2022-05-16 07:01:53 +01:00
Retro_Guy e5390bcdd5 Log newsgroup:number instead of messageid in overboard.php 2022-04-17 05:47:48 +00:00
Retro_Guy 5857063848 Clean up overboard to avoid waste of resources 2022-04-10 04:30:34 +00:00
Retro_Guy 8a03cbfbf6 Avoid creating unneccesary databases. 2022-03-16 06:54:34 +00:00
Retro_Guy 9aec568360 Add domain to X-Rslight-Posting-User 2022-03-12 02:45:48 +00:00
Retro_Guy 72da0c7fae Try to improve checking from line in user link search 2022-03-04 10:51:41 +00:00
Retro_Guy 1fac7da654 Trim Poster search to avoid partial email matches 2022-03-04 09:22:20 +00:00
Retro_Guy 4bee83df61 Don't use search term length when 'data' is present 2022-02-25 06:08:27 +00:00
Retro_Guy 52568dfe56 Check length of search request before searching db 2022-02-25 05:38:21 +00:00
Retro_Guy ad4e54c64b Decode 'From: ' line when displaying results in search.php 2022-02-25 05:33:14 +00:00
Retro_Guy e2598ca9d4 Create link to search name if there is 'data' sent in request 2022-02-25 05:24:57 +00:00
Retro_Guy 6c64fd5afd Fix searching user by link in search.php 2022-02-25 05:14:20 +00:00
Retro_Guy 5f8aa0c785 Ignore empty REQUEST in search.php 2022-02-24 05:58:21 +00:00
Retro_Guy 8141c8221e Search by email address when clicking username for search 2022-02-21 04:15:38 +00:00
Retro_Guy 9f6572e1be Remove max articles limit when first adding a group but leave config options to do so 2022-02-14 08:27:58 +00:00
Retro_Guy dd36c0e3d3 Change data logged to access.log 2022-02-09 05:51:20 +00:00
Retro_Guy d28ba18c47 Add unsubscribe link to subscribed groups 2022-02-03 05:21:01 +00:00
Retro_Guy e7f232d7ac Move (new) in overboard for subscribed groups 2022-02-02 02:43:56 +00:00
Retro_Guy 3fc0407269 Some cleanup in overboard.php for displaying only new articles when subscribed 2022-01-28 04:17:01 +00:00
Retro_Guy bb82443224 Add X-Rslight-Posting-User to outgoing messages 2022-01-26 08:00:34 +00:00
Retro_Guy 6c4b8a07e1 Remove typo in overboard.php 2022-01-26 07:08:03 +00:00
Retro_Guy 27bdf4a60c Only show new messages when clicking 'new' for subscribed users 2022-01-26 02:01:59 +00:00
Retro_Guy c3825c2bd6 Fix checking for 'userdata' when handling subscriptions 2022-01-20 08:00:49 +00:00
Retro_Guy a46dbced75 Verify key each time for subscriptions 2022-01-20 04:05:06 +00:00
Retro_Guy 0d057763b9 Add overboard.php link to 'new' in groups list 2022-01-16 00:31:29 +00:00
Retro_Guy 7410bbdb2e Add key in cookies to verify non-logged in user 2022-01-12 23:44:35 +00:00
Retro_Guy 74f7f09fb1 Add 'subscribe' feature for groups, and config to manage 2022-01-11 23:19:54 +00:00
Retro_Guy d5869313b2 Remove unnecessary 'Pages' listing in article.php 2022-01-08 01:33:16 +00:00
Retro_Guy 08f4e08110 Bring page style in article.php up to date to match article-flat.php 2022-01-08 01:23:04 +00:00
Retro_Guy 9ac3731d60 Encode group name in URL for (thread) links in overboard.php 2022-01-05 03:38:48 +00:00
Retro_Guy 5556a4e40b Use lastarticleinfo to find first article in group for thread display in overboard 2022-01-03 22:01:42 +00:00
Retro_Guy c4039ced4c Check newsgroup before writing 'thread' link in overboard 2022-01-01 07:04:32 +00:00
Retro_Guy 70cf8173ae Add (thread) link to overboard results 2021-12-31 09:41:53 +00:00
Retro_Guy 1816a5dca9 Prune overboard.dat files to only save what will be displayed 2021-12-26 03:31:44 +00:00
Retro_Guy 4d927dcdc4 Integrate nocem into overboard so deleted articles are removed immediately from recent message lists 2021-12-23 03:30:59 +00:00
Retro_Guy 7436e723c2 Reduce load in overboard.php by appending cache file instead of replacing it when expired 2021-12-22 05:57:12 +00:00
Retro_Guy 14c7aaa9dc Avoid display of articles with out of bounds dates in overboard 2021-12-19 04:25:53 +00:00
Retro_Guy 1d4c0ceda9 Correct searchpoint value for message-id in search and search msig across entire site 2021-12-18 22:30:47 +00:00
Retro_Guy f56337b39a Ignore newsgroup when loading by message-id 2021-12-18 22:01:11 +00:00
Retro_Guy 64802562f5 Handle np errors in lastarticleinfo.dat by checking overview db if necessary 2021-12-17 06:15:06 +00:00
Retro_Guy a96819261f Check that database exists before using for last article info 2021-12-16 03:08:22 +00:00
Retro_Guy e8ab8d2ba2 Display local users names italicized in overboard.php 2021-12-16 02:21:43 +00:00
Retro_Guy db7c851891 Add RSS pull and post feature 2021-12-02 04:02:31 +00:00
Retro_Guy 6609288a2b Add comment to INSTALL.md and change version in tail.inc 2021-11-21 03:09:21 +00:00
Retro_Guy a420644129 Verify database exists before trying to open it in search.php 2021-11-17 06:34:52 +00:00
Retro_Guy 20c8789ce8 Move standard images to theme dir, or default to common/images 2021-11-14 05:00:48 +00:00
Retro_Guy 82f4bdf4f0 Add theme support and config option for same 2021-11-09 21:05:46 +00:00
Retro_Guy 4fabc09dca Delete temp files properly when X-Face does not produce an image 2021-10-31 05:40:31 +00:00
Retro_Guy dbf2f4e63d Check if db exists before using for search 2021-10-30 09:14:13 +00:00
Retro_Guy ea7476dd66 Add an additional space before any signature 2021-10-30 05:19:09 +00:00
Retro_Guy 2197f3da85 Cache xface images based on hash of X-Face instead of mid 2021-10-30 05:00:31 +00:00
Retro_Guy 4d728ed6f7 Handle checking for user config file more accurately 2021-10-26 06:26:18 +00:00
Retro_Guy 20a60fa4a3 Add X-Face and signature support for outgoing messages 2021-10-26 05:06:37 +00:00
Retro_Guy 811fa4de98 Add X-Face support (display) 2021-10-19 21:09:59 +00:00
Retro_Guy 5332bbbdb9 Handle attachments with spaces, etc. in file name 2021-09-27 05:08:41 +00:00
Retro_Guy 2d63ae75ae Avoid creating false database when querying article 2021-09-18 05:48:43 +00:00
Retro_Guy ac8dbb48c9 Prevent GET requests for some vars in post.php 2021-09-16 06:25:39 +00:00
Retro_Guy fb7a7d6f4c Improve link highlight for links in messages if bbcode 2021-08-14 08:10:15 +00:00
Retro_Guy 74f3307f26 (hopefully) improve bbcode links in messages 2021-08-07 07:48:08 +00:00
Retro_Guy 000a523529 Find article by msgid from overview instead of group db 2021-08-03 06:49:16 +00:00
Retro_Guy 8bfcf9fbb3 Allow graceful fail if message does not exist when access by message-id. Improve this in the future 2021-08-01 11:40:23 +00:00
Retro_Guy 81c083596d Allow article-flat.php to find article by message-id in url 2021-08-01 11:23:35 +00:00
Retro_Guy cd2da9952a Fix hardcoded logfile path in article-flat.php 2021-07-23 09:32:52 +00:00
Retro_Guy 8476af159f Avoid counting throttled sessions 2021-07-04 09:59:47 +00:00
Retro_Guy aa571ec45f Move lock files to /lock to allow multiple instances 2021-07-03 02:08:34 +00:00
Retro_Guy e1ff96926a Move session_start in overboard.php else warning in bsd 2021-06-22 06:56:13 +00:00
Retro_Guy f3a24b6c96 Clean up version id in some scripts 2021-06-22 06:10:21 +00:00
Retro_Guy 46e7e25d62 Change posting name cookie path to / 2021-06-22 06:00:40 +00:00
Retro_Guy afb72007fb Set tzo cookie only in header.php 2021-06-21 09:15:32 +00:00
Retro_Guy 4d61a4d967 Highlight MAIL link if new mail. Change cookie path to / . Move some scripts to spoolnews/ 2021-06-21 09:04:13 +00:00
Retro_Guy 4766775a64 Move rate throttling to function in newsportal.php 2021-06-18 10:10:34 +00:00
Retro_Guy 58090b0120 Trim comma from url links 2021-06-17 07:06:01 +00:00
Retro_Guy 1f31a3c809 Minor changes to article-flat.php 2021-06-17 07:00:12 +00:00
Retro_Guy 3cbdc0d875 Cleanup creating links and add protocols 2021-06-16 09:04:22 +00:00
Retro_Guy 50993b3ab7 Remove possible (.) from end of url link 2021-06-15 07:42:23 +00:00
Retro_Guy 59a21be4a0 Fix newsportal code to create clickable links 2021-06-15 07:31:41 +00:00
Retro_Guy 5288a72716 Add delete feature to mail.php 2021-06-14 07:25:44 +00:00
Retro_Guy bba0ed7fac Highlight read/unread messages in mail 2021-06-12 07:42:44 +00:00
Retro_Guy 0531055378 Change mail auth cookie name to mail_auth 2021-06-11 08:03:24 +00:00
Retro_Guy 662046f50f Authenticate email login using changing keys 2021-06-11 07:50:54 +00:00
Retro_Guy 44c32c218c Separate mail username from posting username 2021-06-10 06:47:57 +00:00
Retro_Guy 493f548e05 Add expire setting to auth cookie 2021-06-10 06:27:15 +00:00
Retro_Guy 4beccff539 Keep mail logged in. TESTING 2021-06-10 02:41:51 +00:00
Retro_Guy 3b5d7852c8 Clean up file section interface a bit 2021-06-09 06:56:22 +00:00
Retro_Guy bbafaccb54 Cleanup uploaded file names for db 2021-06-08 05:30:09 +00:00
Retro_Guy ad98fcb1fa Change User-Agent address to www instead of news 2021-06-08 00:01:00 +00:00
Retro_Guy 164b395f53 Add optional google analytics support 2021-06-07 03:28:55 +00:00
Retro_Guy 7830e5abd0 Fix display of mb usernames in group list page 2021-06-04 23:57:09 +00:00
Retro_Guy 4096ff8d18 Verify logged in user before displaying a message in mail.php 2021-06-04 03:25:31 +00:00
Retro_Guy e042c25c00 Add private messaging in mail.php. NOT COMPLETE 2021-06-03 05:25:59 +00:00
Retro_Guy c0579b1639 Minor layout change to upload.php 2021-06-01 05:26:42 +00:00
Retro_Guy c6a4dfb0a8 Add logging to files feature 2021-06-01 00:09:52 +00:00
Retro_Guy d94ea073ed Convert special characters to HTML entities in overboard.php 2021-05-28 05:42:08 +00:00
Retro_Guy cd883734fa Escape % from header searches 2021-05-26 01:37:37 +00:00
Retro_Guy 2f2a45b967 Only check last for each group in overboard.php 2021-05-22 17:09:45 -07:00
Retro_Guy e96d74f6be Minor change to key in upload.php 2021-05-16 00:51:51 -07:00
Retro_Guy 483951d74c Use sitekey for input verification instead of admin key 2021-05-15 01:51:39 -07:00
Retro_Guy db4b2b4e89 Add file upload/download features 2021-05-13 02:24:54 -07:00
Retro_Guy d834f7757d Change load rate for throttling a user/spider if necessary 2021-05-03 03:00:40 -07:00
Retro_Guy 1dda180752 Add number of users online display 2021-05-03 02:11:37 -07:00
Retro_Guy d12f36e1dd Display number of users in thread.php 2021-04-29 16:16:32 -07:00
Retro_Guy f90fcbded2 Include Anonymous when enforcing posting rate limit 2021-04-17 10:31:01 -07:00
Retro_Guy 3b21c05889 Change link on page after posting to return to previous location 2021-04-16 18:23:13 -07:00
Retro_Guy 5c7c5e2396 Use config option email_tail to define msgid domain 2021-04-15 12:25:23 -07:00
Retro_Guy 5932d4a9c6 Pull name from db if enabled in overboard.php and remove quotes in display 2021-04-06 01:39:40 -07:00
Retro_Guy ff97f617df Get all last article info from database, not overview flat file 2021-04-03 02:10:20 -07:00
Retro_Guy e101fdd81b Get last article date/name from lastarticleinfo-> instead of overview 2021-04-03 00:47:48 -07:00
Retro_Guy 283e851d23 Check section also in post.php if group has changed sections 2021-04-01 23:47:24 -07:00
Retro_Guy 5f531dc6da Rewrite url if group changes section in thread.php and article-flat.php 2021-04-01 23:23:14 -07:00
Retro_Guy c1111c155d Find group in any section to avoid error when groups are moved 2021-04-01 18:36:14 -07:00
Retro_Guy 99f95d6c2b Check if user exists before allowing encrypt post to user 2021-03-29 23:48:22 -07:00
Retro_Guy 829e357e0e Properly handle multibyte strings in header search 2021-03-24 19:10:49 -07:00
Retro_Guy 668ed3b85f Search headers using overview db for speed 2021-03-23 03:16:50 -07:00
Retro_Guy be5555a010 Make displaying domain in footer optional 2021-03-20 19:52:56 -07:00
Retro_Guy 1d2c080577 Decode search snippet before display 2021-03-19 02:34:38 -07:00
Retro_Guy 1cd178646b Remove \' from search terms 2021-03-19 02:10:55 -07:00
Retro_Guy b95dcb5a00 Properly check charset when posting with newsreader via SSL 2021-03-17 18:28:41 -07:00
Retro_Guy 696cbd6f17 Sort header search results by date 2021-03-17 03:06:37 -07:00
Retro_Guy 51d3f3b603 Add snippets to all search results 2021-03-17 02:43:31 -07:00
Retro_Guy 22a74cf194 Add variable to change snippet_size in search.php 2021-03-17 01:39:45 -07:00
Retro_Guy a70b2c5f0e Sort body search results by rank properly 2021-03-15 02:00:05 -07:00
Retro_Guy 80f1d1b5c1 Handle multibyte characters better in search results 2021-03-13 04:50:02 -07:00
Retro_Guy b8b16adc6d Allow quoted search query 2021-03-13 04:42:49 -07:00
Retro_Guy b26d49980e Change some defaults in rslight.inc.php 2021-03-13 03:45:24 -07:00
Retro_Guy 9e1885b024 Add link in thread.php to search specific group 2021-03-12 00:56:35 -07:00
Retro_Guy f47d451a48 Protect sqlite barewords from quoting in search 2021-03-11 23:11:35 -07:00
Retro_Guy 39889ea727 Quote everything in search terms for body search 2021-03-11 23:03:17 -07:00
Retro_Guy e7043d43ae Change default in search.php to Body if using article db 2021-03-11 21:34:53 -07:00
Retro_Guy 345cf56d70 Clean up snippet output for html from search.php 2021-03-11 18:11:22 -07:00
Retro_Guy c06a916037 Add body search feature per section 2021-03-10 23:55:01 -07:00
Retro_Guy c6400cd791 Create search data when local insert of post also 2021-03-08 01:43:06 -07:00
Retro_Guy ae3db9cec1 More cleanup in overboard.php 2021-03-06 19:06:18 -07:00
Retro_Guy cc4aaea153 Modified regex to check for quote in overboard.php 2021-03-06 01:54:38 -07:00
Retro_Guy f5a17c792a Overboard to check for quote in first 5 chars of line 2021-03-05 03:39:30 -07:00
Retro_Guy 9618c729d3 Strip duplicate messages from threads in newsportal 2021-02-27 04:14:26 -07:00
Retro_Guy c107f24d3a Add header links to posting page 2021-02-24 01:52:20 -07:00
Retro_Guy d841469930 Handle several possible errors more gracefully in newsportal.php 2021-02-20 23:36:50 -07:00
Retro_Guy e15a2cf97d Remove filemtime checking in overboard to work properly with article_database 2021-02-20 23:08:17 -07:00
Retro_Guy 953b203226 Some changes to use -overview less in favor of .db3 2021-02-18 22:10:43 -07:00
Retro_Guy 73f9f7349b Add 'UNIQUE' to msgid in databases 2021-02-16 23:49:46 -07:00
Retro_Guy 2962cd1456 Fix anon posting bug allowing posting when disabled 2021-02-09 22:18:28 -07:00
Retro_Guy 085c6378e3 Fix no '$' in variable name in newsportal.php 2021-02-06 17:05:26 -07:00
Retro_Guy 673ceec47e Revert "Add support to sync via http proxy"
This reverts commit c5f6f41612.
2021-02-06 04:22:45 -07:00
Retro_Guy c5f6f41612 Add support to sync via http proxy 2021-02-04 20:01:58 -07:00
Retro_Guy 74c02675ab Avoid trying to use socks server if ['socks_host'] doesn't exist 2021-01-28 19:33:47 -07:00
Retro_Guy 999eb93d06 Avoid displaying broken articles in np 2021-01-28 19:05:31 -07:00
Retro_Guy efa401bc0e Remove articles from np database if not available 2021-01-27 23:10:32 -07:00