Commit graph

85 commits

Author SHA1 Message Date
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
discomrade
38a7bb542b use <code> where appropriate 2024-06-21 18:24:38 +01:00
Shish
e3e25c1228 [various] use set_default_int in InitExt rather than set_int in DatabaseUpgrade 2024-06-19 15:22:27 +01:00
Shish
db148da479 [core] add shm_make_link JS function, to generate links from JS which work both with and without niceurls, fixes #1160, fixes #1151 2024-06-05 14:01:40 +01:00
Shish
b6088f95c3 [notes] avoid jiggling on _commit() by accounting for border widths 2024-06-05 14:01:27 +01:00
discomrade
8d489b4f90 [notes] Round note dimensions to int 2024-03-22 13:47:37 +00:00
discomrade
aff227ac31 [core] fix permissions in forum and notes
This includes preventing silent failures when permission is denied, preventing unauthorized users from being shown the note edit form, patching typos, and extracting NOTES_REQUEST to its own permission
2024-02-21 11:27:19 +00:00
discomrade
a21f6ebf6b [notes] allow clicking through notes container
If the notes extension is enabled, the container would block clicking the image, including right-clicking to save it
2024-02-20 10:41:31 +00:00
Shish
e80d235fe9 [core] use Safe library, reduce StdLibEx 2024-02-20 10:38:20 +00:00
Shish
8c22cb1fb6 [core] exact and named page args 2024-02-11 11:34:17 +00:00
Shish
78aaff5c8f [misc] permission updates 2024-02-10 23:32:50 +00:00
Shish
cc9de6b4b2 [core] merge method-check and permission-check into page_matches() 2024-02-10 23:03:14 +00:00
Shish
5735320a95 [extensions] have extension categories, remove versions 2024-02-10 19:42:28 +00:00
Shish
cbc574db90 [core] reduce use of POST global 2024-02-10 00:23:53 +00:00
Shish
82a3ce25c2 level 7 typing 2024-01-20 23:27:34 +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
2a494504f3 [core] all image columns should be statically or dynamically defined - nothing undefined 2024-01-15 18:52:07 +00:00
Shish
a1f22ef67c [themes] void return type for display_* functions 2024-01-15 14:23:12 +00:00
Shish
bb9ab613ce [everything] bulk set event handler return types to void 2024-01-15 11:52:35 +00:00
Shish
f7025069ad [notes] remove debug border 2024-01-05 04:09:01 +00:00
Shish
4edf985a73 fmt 2024-01-05 04:06:19 +00:00
Shish
05a981d935 [notes] replace all the javascript 2024-01-05 04:02:08 +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
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
689b2b13af send_event(T) -> T 2023-02-04 20:50:26 +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
25e5fc9c17
Merge pull request #860 from yls4/master
Fixing home page pool link and fixing Notes not displaying due to css
2022-07-08 22:10:38 +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
=
0096a0dfa1 Updates css for imgNotes, notes won't show up otherwise 2021-12-19 18:44:08 -06:00
Shish
3d9e32e919 new php-cs-fixer 2021-12-14 18:32:47 +00:00
Shish
77f7121e26 drop php7.3 support, make use of 7.4 features 2021-03-14 23:43:50 +00:00
Matthew Barbour
3ac5d05a25 Image to Post - notes 2020-10-26 10:53:04 -05:00
Shish
5816aa3084 execute consistently 2020-10-25 21:34:52 +00:00
Shish
6d074cfef8 defer notes js loading, fixes #737 2020-10-24 23:46:32 +01:00
Shish
bc3de6a52a a bunch more testing and fixes for Pools 2020-03-27 14:41:24 +00:00
Shish
1597eff082 lint fixing 2020-03-13 09:23:54 +00:00
Shish
5058e1f3fd standard jquery 2020-03-02 17:12:43 +00:00
Shish
a887077ac8 remove redundant escapes 2020-01-28 00:16:22 +00:00
Shish
3631084afd format 2020-01-26 16:38:26 +00:00
Shish
9eb5acf2dc use strict types 2020-01-26 16:27:56 +00:00
Shish
6b2304af93 format 2019-11-27 12:13:04 +00:00
Shish
95ef5940fc consistently use colon parameters 2019-11-27 11:47:38 +00:00
Shish
6486bb95da name_to_id 2019-11-11 16:43:42 +00:00
Shish
247cfcbd77 Avoid shadowing global variable
When we aren't referencing the current `global $user`, we should give it
a different name to avoid confusion
2019-11-11 16:43:42 +00:00
Shish
d17e207984 Have get_arg never return null
90% of places assume it will never return null, and they will break in
weird ways if it does return null
2019-11-04 00:40:10 +00:00
Shish
f15a95b4de more version 2019-11-03 19:49:52 +00:00
Shish
ee948352a5 defaults 2019-11-03 19:25:51 +00:00