Commit graph

850 commits

Author SHA1 Message Date
pezcurrel
5e84c8501d Rate limit exceeded error page for mod_qos, first commit 2023-01-04 22:26:39 +01:00
pezcurrel
662d506f4c Made “Random, recommended first” ordering available only for italian language 2023-01-04 20:28:53 +01:00
pezcurrel
296bd9e035 Made possible mysql connection errors messages nicer 2023-01-04 20:28:10 +01:00
pezcurrel
b07e773dcf Removed rough and already commented out “ratelimiting” code, we now use apache mod_qos 2023-01-04 15:16:22 +01:00
pezcurrel
e750aad3f5 Now sleeps in the end 0.25 seconds rather than 0.5 2023-01-04 13:43:34 +01:00
pezcurrel
83d3c6b5c5 Changed “discovered instances” to “instances responded” in message “working on ...” 2023-01-04 13:41:55 +01:00
pezcurrel
25fd358666 Commented out “tar” line for “run” dir: took long and wasn’t very useful 2023-01-04 13:40:53 +01:00
pezcurrel
3f86fc689b “$instanswered” got set to true if nodeinfo responded; now it gets set to true only if api/v2/instance or api/v1/instance responded 2023-01-04 13:39:10 +01:00
pezcurrel
b114deba61 Report elapsed time in message for finished procs 2023-01-04 13:37:05 +01:00
pezcurrel
388ddbbe55 Commented out rough ratelimiting cause it’s too rough :-)) --- added a tiny usleep(500000) at the end for now 2023-01-04 00:05:05 +01:00
pezcurrel
ed7820b636 Ratelimiter now keeps previous time for other sessions 2023-01-03 23:43:35 +01:00
pezcurrel
5372572966 Cache dir with placeholder file; first commit 2023-01-03 23:32:49 +01:00
pezcurrel
8bc4075a04 Removed blocklist and rough database based ratelimiting; added rough file based ratelimiting; cleaned up a bit 2023-01-03 23:31:38 +01:00
pezcurrel
3a95bf779e Deleted 2023-01-03 23:13:04 +01:00
pezcurrel
42b1ac164c Changed translation for “URI, name or descriptions contain” 2023-01-03 19:54:41 +01:00
pezcurrel
bc131006ea Changed the help text in instances.php 2023-01-03 19:49:08 +01:00
pezcurrel
42a821798c Changed a bit the help text 2023-01-03 19:48:42 +01:00
pezcurrel
f021e25cdc Fixed a typo in a string (“descriptions contains” -> “descriptions contain”) 2023-01-03 19:06:05 +01:00
pezcurrel
3309da4721 Improved help text; changed $oldline from 31 to 30 days 2023-01-03 18:58:58 +01:00
pezcurrel
043e8fab41 Added a blocklist mechanism, based for now on http Referer header; improved a bit muoribene function 2023-01-03 18:52:47 +01:00
pezcurrel
30c137862c Changed $gracetime from 31 to 30 days 2023-01-03 18:50:30 +01:00
pezcurrel
59dd8cd307 Blocklist 2023-01-03 18:49:57 +01:00
pezcurrel
1f2165249d “Advanced criteria” are always displayed; removed “reset advanced criteria to default”; restructured code 2023-01-03 05:43:57 +01:00
pezcurrel
1d754f9588 Fixed getlangid: it used $lang instead of $code 2023-01-03 00:11:59 +01:00
pezcurrel
3c85ed78a0 Fixed a bug with $mincdef and $_GET["minc"] 2023-01-02 13:54:36 +01:00
pezcurrel
21fe338c12 Didn’t pass a graceline to dispinst, now it does 2023-01-02 08:52:26 +01:00
pezcurrel
95bd83786e Fixed a bug that caused “languages” to be always saved as “ourlanguages” 2023-01-02 08:37:07 +01:00
pezcurrel
6f296a1d27 Fixed writing langs ids to InstOurLangs; made detected languages fall back to declared languages when they can't be detected 2023-01-01 19:50:57 +01:00
pezcurrel
fa97078fe4 Passing calling __LINE__ through getlangsidsarr and getlangsid the right way 2023-01-01 19:26:39 +01:00
pezcurrel
87fbbbd2f9 Added validity check on declared and detected lang codes to getlangid function - when lang code is not valide it falls back to “en” default; added a getlangsidsarr function to cope with possible dupes and spare code 2023-01-01 19:21:21 +01:00
pezcurrel
c039d85d76 A little script to fix InstLangs, InstOurLangs and Languages table as of 2023-01-01 2023-01-01 18:23:34 +01:00
pezcurrel
24b9f9b911 Made it canonicalize lang codes in getlangid 2023-01-01 18:22:48 +01:00
pezcurrel
a4486403c7 Made language fetching normalize language code to a form with _ insted of - 2023-01-01 16:51:20 +01:00
pezcurrel
184cf49d16 Added “Show instances where...” string to instances.php 2023-01-01 14:47:58 +01:00
pezcurrel
91aa3e0b68 Added “Show instances where” string and an “horizontal ruler” div between “include” and “exclude” criteria 2023-01-01 14:44:50 +01:00
pezcurrel
dd4cc24a36 Added .sddesc and .hrd classes 2023-01-01 14:43:33 +01:00
pezcurrel
5afbdac010 Modified a bit a string 2023-01-01 11:57:00 +01:00
pezcurrel
6814b8060e Put out of echoed html the “popupback” divs and commented them out 2023-01-01 11:37:40 +01:00
pezcurrel
5236126ef1 Added nl language 2023-01-01 11:16:52 +01:00
pezcurrel
5ffd28f906 Added nl language 2023-01-01 11:14:25 +01:00
pezcurrel
bb30be31ca Little update 2023-01-01 11:11:49 +01:00
pezcurrel
322d24fdaf Merge branch 'main' into weblate after adding and modifying some strings in instances.php 2023-01-01 11:09:10 +01:00
pezcurrel
655c180aea Added and modified some strings in the search form of instances.php 2023-01-01 11:06:17 +01:00
pezcurrel
c3b58faa23 Added the possibility to include only instances where max chars per post is at least x; added som strings; modified some others 2023-01-01 11:05:51 +01:00
Oliebol
b38a39e8b5
Added translation using Weblate (Dutch) 2022-12-31 15:04:18 +01:00
pezcurrel
ac6c5b0585 Changed and splitted some strings in about.php 2022-12-31 12:31:14 +01:00
pezcurrel
683a2027a9 Changed my mastodon address, splitted translation there 2022-12-31 12:24:18 +01:00
pezcurrel
2a59e13064 Removed redundant closing body and html tags from “under construction” stuff 2022-12-31 10:22:55 +01:00
pezcurrel
af7c2e1f6e Added missing closing body and html tags to “under construction” stuff 2022-12-31 10:22:00 +01:00
pezcurrel
d981e429f6 If the script is called directly, exit with a redirection tip 2022-12-31 10:19:09 +01:00
pezcurrel
0863c32703 Added InstChecks cleaning to “clean” action 2022-12-31 09:46:28 +01:00
pezcurrel
80ce9f56c9 Added missing “users” page definition 2022-12-31 07:25:42 +01:00
pezcurrel
a4215c943d Added a notify() to getlangid() to be done if Languages contains more than 1 record with given language code 2022-12-31 07:19:00 +01:00
pezcurrel
0c2f4e6b27 Added “intness” check on values from “tag trands history” 2022-12-31 07:13:02 +01:00
pezcurrel
b8e84c72c5 Fixed a misleading comment 2022-12-30 19:20:48 +01:00
pezcurrel
a2660e737b Added 3 strings about TotChecks and OkChecks 2022-12-30 18:18:29 +01:00
pezcurrel
d6982752bb Added succesful checks / total checks ratio showing and ordering 2022-12-30 18:14:09 +01:00
pezcurrel
d87cc7f5cc Added dida100 class 2022-12-30 18:12:33 +01:00
pezcurrel
b40e474e76 Added code to set TotChecks and OkChecks 2022-12-30 18:12:07 +01:00
pezcurrel
b9392a0c25 Little script to set Instances.TotChecks and Instances.OkChecks according to records stored in InstChecks table 2022-12-30 17:16:11 +01:00
pezcurrel
478aa4d0b0 Made the “advice for admins of instances missing server thumb” show up only if instance responded to last check, otherwise it’s probably missing just because the whole instance is not responding 2022-12-30 16:59:59 +01:00
pezcurrel
f2d4119dfa Fixed bug on domain block entity format check 2022-12-30 14:07:22 +01:00
pezcurrel
90e2263af8 Added “cursor: help;” to “nulltip” class 2022-12-30 11:24:24 +01:00
pezcurrel
82d0049f75 Added “We record this value only since October 14, 2020 ;-)” string to instances.php 2022-12-30 10:00:53 +01:00
pezcurrel
4d05060b69 Added a tip (for now it’s just a “title” attribute) about the “Before October 14, 2020” that “First sight” can show 2022-12-30 09:57:33 +01:00
pezcurrel
d0f0e527fe Added “nulltip” class 2022-12-30 09:55:42 +01:00
pezcurrel
65523d49c3 Added “Before October 14, 2020” string to instances.php 2022-12-30 09:18:06 +01:00
pezcurrel
9bc4d4cde6 When FirstSeen is < 2022-10-14, just say “First sight” has occurred before that date, because we don’t have the actual value before that date 2022-12-30 09:16:47 +01:00
pezcurrel
a677033529 Added act class 2022-12-30 09:15:11 +01:00
pezcurrel
86ff6bd4ab Added popupback and dhelp classes 2022-12-30 09:14:43 +01:00
pezcurrel
7b1cd91704 Translated missing strings to it 2022-12-29 23:38:39 +01:00
pezcurrel
2197e832c8 Added some strings to instances.php 2022-12-29 23:34:21 +01:00
pezcurrel
a2c6b49403 Added some sort criteria; added “first sight” and “last successful check” 2022-12-29 23:33:23 +01:00
pezcurrel
e66a6f9e2b Dotted line under links sucked on chrome, now it sucks less (tm) 2022-12-29 21:43:24 +01:00
pezcurrel
cae51fc141 Enhanced a bit strip function 2022-12-29 21:42:44 +01:00
pezcurrel
3db59734d1 Changed function ldate to show timezone (always UTC) even when it displays only the date 2022-12-29 21:08:17 +01:00
pezcurrel
0bb759ddd0 Translated “Display name” 2022-12-29 19:46:24 +01:00
pezcurrel
57e075858b Changed some strings in admin account section of instances.php 2022-12-29 19:40:36 +01:00
pezcurrel
25dc018f69 Improved strip function; minor changes 2022-12-29 19:40:05 +01:00
pezcurrel
60b6ce1f78 Commented out of strip function an ongoing attempt at improving it that in some cases has some bad side effects 2022-12-29 13:37:49 +01:00
pezcurrel
b39eafdb80 Fixed getlangid missing $opts; fixed array_pop on inexistent $languages var 2022-12-29 12:49:38 +01:00
pezcurrel
64073fa12e Added classes for instances.php strip function 2022-12-29 12:41:03 +01:00
pezcurrel
b21b4f2ec2 Improved strip function 2022-12-29 12:40:35 +01:00
pezcurrel
1762e1cc7e Fixed wrong class for “moderated servers” list (“nobot” -> “nobott”) 2022-12-29 10:25:48 +01:00
pezcurrel
073cdb9ffb Assigned “.nobott” css class to server rules ordered list and moderated servers unordered list 2022-12-29 10:15:13 +01:00
pezcurrel
8af570ff9c Added “.idesc ul|ol.nobott” classes 2022-12-29 10:13:55 +01:00
pezcurrel
fd60944df4 Shortened the “wrong server thumbnail URL” message 2022-12-29 09:55:25 +01:00
pezcurrel
bf92c42a83 Shortened the “wrong server thumbnail URL” message 2022-12-29 09:54:55 +01:00
pezcurrel
f2b3642bcd Added “wrong server thumbnail URL” message 2022-12-29 09:46:40 +01:00
pezcurrel
3047472fda Added missing space character between software and version 2022-12-29 09:45:45 +01:00
pezcurrel
dd91bbde38 Added “unavmsg” class 2022-12-29 09:30:42 +01:00
pezcurrel
594447e2a5 Added a “message to admins” that gets shown when server thumbnail is unavailable, explaining how to try and fix it 2022-12-29 09:30:06 +01:00
pezcurrel
94bfec5f78 “$list” paramater of function “crawl” is now passed by reference; “$list” now gets unset in any case after it has been looped through; this hopefully will decrease a bit the amount of memory used by the script 2022-12-29 09:28:18 +01:00
pezcurrel
9e7868461a Added “Opted out of search engines indexing” string 2022-12-29 00:15:53 +01:00
pezcurrel
5bdff13983 Merge branch 'weblate' with new translated strings for deutsch and ukrainian 2022-12-28 23:54:28 +01:00
Pongrèbio
52a056352f
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (409 of 409 strings)

Translation: mastodon.help/Site
Translate-URL: https://hosted.weblate.org/projects/mastodon-help/site/uk/
2022-12-28 23:53:30 +01:00
Ігор Андреєв
b431738881
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (409 of 409 strings)

Translation: mastodon.help/Site
Translate-URL: https://hosted.weblate.org/projects/mastodon-help/site/uk/
2022-12-28 23:50:17 +01:00
nichu42
f05c09a9c8
Translated using Weblate (German)
Currently translated at 95.8% (392 of 409 strings)

Translation: mastodon.help/Site
Translate-URL: https://hosted.weblate.org/projects/mastodon-help/site/de/
2022-12-28 23:50:16 +01:00
pezcurrel
ec33912ff8 Restructured a bit the language management code 2022-12-28 23:47:23 +01:00
pezcurrel
db749d2e7d Consider the possibility that “our languages” have been locked 2022-12-28 19:17:05 +01:00