Commit graph

1165 commits

Author SHA1 Message Date
pezcurrel
3feccffce0 Fixed a bug by extending the query used for loading instances to be checked (it wasn’t considering new instances, now it should) 2024-02-26 18:40:10 +01:00
pezcurrel
1c1d9fb095 After peerscrawl.php has run, make a copy of peerscrawl.log to peerscrawl.log.old 2024-02-26 17:53:43 +01:00
pezcurrel
77c37c3f68 Made it echo seconds if there are seconds left, or if ozero is true, or if no previous output was echoed 2024-02-26 17:52:46 +01:00
pezcurrel
a611e251fc Fixed a bug that was preventing crawler.php and peerscrawl.php to use the actual graceline they should be using when the “--gracetime” option was used 2024-02-25 09:55:59 +01:00
pezcurrel
f034d57fbc Changed day of the month to run peerscrawl.php with a non-default gracetime of 2 months from the 26th to the 25th; translated the script to english 2024-02-25 08:59:04 +01:00
pezcurrel
77d8ab3063 Fixed a flaw (if the passed amount of seconds was 0 it could return nothing) 2024-02-25 08:57:34 +01:00
Pezcurrel
2bd08da1fc Updated italian translation 2024-02-11 19:22:40 +01:00
Pezcurrel
b21db7c7fc Updated 2024-02-11 13:08:22 +01:00
Gnucco
c3f167739c Replaced jones@puntarella.party references with giarminio@fe.disroot.org 2024-02-11 13:06:20 +01:00
pezcurrel
f8dd74f1b7 Added class for invisible stuff (“display: none;”) 2024-01-07 11:05:48 +01:00
pezcurrel
d35074c79e Added invisible link with “rel=me”to my mastodon account 2024-01-07 11:05:18 +01:00
pezcurrel
18cf54fb62 Changed “minaudef” from 10 to 5 2024-01-02 08:37:01 +01:00
pezcurrel
238ac44485 Changed “done” message 2024-01-02 01:22:04 +01:00
pezcurrel
d8c203e5d5 Updated to new grace.php instead of gracetime.php 2024-01-02 01:11:52 +01:00
pezcurrel
3a44967a89 Updated to new grace.php instead of gracetime.php 2024-01-02 01:11:29 +01:00
pezcurrel
5ef21502c3 Removed explicit “graceline” calculation since it’s done directly in grace.php; added a “todo” comment 2024-01-02 01:10:09 +01:00
pezcurrel
efc6f2f79f Made sure parsetime returns seconds as integer 2024-01-02 01:08:14 +01:00
pezcurrel
091a7785b2 Made certain “conntimeout” and “functimeout” get passed as integers to curl; added firefox 121.0 user agent as user agent; added an unused curlprogess function, just so 2024-01-02 01:05:51 +01:00
pezcurrel
18a3f13ed6 Renamed 2024-01-02 01:03:07 +01:00
pezcurrel
2e78c37286 Added “graceminfreq” and immediate calculation of “graceline” 2024-01-02 01:02:22 +01:00
pezcurrel
13765fb17d Extended ght() a lot 2024-01-02 00:55:18 +01:00
pezcurrel
2c132a5155 Updated to new “grace.php” (instead of gracetime.php) 2024-01-02 00:54:33 +01:00
pezcurrel
25e238a1e2 Reverted to calling mysqldump instead of mariadb-dump (more retro-compatible) 2024-01-02 00:53:25 +01:00
pezcurrel
6914551daa Fixed “deadinsts” loading queries; changed default “conntimeout” and “functimeout” 2024-01-02 00:52:20 +01:00
pezcurrel
6c29f1e24e On first run after 0:0:0 of 26th of month do peerscrawl.php with a 2 months gracetime (it was 1 year, before) 2024-01-02 00:48:06 +01:00
pezcurrel
29919f0867 On 1st of month do crawler.php with a 2 months gracetime (it was 1 year, before); revert to calling mysqldump instead of mariadb-dump 2024-01-02 00:46:37 +01:00
pezcurrel
fac92aefbc Added gracetime in human readable form, graceline too, and graceminfreq 2024-01-02 00:44:23 +01:00
pezcurrel
e1bd0ec900 Added option “functimeout” 2024-01-02 00:41:49 +01:00
pezcurrel
b9ab074e1c Integrated and fixed gracetime/graceline logic 2024-01-02 00:40:26 +01:00
pezcurrel
618ebfa54b Added 'Accept: application/json' to every “gurl” call 2023-12-31 23:16:16 +01:00
pezcurrel
63c619399d Added 'Accept: application/json' to every “gurl” call 2023-12-31 23:15:45 +01:00
pezcurrel
4e5973e874 Fixed a flaw in “dead instances” loading queries 2023-12-31 22:57:07 +01:00
pezcurrel
d3211162fe Using “require” without parentheses is better :-) 2023-12-31 20:37:03 +01:00
pezcurrel
de0d67c1cf Changed default for “conntimeout” from 8 to 5, and for “functimeout” from 45 to 10 2023-12-31 20:36:18 +01:00
pezcurrel
95e4b9366e Using “[]” for arrays is better :-) 2023-12-31 20:35:15 +01:00
pezcurrel
1f5559b5b5 Using “require” without parehteses is better :-) 2023-12-31 20:34:30 +01:00
pezcurrel
b356c3bcd3 Updated after optimizing indexes 2023-12-31 20:33:38 +01:00
pezcurrel
a49be77cb9 Added “--single-transaction” option to “mariadb-dump” call 2023-12-31 20:32:35 +01:00
pezcurrel
a9b0e049b4 Changed “conntimeout” default from 5 to 3 and “functimeout” default from 10 to 5 2023-12-31 20:31:41 +01:00
pezcurrel
b124326a88 Added option “--single-transaction” to “mariadb-dump” call 2023-12-31 20:30:34 +01:00
pezcurrel
e0a3c8cfa7 Added “functimeout” for “gurl”; updated “ght” calls 2023-12-31 20:29:31 +01:00
pezcurrel
954c351fcf Updated “ght” calls to its new format 2023-12-31 20:27:59 +01:00
pezcurrel
53a03f1c7a Updated “ght” calls to its new format 2023-12-31 20:27:15 +01:00
pezcurrel
6a750a2f3c Added “round [number]” to every status “eecho”; changed all “echo('...')” to “echo '...'” 2023-12-29 13:02:40 +01:00
pezcurrel
ececc8e8c8 Changed “echo” to “eecho” where appropriate; changed all “echo('...')” to “echo '...'” 2023-12-29 13:01:00 +01:00
pezcurrel
d502fde347 Removed useless, redundant code filtering the list of instances at the beginning of the “crawl” function: filtering already happens before adding an instance to next round list 2023-12-29 12:21:50 +01:00
pezcurrel
a677d3301b Added “-i, --includedead” option explanation to help text 2023-12-29 11:05:04 +01:00
pezcurrel
385935c662 Added “locale: ” string to echo the currently set locale (the line remains commented out) 2023-12-29 10:35:11 +01:00
pezcurrel
2b0561c3e2 Added info about the necessity to also add the corresponding locale to the system when adding a language code 2023-12-29 10:33:53 +01:00
pezcurrel
93eba38b45 Added and commented out “pt” and “pt_BR” 2023-12-29 10:32:45 +01:00
pezcurrel
80609f30ed Changed locale subdirs format 2023-12-29 10:12:16 +01:00
pezcurrel
e2bae529f6 Updated translations 2023-12-29 10:09:13 +01:00
pezcurrel
c29e6f5a77 Removed 2023-12-29 10:08:28 +01:00
pezcurrel
fee84db66a Added comment to explain why it is needed 2023-12-29 10:04:40 +01:00
pezcurrel
83868504d7 Super-optimized it; made it a bit more verbose and clearer 2023-12-29 10:04:05 +01:00
pezcurrel
c3d5050b42 Added comment to explain why we are using “realfloat” 2023-12-29 10:03:11 +01:00
pezcurrel
9ece96fcd9 Modified according to new locale directory layout 2023-12-29 10:02:03 +01:00
pezcurrel
560db4d69d Renamed “donefp” var to “resurrfp” 2023-12-29 10:01:16 +01:00
pezcurrel
3b7e818f22 Using preg_replace instead of str_replace to substitute all non-digit characters 2023-12-29 10:00:12 +01:00
pezcurrel
cce037f169 Renamed “timeout” var to “functimeout” 2023-12-29 09:59:08 +01:00
pezcurrel
79e39f6783 Modified a comment 2023-12-29 09:58:08 +01:00
pezcurrel
b898e6bddd Added these systemd units files 2023-12-29 09:56:53 +01:00
pezcurrel
dda5e80a69 Updated “fnum()” calls to new format 2023-12-28 14:56:23 +01:00
pezcurrel
d998837828 Using realfloat.php “rf()” function tu workaround php 7.3 echoing floats with “,” instead of “.” as a decimal separator 2023-12-28 14:52:08 +01:00
pezcurrel
af958a194f Using realfloat.php “rf()” function tu workaround php 7.3 echoing floats with “,” instead of “.” as a decimal separator 2023-12-28 14:52:00 +01:00
pezcurrel
b147447b69 A workaround to php 7.3 echoing floats with “,” instead of “.” as a decimal separator; first commit 2023-12-28 14:50:26 +01:00
pezcurrel
6a3948783f Began working on checks 2023-12-28 12:37:38 +01:00
pezcurrel
89f4d38704 Added check for “Visible” column to every query; added btu variable; changed fnum syntax everywhere according to fnum modifications; made “debug” function output human readable times even when they are very short 2023-12-28 12:34:43 +01:00
pezcurrel
a5381f057c Added info to introductory comment about localemap 2023-12-28 12:30:51 +01:00
pezcurrel
e5b56f3e68 Using standard lib version of randstr.php, which is more flexible and fast 2023-12-28 12:29:52 +01:00
pezcurrel
9440903626 Using standard lib ght.php, which is more flexible 2023-12-28 12:28:18 +01:00
pezcurrel
6b705d3b3a Using default ghs.php from lib, it is more precise, manages also terabytes and petabytes 2023-12-28 12:26:35 +01:00
pezcurrel
d0dfd42001 Now it is compatible with every locale 2023-12-28 12:25:43 +01:00
pezcurrel
52621c608e Made “localeset” more standard 2023-12-28 12:21:35 +01:00
pezcurrel
fbed07c5ec Made colors more coherent 2023-12-28 12:19:56 +01:00
pezcurrel
a195c02de2 Added 2023-12-28 12:10:32 +01:00
pezcurrel
9a2a817493 Added 2023-12-28 12:10:22 +01:00
pezcurrel
af31de20e7 Added 2023-12-28 12:10:02 +01:00
pezcurrel
495eb41666 Added 2023-12-28 12:09:23 +01:00
pezcurrel
98d54a1782 First commit 2023-12-28 12:09:01 +01:00
pezcurrel
bf46f1f424 Removed 2023-12-28 12:08:08 +01:00
pezcurrel
0105b7f39e Removed 2023-12-28 12:07:46 +01:00
pezcurrel
4162c98ff1 Removed 2023-12-28 12:07:24 +01:00
pezcurrel
963b03fe15 Removed 2023-12-28 12:07:09 +01:00
pezcurrel
a6398d841b Updated it translation according to modifications to some strings related to threads moderation 2023-12-27 23:58:31 +01:00
pezcurrel
5e4907674e Some tinkering on strings related to threads moderation and their look 2023-12-27 23:57:19 +01:00
pezcurrel
943c65b2ba Added regexps check before adding an inst to “Instances” and “Peers” tables 2023-12-27 21:55:33 +01:00
pezcurrel
738fa8c864 Added “.matdoes.dev” exclusion 2023-12-27 21:54:34 +01:00
pezcurrel
61a621e4d2 Added “checkspam” action 2023-12-27 21:53:44 +01:00
pezcurrel
e94e286b01 Added deletion of InstBlocks records 2023-12-27 20:34:45 +01:00
pezcurrel
6018139a75 Fixed a flaw with translation of instances.php introductory text 2023-12-27 19:59:17 +01:00
pezcurrel
5c70c8c55c Fixed a flaw in instances.php introductory text 2023-12-27 19:58:26 +01:00
pezcurrel
c2ce51ca2d Updated translations after changing and adding some strings in instances.php 2023-12-27 19:20:03 +01:00
pezcurrel
641eb734fc Now, when “Include only if Threads is surely suspended” is active, it returns also instances listed into Anti-Meta Fedi Pact page; also, made the “Meta’s Threads moderation” text more detailed 2023-12-27 19:19:18 +01:00
pezcurrel
605dd9f06f Updated translations according to new and modified strings after integrating Anti-Meta Fedi Pact’s list of instances blocking Threads 2023-12-27 16:49:27 +01:00
pezcurrel
6a53523a87 A script to download and parse Anti-Meta Fedi Pact’s list of instances blocking Threads; first commit 2023-12-27 16:46:58 +01:00
pezcurrel
6789b7379c Renamed some Threads related classes 2023-12-27 16:45:33 +01:00
pezcurrel
2e5a1619df Integrated Anti-Meta Fedi Pact’s list; optimized debug; some more little changes 2023-12-27 16:44:25 +01:00
pezcurrel
9d3230877e Changed to not eecutable 2023-12-27 16:42:59 +01:00
pezcurrel
540c9d4440 Optimized, fixed a flaw 2023-12-27 16:42:31 +01:00
pezcurrel
0ed8165a53 Added “fedipact.php” 2023-12-27 16:41:29 +01:00
pezcurrel
8e5cc30412 Optimized “dryrun” behavior, fixed some flaws 2023-12-27 16:40:32 +01:00
pezcurrel
f31aeaf1db First commit 2023-12-27 08:50:36 +01:00
pezcurrel
7e6048f939 Fixed a bug in “Threads” status detection code 2023-12-27 08:50:19 +01:00
pezcurrel
eb831bb177 Fixed a typo in a comment 2023-12-27 08:40:19 +01:00
pezcurrel
3069415a2b First commit 2023-12-27 08:39:54 +01:00
pezcurrel
0d86608f07 Changed “Before” to “&lt;” (“<”, “less than”) for instances where “FirstSeen” is less then October 14 2020 UTC, when i implemented it 2023-12-27 01:14:41 +01:00
pezcurrel
1c2d9eb4b1 In function “hrte”, made it use “bc” math only if available 2023-12-27 01:00:14 +01:00
pezcurrel
5e34f0f1f3 Removed executable file property 2023-12-27 00:59:32 +01:00
pezcurrel
bfbd28d8d3 Fixed some flaws 2023-12-27 00:46:49 +01:00
pezcurrel
7840524d0f First commit 2023-12-27 00:46:32 +01:00
pezcurrel
c799f73f05 Dropped “Instances” table “BlockListAvailable” column and added “Threads” column 2023-12-27 00:08:14 +01:00
pezcurrel
d3bdea0399 Updated translations with new strings about Threads 2023-12-27 00:04:42 +01:00
pezcurrel
e185720a4c Made “Exclude instances not surely suspending Threads” “Include only if Threads is surely suspended” 2023-12-26 23:59:11 +01:00
pezcurrel
7a7bdf97ec Fixed a bug in “Threads” moderation reporting 2023-12-26 23:42:11 +01:00
pezcurrel
b2fa12b541 Updated to consider the new directory layout (all library files in “web/lib”) 2023-12-26 23:41:04 +01:00
pezcurrel
5a473b6064 When the list of moderated instances can be accessed, make “Threads” field default to “accessible” 2023-12-26 23:40:18 +01:00
pezcurrel
043ef60cf5 Made it know when among instances with a given language there’s at least one recommended instance; if so, made it use “random, recommended first” order; otherwise, made it use just “random” order; made it know to javascript too, so the first entry in the order menu gets its text changed accordingly; added a checkbox to exclude instances not blocking threads (or instances about which it is unknown if they are blocking Threads); some layout flaws fixing; some tidying of code 2023-12-26 23:19:52 +01:00
pezcurrel
b2cc0f856c Made font-size a bit bigger for “ssubmit”, “litbut” and “ltibuta” classes; also made font-weight bold for “ssubmit” class 2023-12-26 23:12:35 +01:00
pezcurrel
3ae455a459 Now Threads blocking status gets set for each instance into “Threads” column in “Instances” table 2023-12-26 23:11:01 +01:00
pezcurrel
c62aa9d9bb Removed useless .htaccess files 2023-12-26 11:22:58 +01:00
pezcurrel
721d892f64 Refactored directory tree 2023-12-26 11:17:54 +01:00
pezcurrel
2f3a26a98f Moved 2023-12-26 11:16:24 +01:00
pezcurrel
9ea1579b65 Removed useless “test” table 2023-12-25 22:38:07 +01:00
pezcurrel
a8da4b4ae6 Changed “AuthUserFile” path to absolute path 2023-12-25 22:14:02 +01:00
pezcurrel
0bd1965224 Made “AuthUserFile” path relative 2023-12-25 22:02:21 +01:00
pezcurrel
e6b510ab6d Made it a symlink 2023-12-25 22:01:41 +01:00
pezcurrel
ddb4b2aa35 First commit 2023-12-25 22:01:03 +01:00
pezcurrel
29e84f1aeb Updated after changing “Meta’s Threads moderation” statuses text 2023-12-25 19:53:53 +01:00
pezcurrel
d90801637b Changed “Meta’s Threads moderation” statuses text 2023-12-25 19:53:02 +01:00
pezcurrel
b5f625f856 Added “Meta’s Threads moderation” field 2023-12-25 17:40:22 +01:00
pezcurrel
38aa09ce9b Fixed a little cosmetic bug 2023-12-25 13:49:02 +01:00
pezcurrel
6d159737c0 Updated translations 2023-12-25 13:40:59 +01:00
pezcurrel
800bb17850 Added “sep” class 2023-12-25 13:40:38 +01:00
pezcurrel
9207497413 Enclosed show/hide link for stats about Threads in “[]”; added a transparent separator between stats “blocks” 2023-12-25 13:40:18 +01:00
pezcurrel
6259a63552 Refined query for Threads stats 2023-12-25 13:04:54 +01:00
pezcurrel
72c2a9ea17 Updated translations (since i added gettext function to text which was “hardcode” before) 2023-12-25 12:44:34 +01:00
pezcurrel
ca9a248112 Added gettext function to text which was “hardcode” before 2023-12-25 12:44:02 +01:00
pezcurrel
22eaeecbdf Updated translations with “Threads stats” new strings 2023-12-25 12:24:41 +01:00
pezcurrel
734f33dd48 Made “Threads stats” show better 2023-12-25 12:24:01 +01:00
pezcurrel
5ca035757c Made “<h*>” top and bottom margin 1em 2023-12-25 12:22:58 +01:00
pezcurrel
aacbafd942 Added code for Threads stats; fixed a little bug 2023-12-25 11:58:34 +01:00
pezcurrel
ee3a2db157 Added classes for Threads stats 2023-12-25 11:58:02 +01:00
pezcurrel
20de673e18 Added code for Threads suspending/silencing stats 2023-12-25 00:29:33 +01:00
pezcurrel
f678f0610f Added “BlockListAvailable” column to “Instances” table 2023-12-24 22:37:37 +01:00
pezcurrel
272f7a2cd2 Added “BlockListAvailable” check 2023-12-24 22:36:38 +01:00
pezcurrel
a416c53915 Fixed “find+rm” command 2023-12-07 09:21:04 +01:00
pezcurrel
ce5280af47 Use “find -exec” instead of plain “rm” to delete all files in “run/” directory, to avoid hitting kernel ARG_MAX 2023-12-04 16:01:26 +01:00
pezcurrel
21f50a1603 restored verbose, unocck and acck links 2023-11-20 12:48:58 +01:00
pezcurrel
b5a25f1e0d Restored two links from previous version 2023-11-18 22:08:25 +01:00