Commit graph

12 commits

Author SHA1 Message Date
tadhgboyle
07d1e05229
Create and implement Cache#fetch (#3662)
* Create and implement `Cache#fetch`

* convert more

* fix

* wip

* wip

* Apply fixes from StyleCI (#3663)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* wip, more conversions

* clear widget cache on setting update

* fix

* convert

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2025-05-20 18:37:24 -07:00
Sam
da7546291e
fix: country name cannot be null in getIpCountry (#3587)
Co-authored-by: Sam <samerton@users.noreply.github.com>
2025-03-29 10:53:53 +00:00
tadhgboyle
ab6a0331cb
Add user sessions page (#3278)
* Save device information on login

* Users sessions page

* PR comments & device detection improvements

* Fix code-style

* Store IP in session & display on the user sessions page

* Don't show session hash, add last seen

* Fix last seen translation, ...

* Unnecesary Output::getClean() - Partydragen

* Apparently I did use admin/sessions language term

* Show location of ip

* Update custom/panel_templates/Default/core/users_sessions.tpl

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update custom/languages/en_UK.json

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update modules/Core/pages/panel/users_sessions.php

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update modules/Core/pages/panel/users_sessions.php

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* use country the second time

* wip

* wip usercp sessions view

* wip

* wip - show ip to user

* wip

* wip

* chore: fix build issues

* feat: add token expiry to sessions table and increase default expiry to 1 month

* feat: prevent access to geoip database

* feat: correct migrations for user sessions columns

* feat: add missing localisation terms to sessions page

* chore: purify agent info

---------

Co-authored-by: Supercrafter100 <58982133+supercrafter100@users.noreply.github.com>
Co-authored-by: Sam <samerton@users.noreply.github.com>
2024-10-17 23:21:27 -07:00
tadhgboyle
0c80570609
Enable StyleCI (#3475)
* Create StyleCI config file

* Disable `phpdoc_separation`

* Apply fixes from StyleCI (#3476)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* style: styleci fixes

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Sam <samerton@users.noreply.github.com>
2024-03-09 11:19:55 +00:00
Robin
7f2b7b9513
Use X-Real-IP header last (#3230) 2023-01-25 21:37:04 +00:00
Robin
8f1a9ef3bd
Use X-Forwarded-Proto to determine port (#3229) 2023-01-25 22:31:21 +01:00
Tadhg Boyle
650f2ef09d
Misc fixes (#3128) 2023-01-13 14:38:57 -08:00
Robin
ba33533398 Case insensitive header handling 2022-06-25 10:00:17 +02:00
Mac
461cd1d38d Fix Cloudflare typo 2022-06-14 15:23:41 +00:00
Robin
e4430977ef Print invalid proto value for debugging 2022-06-14 14:34:40 +02:00
Tadhg Boyle
5e07ac2d70 Create and utilize Text class, add deprecation warnings 2022-06-13 22:44:01 -06:00
Tadhg Boyle
307096fb54 Create and utilize HttpUtils class 2022-06-13 22:24:43 -06:00