Commit Graph

1759 Commits

Author SHA1 Message Date
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
xiaomlove 86f57ed313 announce add warning message: please select tracker url at user control panel 2025-10-01 02:50:22 +07:00
xiaomlove 717f7c5a30 fix magic.php + improve TrackerUrl::getById() 2025-10-01 02:41:45 +07:00
xiaomlove 598457db48 api return queries when debug 2025-09-29 00:55:07 +07:00
NekoCH 532f3bdb3f migration script
# Conflicts:
#	app/Filament/Resources/Torrent/AnnounceLogResource.php
2025-09-27 12:29:50 +08:00
NekoCH f0b50e4826 update filament to v4
fix torrent name
2025-09-27 12:29:50 +08:00
xiaomlove 3f04ae4163 API add more log 2025-09-27 03:28:27 +07:00
xiaomlove ee46b762eb reAnnounce log use info hash hex 2025-09-26 13:47:38 +07:00
xiaomlove c6c74354c6 fix users seeding_torrent_count 2025-09-24 14:46:14 +07:00
xiaomlove 8b3cc2fe3f shoutbox cancel writeLog 2025-09-23 19:25:29 +07:00
xiaomlove 30e5e305bb misc fix 2025-09-23 17:12:20 +07:00
xiaomlove c1845f276b update translations 2025-09-23 11:53:30 +07:00
xiaomlove 38688178b6 last_query() default return json string 2025-09-23 11:27:30 +07:00
xiaomlove ba1cc0f2bd update .env when run nexus:update 2025-09-22 20:58:08 +07:00
xiaomlove 5cec527a12 torrents.php pageSize max 100 2025-09-22 20:26:08 +07:00
xiaomlove 3b45ce7c15 Merge pull request #378 from JustLookAtNow/JustLookAtNow-patch-pageSize
种子列表页支持传参动态设置每页条数
2025-09-22 20:16:57 +07:00