Commit Graph

1774 Commits

Author SHA1 Message Date
xiaomlove
2787ec40f4 Merge branch '1.9' into php8 2025-10-31 19:36:13 +07:00
xiaomlove
e37f40f20f improve filter_src() 2025-10-31 19:35:57 +07:00
xiaomlove
c6d99f369f Merge branch '1.9' into php8 2025-10-30 15:37:55 +07:00
xiaomlove
b5bfdc3c99 fix recover.php 2025-10-30 15:27:09 +07:00
xiaomlove
13020d1e48 Merge branch '1.9' into php8 2025-10-30 11:39:54 +07:00
xiaomlove
acb7df6d92 reset try catch 2025-10-30 11:29:00 +07:00
xiaomlove
3d5e316275 fix password related 2025-10-30 10:28:52 +07:00
xiaomlove
771d06c87b Merge branch '1.9' into php8 2025-10-29 17:18:00 +07:00
xiaomlove
f1cbb5c3da [API] torrent list add active_status 2025-10-29 17:02:00 +07:00
xiaomlove
907cca7a40 improve backup cronjob cleanup 2025-10-29 15:28:52 +07:00
xiaomlove
61f4de8868 fix takeupload duplicate tagId 2025-10-28 11:01:58 +07:00
xiaomlove
747d272653 improve check install status when running in docker 2025-10-23 16:19:14 +07:00
xiaomlove
c26bd6f1aa add TranslateWithPluginId 2025-10-23 15:52:40 +07:00
xiaomlove
3e43c630fc improve IP Search getRecords() 2025-10-21 03:26:09 +07:00
xiaomlove
ec66dca358 IP Search 2025-10-21 03:22:55 +07:00
xiaomlove
1b1a2a4969 improve docker init check 2025-10-21 00:11:43 +07:00
xiaomlove
690bc89a83 docker use .env 2025-10-20 17:36:30 +07:00
xiaomlove
ca8edf8a6a UserResource show donor status 2025-10-20 17:16:19 +07:00
xiaomlove
8d10cf7970 Merge branch '1.9' into php8 2025-10-18 02:55:02 +07:00
xiaomlove
39f85fd001 format_comment() add filter_src() 2025-10-17 22:00:39 +07:00
xiaomlove
1329617f9f Merge branch '1.9' into php8 2025-10-16 16:58:10 +07:00
xiaomlove
08dbf79ec9 fix search box category URI 2025-10-16 16:56:53 +07:00
xiaomlove
6ab056d8a8 redis use pconnect when php runs in fpm mode 2025-10-14 22:27:14 +07:00
xiaomlove
47ddb94806 Merge pull request #387 from specialpointcentral/attendance
Add configurable attendance CAPTCHA
2025-10-14 15:04:51 +07:00
xiaomlove
2b107119c5 Merge remote-tracking branch 'origin/php8' into php8 2025-10-14 14:59:15 +07:00
xiaomlove
ba8715a3f9 Refactor IP History 2025-10-14 14:54:44 +07:00
Qi HU
479ace4df7 feat(attendance): make captcha requirement configurable
- add Filament toggle to control whether attendance check-in requires captcha
- persist the toggle under captcha.attendance.enabled with sensible defaults

Signed-off-by: Qi HU <github@spcsky.com>
2025-10-14 10:59:13 +08:00
Qi HU
908b4b19ea feat(attendance): enforce captcha validation before check-in
- require a successful captcha challenge before recording the day’s attendance
- preserve the original attendance summary layout after a successful check-in

Signed-off-by: Qi HU <github@spcsky.com>
2025-10-14 10:39:57 +08:00
xiaomlove
10edaea0f2 Merge pull request #385 from specialpointcentral/php8
Enhance captcha UX and add admin configuration panel
2025-10-13 18:41:01 +07:00
Qi HU
ce913b7a54 feat(admin): manage captcha configuration centrally
- add a dedicated Filament settings tab for captcha drivers
- persist selections into config-compatible schema and migrate legacy keys
- extend captcha manager to consume database overrides transparently

Signed-off-by: Qi HU <github@spcsky.com>
2025-10-13 12:15:33 +08:00
Qi HU
60e1e45d73 feat(i18n): clarify captcha challenge labels
- harmonize challenge prompts across supported locales
- reuse shared helper to reduce duplicated translations
- ensure login flow references updated label key

Signed-off-by: Qi HU <github@spcsky.com>
2025-10-13 12:15:25 +08:00
Qi HU
1614ac3f3d refactor(ui): improve captcha form responsiveness
- adjust layout spacing on public auth-related templates
- ensure captcha challenge areas remain visible on small screens
- align image driver output with refreshed markup

Signed-off-by: Qi HU <github@spcsky.com>
2025-10-13 12:15:15 +08:00
xiaomlove
0f172a94be Merge pull request #384 from specialpointcentral/php8
[RFC] Refine captcha configuration and drivers
2025-10-12 04:18:55 +07:00
xiaomlove
4f3a3a89a2 Merge pull request #383 from ydzhou/php8
Update default torrent clients in the allowlist
2025-10-12 04:17:49 +07:00
xiaomlove
cd0ef0d106 Activity Log 2025-10-12 04:13:18 +07:00
Qi HU
9033eff8ea feat: Refine captcha configuration and drivers
Introduce a configurable captcha manager with drivers for image,
Cloudflare Turnstile, and Google reCAPTCHA, including fallback
behaviour.

Refactor login, signup, complain, and related flows to use the new
abstraction while simplifying the legacy image endpoint.

Document captcha environment options and restore classic defaults in
.env.example.

Signed-off-by: Qi HU <github@spcsky.com>
2025-10-11 23:38:27 +08:00
ydzhou
19b875a5d3 Update default torrent clients in the allowlist 2025-10-08 22:39:39 -07:00
xiaomlove
fc4c174442 add navigation group: Tracker 2025-10-04 15:31:46 +07:00
xiaomlove
d58a1a9dbf Merge pull request #382 from specialpointcentral/php8
Fix duplicate includes and update styles
2025-10-02 22:00:25 +07:00
xiaomlove
e17de1109b Merge branch '1.9' into php8 2025-10-02 21:26:16 +07:00
Qi HU
d9f1612e8e fix: Fix duplicate includes in app.php
When we use `php artisan optimize` command, it will cause duplicate includes:
```
PHP Fatal error:  Cannot redeclare function get_global_sp_state() (previously declared in include/globalfunctions.php:3) in include/globalfunctions.php on line 3

   Symfony\Component\ErrorHandler\Error\FatalError

  Cannot redeclare function get_global_sp_state() (previously declared in include/globalfunctions.php:3)

  at include/globalfunctions.php:3
      1▕ <?php
      2▕
  ➜   3▕ function get_global_sp_state()
      4▕ {
      5▕        static $global_promotion_state;
      6▕        $cacheKey = \App\Models\Setting::TORRENT_GLOBAL_STATE_CACHE_KEY;
      7▕        if (is_null($global_promotion_state)) {
      8▕         $row = \Nexus\Database\NexusDB::remember($cacheKey, 600, function () use ($cacheKey) {
      9▕             return \Nexus\Database\NexusDB::getOne('torrents_state', 1);

   Whoops\Exception\ErrorException

  Cannot redeclare function get_global_sp_state() (previously declared in include/globalfunctions.php:3)

  at include/globalfunctions.php:3
      1▕ <?php
      2▕
  ➜   3▕ function get_global_sp_state()
      4▕ {
      5▕        static $global_promotion_state;
      6▕        $cacheKey = \App\Models\Setting::TORRENT_GLOBAL_STATE_CACHE_KEY;
      7▕        if (is_null($global_promotion_state)) {
      8▕         $row = \Nexus\Database\NexusDB::remember($cacheKey, 600, function () use ($cacheKey) {
      9▕             return \Nexus\Database\NexusDB::getOne('torrents_state', 1);

      +1 vendor frames

  2   [internal]:0
      Whoops\Run::handleShutdown()
```

So we should use `require_once` instead of `require` to avoid this issue.

Signed-off-by: Qi HU <github@spcsky.com>
2025-10-02 21:46:24 +08:00
SPC
0f089d39ab fix: style for staff.php and lang_functions.php
Signed-off-by: SPC <github@spcsky.com>
2025-10-02 21:43:45 +08:00
xiaomlove
72fee4db99 fix forums.php receiver not exists error 2025-10-02 20:15:32 +07:00
xiaomlove
f2a7f2c09c fix forums.php add message 2025-10-02 20:08:42 +07:00
xiaomlove
aa84bb90c8 fix forums.php pm url 2025-10-02 17:39:55 +07:00
xiaomlove
3670c94142 disable topbar 2025-10-02 17:11:49 +07:00
xiaomlove
4f597e93dd update filament to v4.1 2025-10-02 14:58:30 +07:00
xiaomlove
0d96380d60 Merge pull request #377 from ex-hentai/filament-v4
update filament to v4
2025-10-01 20:53:33 +07:00
xiaomlove
612e83744f warning fix 2025-10-01 12:01:53 +07:00
xiaomlove
e085d52679 mybonus.php add min size description 2025-10-01 03:14:42 +07:00