Commit graph

35 commits

Author SHA1 Message Date
n1rwana
faef489220 Merge branch 'master' of https://github.com/openvk/openvk into pr/675 2023-07-28 00:44:05 +03:00
celestora
1a4696da91 Don't update last visit date for deleted and banned users
Fixes #665
2022-08-19 17:04:24 +03:00
Ilya Prokopenko
200414b67d
Use redirect() instead of header("Location: ...") 2022-08-09 12:52:36 +07:00
Ilya Prokopenko
b1ce106e4c
Profile deactivation function (#626) 2022-08-05 23:00:52 +03:00
Maxim Leshchenko
fe2010560a
Global: Make code more consistent with code style 2022-05-08 12:11:18 +02:00
Celestora
8b3917e863 Add X-Accel-Expires for non-authorized users 2022-04-04 16:43:40 +03:00
celestora
0cd75a5a3d
Add X-OpenVK-User-Validated header 2022-04-04 15:01:12 +03:00
veselcraft
ba360888a4
Email: Bring back timezone fix 2022-01-31 15:55:11 +03:00
veselcraft
1df0545061
[WIP Maybe] Email: Add verification mechanism
This does work only if email is required by instance. If you're sysadmin, you can configure it in openvk.yml.
2022-01-31 14:45:53 +03:00
Maxim Leshchenko
dcd18d266f
Users: Do not constantly reload the page about the user's ban
Closes #440
2022-01-28 18:11:58 +02:00
Ilya Prokopenko
22157c7fa3
[SECURITY] Deny login to a deleted account 2022-01-27 14:01:27 +03:00
veselcraft
7baa4cf20a
Global: Add a date adaptation to the user's timezone
Closes #170
2022-01-22 15:54:57 +03:00
celestora
57e2cd3152
Fix typo in OpenVKPresenter::setSessionTheme
Absence of dollar sign led to condition being always evaluated to true, regardless of arguments passed. Le bug broke behaviour of session themes.
This patch fixes #428
2022-01-19 18:19:56 +02:00
veselcraft
8e07a59172
Themes: Autodetect Mobile and Desktop platforms
Check out openvk-example.yml to set up default mobile theme (if u have one)

I also changed the function's name and added a 'once' boolean arg which means the theme will be set for only one page

Also closes #402 and #403
2022-01-16 23:15:33 +03:00
Maxim Leshchenko
02e41e19b4
Support: Use pagination in the user's ticket list 2022-01-07 00:59:51 +02:00
Maxim Leshchenko
0a6ce0ffc0
Users: Do not delete subscriptions when banned for flood requests
It wasn't cool
2021-12-25 22:32:15 +02:00
Maxim Leshchenko
566759327e
AJAX: Add some code that can be reused to display AJAX request errors
Also use this to add groups to the left menu
2021-12-25 18:11:05 +02:00
Maxim Leshchenko
a31655cf2d
Users: Translate strings associated with a ban
Also fix the logout from the banned account
2021-12-13 16:37:43 +02:00
Celestora
d8b37366cb Fix theme inclusion regression for themes that do not override templates 2021-12-12 16:08:38 +02:00
Celestora
e73857cdc3 Make "themePreview" work correctly with themes that override templates 2021-12-12 15:11:44 +02:00
Maxim Leshchenko
910e604630
L10n: Translate errors in OpenVKPresenter 2021-12-10 19:21:25 +02:00
Maxim Leshchenko
8fd09a7846
Fixup "Support: Display the number of unanswered tickets in the left menu"
Excuse me :3
2021-12-05 00:56:42 +02:00
Maxim Leshchenko
7f4dabef4b
Support: Display the number of unanswered tickets in the left menu 2021-12-04 22:15:13 +02:00
veselcraft
c6ab5b0ac5
Xmas: Custom header and xmas is activated after 1 december 2021-12-01 23:12:05 +03:00
veselcraft
478f8f9368
Support: Indicator for answered tickets for user
Fixes #187
2021-11-27 12:24:34 +03:00
veselcraft
44893ff40f
Themes: Hot fix for unauthorized users 2021-11-07 00:30:35 +03:00
veselcraft
1dff89972e
Themes: Now you should not reload page twice after changeing theme
Also added a setTempTheme global presenter function
2021-11-06 23:43:48 +03:00
Celestora
0acad2066f Add skinning ability via override_templates themepack option 2021-09-16 20:24:03 +03:00
root
7f1a5f2354 User: Now the User's page can be marked as Deceased. And now the user can be Incognito (at least, admins)
To mark the page as Deceased, type  in  field in Database. To be Incognito, type  in  field.

Specially for deceased drbream
2021-09-11 01:33:45 +03:00
Alma Armas
0bdca7a0ff Make sidebar login redirect back 2021-01-27 18:00:30 +00:00
Alma Armas
2f09e32b1e Add rate limiting feature
Co-authored-by: Rempai <kitsuruko@gmail.com>
2020-12-31 21:19:58 +00:00
veselcraft
6d389537e3 [FIX] Xmas header does not shows up for guests 2020-12-29 12:24:17 -05:00
veselcraft
2f76cbf7e2 [ADDITION] Xmas header
Xmas theme will be applied from 15 December to 15 January

Themes supports xmas modifications too, just put your "xmas.css" file in the same folder as "styles.css" there
2020-12-28 17:39:55 -05:00
Alma Armas
e4787750fa Modify OpenVKPresenter::hasPermission 2020-07-17 16:25:08 +00:00
Jill Stingray
db845c3c0b Initial commit 2020-06-07 19:04:43 +03:00