Commit Graph

30 Commits

Author SHA1 Message Date
David Anderson 67f4e72deb delete_spammers.php: handle case of link with misspelled URL 2024-05-25 12:45:39 -07:00
David Anderson 5fae50505a Fix PHP 8.1 errors in a couple of PHP scripts in /ops 2022-06-12 00:46:44 -07:00
David Anderson 0629c84b9a small fix in delete_spammers.php 2017-08-25 13:54:06 -07:00
David Anderson 1c78ad0eba - fix bug in delete_spammers.php script 2017-07-17 10:55:41 -07:00
David Anderson dce6254411 Web: add TEAM_CREATE_NEED_CREDIT option to suppress team spam 2017-04-08 23:40:43 -07:00
David Anderson 8872445b57 delete_spammers.php: delete team if its founder and all members are null users 2017-04-07 02:41:39 -07:00
David Anderson c0b0bc0fb0 delete_spammers.php: fix argument parsing
args were parsed in order, so
delete_spammers.php --teams --test
would really delete stuff.
Fix this.
2017-03-27 16:50:23 -07:00
David Anderson 5565aa1881 enhance spam deleter; tweak moderation message 2017-03-26 18:49:29 -07:00
David Anderson 86f217c320 delete_spammers.php: remove unused code 2016-11-14 14:33:06 -08:00
David Anderson 4a3fc9af5a delete_spammers.php: add user_null command; add min/max days 2016-11-14 13:05:33 -08:00
David Anderson d1cf081eb8 Add --profiles_strict option to delete_spammers.php
This deletes users who have a profile and no forum posts.
Intended for use only on the BOINC message boards.
2016-02-20 10:16:59 -08:00
David Anderson 84d7391220 admin: add --id option to delete_spammers.php (to delete a single user) 2015-08-31 11:49:30 -07:00
David Anderson 3e6ae6f48d web: fix "stay logged in" when logging in with authenticator; from Janus
Oddly enough, I couldn't repro this on Chrome or Firefox;
I remained logged in after quit/restart browser,
even though the cookie said it was for this browsing session only.
2015-07-24 13:58:38 -07:00
David Anderson fa7ded6751 admin web: typo fix 2015-01-26 10:14:57 -08:00
David Anderson 037f1b3eb2 web: fix PHP errors on empty team search; when delete spam team, delete user too 2015-01-09 10:54:05 -08:00
David Anderson 267ef49789 delete_spammers.php: add --user_url option
This deletes accounts with a nonempty URL, no hosts and no forum posts.

Also fix typo in util.inc
2014-10-19 00:29:50 -07:00
David Anderson 40d68bc688 server: when deleting user, remove related DB records
When deleting a user (from the delete_spammers.php script),
remove records that refer to that user in
private_messages, notify, credit_user, badge_user, and friend tables.

Notes:
- This change eliminates some dangling references,
  but in general a BOINC DB doesn't have referential integrity.
  The code should check for dangling references.
- Functions like BoincUser::delete() should delete a user record,
  not try to remove things that refer to it.
  The function delete_user() (in user.inc) does this.
2014-10-08 12:14:34 -07:00
David Anderson b1bc33a39b One-click attach: cookie expire time 2014-10-05 01:31:44 -07:00
David Anderson a71ab2796a server: add --teams option to delete_spammers.php
See http://boinc.berkeley.edu/trac/wiki/ProtectionFromSpam#Cleaningupspam
2014-10-04 01:01:25 -07:00
David Anderson 3abed383e5 web PHP code: use mysqli everywhere if available
Change all the PHP code to use _mysql_query() instead of mysql_query()
(and similar for other functions).
_mysql_query() uses the mysqli API if available, else the old API.

Going forward, all PHP code should the DB abstration layer if possible;
else it should use the _mysql_* functions.
2014-09-04 12:00:09 -07:00
David Anderson 3156ea56fd delete spammers script: fix --id_range command 2014-07-23 09:51:02 -07:00
David Anderson cb1bb4069a web: be more thorough when deleting users
When deleting a spammer, delete
- forum_logging
- private messages
- notifications

Also, when displaying private messages, check if sender
doesn't exist, and delete if so
2014-07-11 15:20:01 -07:00
David Anderson eebfca71d3 delete_spammers script: log start/end times 2014-06-21 09:32:41 -07:00
David Anderson 9fbe00a2ff delete_spammers script: tweaks 2014-06-16 16:52:58 -07:00
David Anderson b7478c09c3 delete_spammers: fix comments 2014-06-10 14:03:12 -07:00
David Anderson 780284b9fa delete_spammers tweak 2014-06-10 00:45:45 -07:00
David Anderson d6962a70f0 delete_spammers.php script: add feature for delete forum spammers 2014-06-10 00:39:58 -07:00
David Anderson b3a36cd8ca admin: add --delete_banished option to delete_spammers.php 2014-05-20 10:41:44 -07:00
David Anderson 9ba2f03669 admin tools: change delete_spammers.php to delete message board posts too
Also add --id_range N M command (delete range of users)
Also forum moderation "done" pages now contain link back to forum or thread
2014-05-11 00:36:45 -07:00
David Anderson 6706f5c893 admin: add "delete_spammers.php": script to help delete spam profiles 2014-04-17 12:41:04 -07:00