Commit graph

149 commits

Author SHA1 Message Date
flash 8ef113f3a9 Allow non-super users to impersonate select users. 2023-07-28 21:20:19 +00:00
flash d2f0eebfb2 Use random alphabetic string instead hex bytes for session tokens. 2023-07-28 20:13:11 +00:00
flash 3148da4403 Rewrote Sessions backend. 2023-07-28 20:06:12 +00:00
flash 5c8ffa09fc Cleaned up User and UserSession queries. 2023-07-28 15:07:30 +00:00
flash 20b309563e Fixed phpstan detections. 2023-07-27 23:49:55 +00:00
flash 461ffbf73b Rewrote user role handling. 2023-07-27 23:26:05 +00:00
flash 70623d3a7c Pluralise user role relations table name. 2023-07-27 13:09:22 +00:00
flash b4d4e8578c Rewrote TFA session code. 2023-07-27 12:44:50 +00:00
flash 351043e283 Split Sharp Chat kick and ban permissions based on the Misuzu warnings and bans permissions. 2023-07-26 22:46:35 +00:00
flash 2231cd8124 Rewrote user warnings backend. 2023-07-26 22:43:50 +00:00
flash 86432616c6 Expiration -> Expires 2023-07-26 18:24:49 +00:00
flash 1d552e907b Added new banning system.
it actually works and isn't confusing this time around!
2023-07-26 18:19:48 +00:00
flash 057551edb3 Pluralise. 2023-07-26 11:56:06 +00:00
flash 710049794f Fixed typo that would cause things to fail. 2023-07-26 11:54:49 +00:00
flash 3299d73df2 Added new moderator notes system. 2023-07-25 14:40:31 +00:00
flash ee304af133 Removed the concept of silencing.
Nothing really implemented it properly or checked for it and the places that did check just handled it as a slightly softer ban.
It's pretty obvious that the existence of this feature was directly taken from osu! where the differentation between a ban and a silence probably makes more sense, though even there Silences are just non-permanent bans, so like why does this exist lol?
Well, it doesn't anymore! Hopefully chat will upgrade successfully because I let it get 18 commits behind :D
2023-07-23 21:47:15 +00:00
flash dd21fce6e3 Rewrote password recovery token storage using new DB backend. 2023-07-22 21:20:03 +00:00
flash 392881c0d8 Fixed type on getUserId in LoginAttemptInfo. 2023-07-22 17:27:42 +00:00
flash 6e3023a772 Rewrite login attempts log to use new database backend. 2023-07-22 16:37:57 +00:00
flash d0e3f6ce65 Normalised custom exception usage in user classes.
Also updated the Index library to include the MediaType fix.
2023-07-22 15:02:45 +00:00
flash 42d893fc18 Use the Index DbStatementCache implementation. 2023-07-22 14:00:51 +00:00
flash baefea88df Use the Index DbTools version for list prepare thing. 2023-07-22 13:54:42 +00:00
flash e369038609 Updated Index Serialiser usage. 2023-07-21 21:56:09 +00:00
flash 9962bbc5df Added phpstan as a dev dependency. 2023-07-21 19:38:54 +00:00
flash 761bc94b8e Removed local config plugin and fixed Index info pages. 2023-07-21 19:30:28 +00:00
flash 14c5635b4f Determine client info on insert rather than on retrieve for speed improvements.
i suppose device detect only ever expects to analyse a single string at once given its made for matomo so it on the slower side for multiple dingusses
2023-07-21 12:47:59 +00:00
flash ebac064c59 Fixed error 500 on logs and sessions pages because of dead library. 2023-07-21 11:33:27 +00:00
flash f32624c61d Improved profile fields code. 2023-07-20 19:36:43 +00:00
flash 2e49940260 Upgrade to PHP 8.2. 2023-07-19 19:10:20 +00:00
flash 24d61cc60e Removed lockdown feature for now. 2023-07-19 19:04:57 +00:00
flash 029c1ff20e Restructured public folder and initialisation process. 2023-07-19 19:03:53 +00:00
flash 30e77bd698 Removed leftover abstract class. 2023-07-19 14:34:02 +00:00
flash 65549e3fa4 Fixed whatever the date formatter was smoking. 2023-07-18 23:19:19 +00:00
flash 319f37a313 Removed server-side relative time. 2023-07-18 23:12:47 +00:00
flash bec58f589f Removed unnecessary checks from URL formatter. 2023-07-18 22:36:07 +00:00
flash 473d5f22b5 Removed old formats of and unused SharpChat endpoints. 2023-07-18 22:33:13 +00:00
flash e6c826a7d7 Fixed various errors and oversights caught by phpstan. 2023-07-18 22:24:23 +00:00
flash 2f7cddde19 Config class overhaul. 2023-07-18 21:48:44 +00:00
flash 1a11a8f8ba Rewrote audit log on new database backend. 2023-07-17 17:43:17 +00:00
flash 074e078692 Use Node for asset building instead of building on the fly every time (feat. minification!) 2023-07-17 14:37:54 +00:00
flash f24f811acc Rewrote most of the comments backend.g 2023-07-15 23:58:17 +00:00
flash 6274f7f8d3 Fixed some routing oversights. 2023-07-15 17:45:39 +00:00
flash 472fc0decc Show Index and PDO query counts separately in the footer. 2023-07-15 17:15:40 +00:00
flash bff42c26ab Rewrote the news backend. 2023-07-15 17:02:46 +00:00
flash 69c6b6f2ac Fixed various other oversights. 2023-07-15 02:14:39 +00:00
flash 76c9cc50f4 Rewrote the Changelog code. 2023-07-15 02:05:49 +00:00
flash 6d0d49171e Added more elegant method for statement caching. 2023-07-14 20:26:38 +00:00
flash 3e2183b7b2 Fixed leap year birthdays without a year set. 2023-07-12 23:08:35 +00:00
flash 3909cdf762 Rewrote backend for emoticons.
Manage actually works this time!!!
2023-07-12 21:52:55 +00:00
flash 9b65ce005a Fixed possible NULL in CSRF check. 2023-07-12 19:14:40 +00:00
flash 29165de457 Use the Index DSN to create the PDO based DB instance. 2023-07-11 22:45:23 +00:00
flash 1186b0daeb Use Index for CSRF protection tokens. 2023-07-11 22:13:56 +00:00
flash ba8115fe10 CSRF and URL cleanup. 2023-07-11 20:51:24 +00:00
flash f025ee13d0 Rely on NGINX GeoIP2 module for country code lookup. 2023-07-11 00:25:43 +00:00
flash 69d04a7929 Switched to a tools directory for commands. 2023-07-10 22:52:30 +00:00
flash 9cb0a04611 Get rid of unused JSON stuff. 2023-07-10 20:12:20 +00:00
flash 3507ae61ff Switched to Index byte formatter and adjusted max file sizes. 2023-07-05 23:09:28 +00:00
flash 027ed5aff6 Cleaned up various utility functions. 2023-07-05 01:33:12 +00:00
flash b5b4bf6b5a Fixed birthdate setting not working (did it ever work???). 2023-05-26 18:41:21 +00:00
flash 0bb1303413 Updated authentication token format. 2023-05-21 18:15:04 +00:00
flash 8038f61470 Added ability to add redirects to deleted topic ids. 2023-04-30 00:18:14 +00:00
flash 6f679fc78c Fixed oversights that occur because of the empty username. 2023-04-29 21:57:21 +00:00
flash d54528f8ea Gave posts a 1 minute cooldown for edits without being marked as edited. 2023-03-11 22:28:10 +00:00
flash d05046ff1f Removed Twitter integrations. 2023-03-09 21:38:03 +00:00
flash 9983233184 Allow media linking without https: or http: prefix on forum. 2023-03-09 16:18:52 +00:00
flash 5760e15df5 Added h1 thru h6 bbcodes. 2023-02-12 03:50:08 +00:00
flash d423c53cde Added most active forum category and topic to profiles. 2023-02-10 09:04:15 +00:00
flash b9b80e17d0 Sharp Chat interop updates. 2023-02-08 00:06:15 +00:00
flash 03a0dcd948 Enabled video and audio embeds in markdown. 2023-01-29 21:06:03 +00:00
flash e6e5c873f6 Audio embed previews (no player yet). 2023-01-29 20:29:20 +00:00
flash 48ce465893 Fixed various video embedding bugs. 2023-01-26 22:51:33 +00:00
flash d5bb0bb475 Complete revamp of the forum video bbcode.
Rather than blindly embedding everything, video metadata is first requested through the URL metadata lookup service.
This slightly protects you from automatically connecting to third party servers and also vastly improves page loading performance in tandem with caching on the server.
A similar implementation will eventually make its way to the audio bbcode and will also be worked in the img bbcode somehow.
This will then eventually make it possible to embed audio and video in markdown the same way you'd embed an image.
2023-01-25 22:33:59 +00:00
flash 37eea64a27 Updated database migration system to use the Index methods. 2023-01-07 04:15:19 +00:00
flash 5a4094867f Use interface constants instead of a dedicate enum class for config types. 2023-01-06 20:50:41 +00:00
flash 5a7f4765ab Changed name of context class and global variable. 2023-01-06 20:35:03 +00:00
flash e8518fde65 Updated handler classes to use the new IRouter interface. 2023-01-06 20:22:03 +00:00
flash 338945d01e Removed unused tester permission. 2023-01-06 00:03:29 +00:00
flash 56a9192f53 Store forum permission types as numbers rather than bit shifts. 2023-01-06 00:02:40 +00:00
flash a311de6acf Updates to GeoIP lookup stuff. 2023-01-05 20:03:26 +00:00
flash 2394492bf8 Remove IPAddress::remote and all implicit resolving of the request remote address. 2023-01-05 18:33:03 +00:00
flash f7fcd3230a Removed IPAddress methods only used by the blacklist. 2023-01-05 17:15:26 +00:00
flash 05766f00e0 Removed IP blacklist for now. 2023-01-05 15:56:36 +00:00
flash eafdc28d5e Rewrote Twitter connection (v1.1 -> v2). 2023-01-05 03:20:31 +00:00
flash ebabb19998 Rewrote avatar element contruction as Twig macro. 2023-01-03 00:10:28 +00:00
flash 4f3d0c5246 Replaced Misuzu Colour library with the Index ones. 2023-01-02 23:48:04 +00:00
flash d9c3ca1e5a "Fixed" user editor in the broom closet. 2023-01-02 20:09:38 +00:00
flash ed2201090c Pruned a lot of existing Javascript, comments will receive and overhaul later. 2023-01-02 20:07:55 +00:00
flash 5a495ec472 Fixed Mark As Read on forum index not working. 2023-01-02 19:50:33 +00:00
flash 7b37205c3d Fixed error when trying to edit profile. 2023-01-02 03:27:20 +00:00
flash ef05ad5b9c Fixed oversight from removing the proxy stuff. 2023-01-01 20:37:15 +00:00
flash f45dc55d48 Use Git HEAD hash for the template cache folder name. 2023-01-01 20:33:32 +00:00
flash 08f8f59fe6 Removed unused built-in media proxy. 2023-01-01 20:27:25 +00:00
flash 4f35e5e487 Restructured config handler. 2023-01-01 20:23:53 +00:00
flash 525ced6e4e Index updates + floatval, intval -> casts. 2023-01-01 19:06:01 +00:00
flash aef7297bee Removed unfinished leftovers of priority voting and polls. 2023-01-01 05:01:18 +00:00
flash cd959b7e55 Forgot to CTRL+S this file, oops! 2023-01-01 03:50:41 +00:00
flash 9efe8e6853 Removed support for rolling back database migrations. 2023-01-01 03:42:18 +00:00
flash e70aed3a2c Added Flappyzor hacks. 2023-01-01 01:53:29 +00:00
flash 28890cd5d5 Imported into new repository. 2022-09-13 15:14:49 +02:00