Commit Graph

138 Commits

Author SHA1 Message Date
Aaron cc0ff71ef7 Management controllers: move table queries into models 2025-01-08 19:11:10 +01:00
Aaron 1e26a51d08 ErrorLog: use DELETE FROM instead of TRUNCATE 2024-12-22 15:35:50 +01:00
Aaron bb8a8bad27 GenericTable: refactor order and pagination initalisation 2024-12-19 15:00:00 +01:00
Aaron 06c95853f5 GenericTable: drop $tableIsSortable property 2024-12-19 12:01:00 +01:00
Aaron e57289eeb6 GenericTable: drop support for get_count_params, get_data_params 2024-12-19 11:56:00 +01:00
Aaron 814a1f82f6 ManageAssets: add thumbnails to asset table 2024-08-27 12:00:46 +02:00
Aaron d6f39a3410 Database: patch error handling to account for exceptions thrown by mysqli_query 2024-08-27 11:46:18 +02:00
Aaron 6ec5994de0 ViewPhotoAlbum: build edit menu in controller 2024-01-18 13:18:22 +01:00
Aaron 0487ad16b9 Asset: remove old setKeyData method 2024-01-17 17:54:18 +01:00
Aaron 8613054d69 Asset: introduce save method 2024-01-17 17:51:25 +01:00
Aaron ec2d702a0d ViewPhoto: simplify filter verification 2024-01-15 11:33:43 +01:00
Aaron accf093935 PageIndex: rewrite getLink to be way less messy 2024-01-15 00:51:06 +01:00
Aaron d8c3e76df6 ViewPhoto: take filter into account for prev/next links 2024-01-15 00:43:02 +01:00
Aaron f33a7e397c Asset: combine getUrlFor{Next,Previous}InSet into one private method 2024-01-15 00:19:39 +01:00
Aaron 6a25ecec23 ViewPhotoAlbum: add method to filter by id_user_uploaded 2024-01-14 21:06:54 +01:00
Aaron 16683d2f1f Tag: add getContributorList method 2024-01-14 21:06:34 +01:00
Aaron 44ca9ed1a5 Fix dereferencing $tag when null 2024-01-14 16:15:23 +01:00
minnozz 0da1558bd3 Merge pull request 'Rework meta data display on photo page' (#45) from photo-page into master
Reviewed-on: #45
Reviewed-by: Bart Schuurmans <bart@minnozz.com>
2024-01-13 17:23:05 +01:00
Aaron bc08e867f0 PhotoPage: make prev/next photo logic more direct 2024-01-11 18:54:54 +01:00
Aaron f9ab90e925 EXIF: add special handling for Pentax Model/Make pollution 2024-01-11 18:45:22 +01:00
Aaron 321e2587b5 PhotoMosaic: break out early in case of perfect score 2023-12-20 16:25:58 +01:00
Aaron 37cc627e20 PhotosIndex: add dualMixed layout
This combines one landscape with one portrait.
2023-12-20 16:23:19 +01:00
Aaron 553744aeb5 PhotoMosaic: fit batch of photos to best layout instead 2023-12-19 21:57:29 +01:00
Aaron d2fa547257 PhotoMosaic: keep queue ordered by date captured 2023-12-19 17:16:57 +01:00
Aaron 6150922a1f ErrorHandler: fix longstanding typo, occur*r*ed 2023-12-14 21:14:09 +01:00
Aaron efb35cfd6a PhotoMosaic: add sixLandscapes layout, combining side and row 2023-12-02 01:29:11 +01:00
Aaron d42c3c142c PhotosIndex: differentiate dual/single layouts by landscape/portrait 2023-12-02 00:50:04 +01:00
Aaron d45b467bb1 PhotoMosaic: rewrite getRow to use availableLayouts 2023-12-02 00:24:43 +01:00
Aaron 8700fc1417 PhotoMosaic: introduce availableLayouts method 2023-12-01 23:41:05 +01:00
Aaron b98785d7b2 PhotoMosaic: remove unused getRecentPhotos method 2023-12-01 23:39:55 +01:00
Aaron 8e0e642d34 PhotoMosaic: reorder methods to be alphabetically ordered 2023-12-01 22:47:51 +01:00
Roflin aeaff887ca Merge pull request 'Asset: let slugs consist only of an explicit set of allowed characters' (#41) from clean-slugs into master
Reviewed-on: #41
2023-11-22 16:03:54 +01:00
Aaron baa928531b Asset: let slugs consist only of an explicit set of allowed characters 2023-11-20 22:45:48 +01:00
Aaron 65ee07d95b Session: centralise how session tokens are handled 2023-11-20 20:59:35 +01:00
Aaron 5f778d73b4 Session: remove checks for matching IP address and user agent
This was considered good practice in the days before always-on https,
but is considered superfluous today. It even gets in the way of IPv6
privacy extensions, which is the main argument for removing them today.
2023-11-20 20:58:20 +01:00
Aaron 0c861bf976 EditAsset: allow changing an asset's parent album 2023-11-12 17:26:03 +01:00
Aaron 0c13a39d04 Image: don't re-queue thumbnails when deleting them 2023-11-11 15:34:45 +01:00
Aaron e28fcd8b03 Move photo deletion from ViewPhoto to EditAsset
Removes the intermediate confirmation page, instead using JavaScript for confirmation.

Fixes an XSS issue, in that the previous method was not passing or checking the session (!)
2023-11-11 15:29:32 +01:00
Aaron 83da4a26ac EditAsset: allow users to edit their own photos 2023-11-11 15:14:57 +01:00
Aaron 03ad26655c Remove unused Cache class
Kabuki CMS uses a Cache class to cache objects using APCU, but Pics has never used it.
2023-06-06 12:25:36 +02:00
Aaron 6930c0a06a Misc: use the correct copyright headers 2023-04-08 21:32:38 +02:00
Aaron ed07668b2e Database: connect using utf8mb4 2023-04-08 14:54:55 +02:00
Aaron be909bf54d PhotosIndex: rename 'row' layout to 'landscapes' 2023-04-01 14:41:24 +02:00
Aaron 68ef80fb9f PhotoMosaic: improve heuristic for landscape/portrait row 2023-04-01 14:40:19 +02:00
Aaron a260f4ff88 ErrorHandler: use var_export for dumping superglobals as well 2023-03-28 19:21:19 +02:00
Aaron 2a528f2830 ErrorHandling: improve argument handling for debug info
`var_dump` was the wrong function to call for objects, as it would just output all object
data to the output buffer... Let's generalise and use `var_export` instead :-)
2023-03-28 19:21:07 +02:00
Aaron b2bcb6a124 Fix error handling for functions without arguments 2023-03-15 09:49:55 +01:00
Aaron d1741f2478 User: less strict typing for $reset_key property 2023-03-14 21:22:35 +01:00
Aaron 41881594e9 PhotoMosaic: make photo order more intuitive 2023-03-12 12:34:47 +01:00
Aaron 29bf6af1f8 Asset: delete thumbnails when deleting an assets 2023-03-12 12:21:43 +01:00