Shish
b3aa0fc381
Merge branch 'main' into speed-hax
2024-08-31 22:00:30 +01:00
Shish
399a56ac79
[dev] bump phpstan strictness
...
no more null surprises
2024-08-31 21:25:20 +01:00
Shish
845c8b3d85
[core] Make User::by_name / User::by_id not-null
...
Nearly everywhere that these functions are called, the result is assumed to be not-null, and a null will break things
2024-08-31 20:39:36 +01:00
Shish
8f8c0d151a
Update dependency versions
2024-08-31 17:06:39 +01:00
Shish
f84bcaec01
microhtml for everything in <head>
...
I wanted to ensure that all pages (even the downtime page, terms page, home page, etc) had the appropriate `data-` attributes on `<body>` (because those are required for certain javascript, eg autocomplete, to work). One thing led to another and now everything in `head` is microhtml'ed
2024-06-21 18:52:05 +01:00
Shish
8a3d5b5b11
[core] move get_session_id and set_login_cookie into User class
2024-06-20 01:07:11 +01:00
Shish
ea700d5aa6
[core] have UserCreationEvent return the created user, so we don't need to immediately re-query for it
2024-06-19 23:57:07 +01:00
discomrade
350b44f250
[speed_hax] extract SPEED_HAX tweaks to extension
2024-06-14 13:52:49 +00:00
Shish
5cbbe5e1b3
[core] remove is_logged_in
...
This was only used in a couple of places, and user classes are more useful
2024-05-04 16:06:08 +01:00
discomrade
ba2bad48a6
[user] fix typo in password check
2024-05-04 15:01:33 +01:00
Shish
b59fe4c694
Have a common PartListBuildingEvent, fixes #1124
2024-03-28 16:17:18 +00:00
Noz
93944fc883
[user] change email required default
2024-02-21 10:15:18 +00:00
Shish
7ee4152942
[core] organise exceptions a bit
2024-02-11 16:03:23 +00:00
Shish
8c22cb1fb6
[core] exact and named page args
2024-02-11 11:34:17 +00:00
Shish
cc9de6b4b2
[core] merge method-check and permission-check into page_matches()
2024-02-10 23:03:14 +00:00
Shish
81a8587543
ImageAction->add_button + display_crud
2024-02-10 18:35:55 +00:00
Shish
7895978d93
fewer globals
2024-02-10 01:55:05 +00:00
Shish
cbc574db90
[core] reduce use of POST global
2024-02-10 00:23:53 +00:00
Shish
77b755e68b
[core] reduce use of GET global
2024-02-09 16:36:57 +00:00
Shish
82a3ce25c2
level 7 typing
2024-01-20 23:27:34 +00:00
Shish
05199c13cc
[core] kill a secret global
2024-01-20 19:52:18 +00:00
Shish
b60c3fe362
[core] a load more type hints, and fix bugs revealed by type hints
2024-01-20 14:11:00 +00:00
Shish
373be4e05c
avoid stringy class names
2024-01-20 01:03:02 +00:00
Shish
bb9ab613ce
[everything] bulk set event handler return types to void
2024-01-15 11:52:35 +00:00
Shish
a50b103a4a
[themes] zebra tables are also forms
2024-01-08 21:03:04 +00:00
Shish
94ee6e4bc3
[user] admins are exempt from the email requirement, fixes #996
2024-01-07 17:33:39 +00:00
Shish
02da92403a
fmt
2024-01-06 21:28:06 +00:00
Shish
cff163591c
[hellban] merge with user ext
2024-01-06 21:20:38 +00:00
Shish
840b0849df
[user] make email-requiredness a setup option
2023-12-27 10:07:09 +00:00
Shish
fd1bb21f9d
bumps
2023-11-11 22:05:28 +00:00
Shish
43c7be0e89
dedicated search_link() function for generating links to search results, see #936
2023-08-18 13:52:03 +01:00
Shish
23e36b4349
only link to post/list when you actually want post/list, if you want just a default page, leave it empty
2023-08-18 12:45:56 +01:00
Shish
00d4f9f75c
always have a Themelet, never null
2023-06-27 16:11:14 +01:00
Shish
33f32f7b22
Revert "INSERT ... RETURNING is well-supported now" - mysql doesn't...
...
This reverts commit 633d5c5348
.
2023-06-25 20:31:11 +00:00
Shish
633d5c5348
INSERT ... RETURNING is well-supported now
2023-06-25 20:25:09 +00:00
Shish
162aaccb62
Display documentation for permissions
2023-06-24 21:24:25 +01:00
Shish
e51c6bed20
show a table of user classes, see #921
2023-06-24 12:10:28 +00:00
Shish
b5b7fe7d9e
allow admin to bypass user creation block
2023-04-03 22:14:51 +00:00
NottyNoz
4253d357af
board config cleanup
2023-03-27 16:45:59 +01:00
Shish
cfa7434d8d
user creation
2023-02-24 21:12:58 +00:00
Shish
077a5e7727
fix php8.2 warnings
2023-02-19 11:24:33 +00:00
Shish
ea29e7c954
more fields
2023-02-07 13:27:20 +00:00
Shish
689b2b13af
send_event(T) -> T
2023-02-04 20:50:26 +00:00
Shish
ee1a3f933b
argh
2023-01-11 18:35:15 +00:00
Shish
1f48c5ba19
remove some unused bits
2023-01-11 18:28:43 +00:00
Shish
bce2d55744
Namespaces are one honking great idea—let's do more of those!
2023-01-10 22:44:09 +00:00
Shish
4ff93c63c3
new php-cs-fixer, new opinions about what is today's preferred format...
2022-10-27 17:21:46 +01:00
thoughever
f15407bc75
X-Real-IP support and Varnish PURGE config options
...
X-Real-IP for core functionality
Global config define REVERSE_PROXY_X_HEADERS
Config host and port for varnish PURGE
config option to specify PURGE protocol
exception in curl purge now shows error code
ipv6 x-real-ip addresses are now validated properly
X-Forwarded-Proto enabled by define
2022-01-20 22:25:22 +00:00
Shish
3d9e32e919
new php-cs-fixer
2021-12-14 18:32:47 +00:00
Shish
b2ceb36499
better deleting of user's uploads
2021-12-13 01:27:49 +00:00