Commit Graph

55 Commits

Author SHA1 Message Date
buaapyj
58b6a78119 Update AnnounceController.php 2019-05-04 03:17:55 +08:00
buaapyj
fcfc081019 Update AnnounceController.php 2019-05-04 03:16:35 +08:00
buaapyj
e15948828d Update AnnounceController.php 2019-05-04 03:15:40 +08:00
buaapyj
7118cf1c44 Update AnnounceController.php
add Ipv6 support for Tracker based on IPv6 Tracker Extension(BEP 7 on BitTorrent.org) #699
2019-05-04 03:13:45 +08:00
buaapyj
7bb55c139b Update AnnounceController.php
add Ipv6 support for Tracker based on IPv6 Tracker Extension(BEP 7 on BitTorrent.org) #699
2019-05-04 03:09:53 +08:00
HDVinnie
b7813b6814 (Update) AnnounceController 🚀
- ref. #710
2019-04-30 21:22:56 -04:00
HDVinnie
2c3d2e4f5f (Update) AnnounceController 🚀
- avoid using super-global variable $_SERVER.
2019-04-30 17:08:04 -04:00
HDVinnie
903c148391 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-04-24 19:39:24 +00:00
HDVinnie
56dacdf7b4 (Update) Announce Controller 🚀
- closes #680
2019-04-22 20:08:15 -04:00
HDVinnie
67339d7329 (Update) PHPDocs 🚀 2019-04-03 20:02:01 -04:00
HDVinnie
1e40db9cf0 (Update) Relocate TorrentTools + Bencode To Helpers 🚀
- these are better fit as helpers and not a service.
2019-03-19 13:44:19 -04:00
HDVinnie
408af47b0b (Update) AnnounceController 🚀
- helps combat agaist mass announces from a single user by return a random announce interval per torrent. Thanks @werrpy  for the idea!
2019-03-13 21:14:29 -04:00
HDVinnie
e0e1aa924b Apply fixes from StyleCI 2019-02-22 13:16:32 +00:00
HDVinnie
3c87845e54 (Update) Namespace models under App\Models 🚀 2019-02-22 08:15:41 -05:00
HDVinnie
0850390860 (Update) Standardize Where Expressions 🚀
- using `Model::where('download', '=', 1)` over`Model::where('download', 1)`
- decided is easier for new devs to understand.
- thanks to @werrpy for helping with the regex to mass update.
2018-12-16 18:32:58 -05:00
HDVinnie
7358d3d0bb (Update) Announce Controller 🚀
- allow for rate limit to be configuarable
2018-12-14 12:12:24 -05:00
HDVinnie
aebc64e044 Apply fixes from StyleCI 2018-12-08 16:26:45 +00:00
HDVinnie
ed51d34ccb (Update) Announce Controller
- remove eager loading
2018-12-08 11:25:42 -05:00
HDVinnie
2f2c52328b Apply fixes from StyleCI 2018-12-06 22:57:41 +00:00
HDVinnie
00bb324053 Apply fixes from StyleCI 2018-12-06 14:42:13 +00:00
HDVinnie
42b7f9deb5 (Fix) Announce Controller
- fix mistake from commit 619d83098b
2018-11-10 14:39:27 -05:00
HDVinnie
619d83098b (Update) Hit&Run / History System
- add prewarnings
- update history table (migration)
- I added a check in the announce controller for the completed event sent by client. During that event I added `$history->immune = ($user->group->is_immune == 1) ? 1 : 0; ` which is pretty much saying is the user in a immune group upon download completion. This will solve people in immune groups that download but dont meet 7 days seedtime but then get demoted and banned. As we wont issue warnings for history records marked as immune.
2018-11-10 12:06:49 -05:00
HDVinnie
80e78d80cd (Update) AnnounceController Query
- standardize select query
2018-11-05 18:48:37 -05:00
Laravel Shift
ca0fe4481a Adopt PSR-2 coding style
The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
2018-10-28 01:44:55 +00:00
HDVinnie
2d907a3a94 (Fix) Announce Controller 2018-08-08 12:31:10 -04:00
HDVinnie
0e23115640 (Update) Announce System
- inplemeted Eager Loading
2018-08-04 17:47:56 -04:00
Laravel Shift
5c1c56d2ca Adopt PSR-2 coding style
The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
2018-07-18 20:13:14 +00:00
HDVinnie
6e34c89b2e (Update) Announce Controller 2018-07-17 08:56:33 -04:00
HDVinnie
e53a3c60d0 (Update) Announce Controller 2018-07-10 20:19:02 -04:00
HDVinnie
63890fc224 (Update) Announce Controller 2018-06-30 09:40:50 -04:00
HDVinnie
8cfb41aea7 (Update) Announce Controller
- typos
2018-06-24 14:07:08 -04:00
HDVinnie
dc16c8179a (Update) Cleanup Announce Controller 2018-06-06 19:56:14 -04:00
HDVinnie
83776fdbf3 (Update) Torrent/Announce System
- update Peers table (rename hash to info_hash for consistency)
- update announce and torrent controller to match new column name
- major cleanup / refactor of torrent controller
- remove torrent rules from model into controller
- cleanup torrent, peer and torrentfile models

- THIS REQUIRES `php artisan migrate`
2018-05-22 14:53:14 -04:00
HDVinnie
2e6cfd470d (Update) General Cleanup Of Controllers
- remove unused “use” statements
2018-04-25 15:15:41 -04:00
HDVinnie
32e8b1c62b (Update) Controller + Commands Query Syntax
- using shorter and more readable syntax
- remove “=“ in where clauses
- uses oldest() / latest() instead of like orderBy('created_at', 'DESC')
2018-03-24 16:42:59 -04:00
HDVinnie
0fd3bbd0c3 (Update) Announce Controller
- user $request->input() over $request->get()
2018-03-21 11:58:37 -04:00
HDVinnie
2da7207d2b (Update) Refactor General and Staff Controllers
- Remove all facades use besides mail
- Use Dependency Injection for Illuminate\Http\Request
- use helpers for auth, cache, validator, and more to rid of facades use
- use $request->input() over $request->get()
- use $request->isMethod('POST') over $request->getMethod('POST')
- general cleanup
2018-03-15 12:32:40 -04:00
HDVinnie
edbc68180e (Update) Refactor Toastr Notifications 2018-02-16 14:57:52 -05:00
HDVinnie
8a8f440781 (Update) Refactor HTTP Redirects
- Use global redirect() helper instead of facade
2018-02-16 14:07:24 -05:00
Hyleus
777bb63880 Change license to AGPL 2018-02-12 17:27:32 +01:00
Laravel Shift
fdb73966cd Adopt PHP short array syntax
Laravel 5 adopted the short array syntax which became available in
PHP 5.4.
2018-01-18 01:04:20 +00:00
Laravel Shift
0e48e34c8a Adopt PSR-2 coding style
The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
2018-01-18 01:04:19 +00:00
HDVinnie
9a807064d6 (Update) Personal Freeleech + Graveyard System + Freeleech Tokens
- Personal Freeleech System Reworked
- Graveyard Working (Beta, could use more love and will get it)
- Added Freeleech Tokens System To Couple With Graveyard
2018-01-15 20:51:20 -05:00
HDVinnie
3f30f6d558 (Feature) Add Announce Config
- Can now set interval and min_interval via config……best to stay with
defaults in my opinion though unless debugging.
2018-01-11 16:16:38 -05:00
MrG01
aab3264054 (Fix) Ghost issue with Announce
- New functions for Blacklist and Request Type
- Reduced call to $request for user agent
- Users who have download rights revoked can seed but not leech
- Ghost peers now are forced into a started event
- Started events should never push stats to history or users
2018-01-11 16:54:23 +02:00
HDVinnie
67981756dc (Fix) Announce Checks 2018-01-07 13:27:21 -05:00
HDVinnie
0c9007bc41 (Update) Announce
- Added more checks
- Added logging
2018-01-07 09:31:12 -05:00
HDVinnie
0d06879cf9 (Fix) Announce Blacklist 2018-01-04 22:29:02 -05:00
HDVinnie
67fce7be50 (Update) Announce Blacklist 2018-01-04 22:02:47 -05:00
HDVinnie
c8c541511a (Feature) Client/Browser Tracker Announce Blacklist 2018-01-04 21:50:46 -05:00