Skip to content

Commit

Permalink
Merge pull request #2191 from HDInnovations/6.x.x
Browse files Browse the repository at this point in the history
(Release) v6.0.7
  • Loading branch information
HDVinnie authored Apr 15, 2022
2 parents 4eed0e8 + 7630714 commit 255b403
Show file tree
Hide file tree
Showing 22 changed files with 193 additions and 180 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,23 @@

## <a name="introduction"></a> 🧐 Introduction

I have been developing a Nex-Gen Torrent Tracker Software called "UNIT3D." This is a PHP software based on the lovely Laravel Framework -- currently Laravel Framework 8, MySQL Strict Mode Compliant, and PHP 8.0 Ready. The code is well-designed and follows the PSR-2 coding style. It uses an MVC Architecture to ensure clarity between logic and presentation. As a hashing algorithm of Bcrypt or Argon2 is used, to ensure a safe and proper way to store the passwords for the users. A lightweight Blade Templating Engine. Caching System Supporting: "apc,” "array,” "database,” "file," "memcached," and "redis" methods. Eloquent and much more!
I have been developing a Nex-Gen Torrent Tracker Software called "UNIT3D." This is a PHP software based on the lovely Laravel Framework -- currently Laravel Framework 8, MySQL Strict Mode Compliant, and PHP 8.1 Ready. The code is well-designed and follows the PSR-2 coding style. It uses an MVC Architecture to ensure clarity between logic and presentation. As a hashing algorithm of Bcrypt or Argon2 is used, to ensure a safe and proper way to store the passwords for the users. A lightweight Blade Templating Engine. Caching System Supporting: "apc,” "array,” "database,” "file," "memcached," and "redis" methods. Eloquent and much more!

## <a name="features"></a> 💎 Some Features

UNIT3D currently offers the following features:
- Internal Forums System
- Staff Dashboard
- Faceted Ajax Torrent Search System
- BON Store
- Torrent Request Section with BON Bounties
- Livewire Powered Search Systems (Torrents, Requests, Users, Etc)
- Bonus Points + Store
- Torrent Request Section with Bonus Point Bounties and votes
- Freeleech System
- Double Upload System
- Featured Torrents System
- Polls System
- Extra-Stats
- Torrent Grouping
- Top 10 System
- PM System
- Multilingual Support
- TwoStep Auth System
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/AnnounceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function index(Request $request, string $passkey): ?\Illuminate\Http\Resp
* Check Download Slots.
*/
if (\config('announce.slots_system.enabled') == true) {
$this->checkDownloadSlots($user);
$this->checkDownloadSlots($queries, $user);
}

/**
Expand Down Expand Up @@ -402,11 +402,11 @@ private function checkMaxConnections($torrent, $user): void
/**
* @throws \App\Exceptions\TrackerException
*/
private function checkDownloadSlots($user): void
private function checkDownloadSlots($queries, $user): void
{
$max = $user->group->download_slots;

if ($max !== null && $max >= 0) {
if ($max !== null && $max >= 0 && $queries['left'] != 0) {
$count = Peer::where('user_id', '=', $user->id)
->where('seeder', '=', 0)
->count();
Expand Down
2 changes: 2 additions & 0 deletions app/Models/ApplicationImageProof.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ApplicationImageProof extends Model
{
use HasFactory;
use Auditable;

/**
* The Attributes That Are Mass Assignable.
Expand Down
2 changes: 2 additions & 0 deletions app/Models/ApplicationUrlProof.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ApplicationUrlProof extends Model
{
use HasFactory;
use Auditable;

/**
* The Attributes That Are Mass Assignable.
Expand Down
2 changes: 0 additions & 2 deletions app/Models/BonExchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class BonExchange extends Model
{
use HasFactory;
use Auditable;

/**
* The Database Table Used By The Model.
Expand Down
2 changes: 0 additions & 2 deletions app/Models/BonTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class BonTransactions extends Model
{
use HasFactory;
use Auditable;

/**
* Indicates If The Model Should Be Timestamped.
Expand Down
2 changes: 2 additions & 0 deletions app/Models/MediaLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Model;

class MediaLanguage extends Model
{
use Auditable;
}
2 changes: 0 additions & 2 deletions app/Models/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ class Notification extends Model
{
use HasFactory;
use Auditable;

//
}
2 changes: 2 additions & 0 deletions app/Models/Ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Ticket extends Model
{
use HasFactory;
use Auditable;

protected $casts = [
'closed_at' => 'datetime',
Expand Down
2 changes: 2 additions & 0 deletions app/Models/TicketAttachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class TicketAttachment extends Model
{
use HasFactory;
use Auditable;

protected $appends = [
'full_disk_path',
Expand Down
2 changes: 2 additions & 0 deletions app/Models/TicketCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class TicketCategory extends Model
{
use HasFactory;
use Auditable;
}
2 changes: 2 additions & 0 deletions app/Models/TicketPriority.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class TicketPriority extends Model
{
use HasFactory;
use Auditable;
}
2 changes: 2 additions & 0 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use App\Helpers\Bbcode;
use App\Helpers\Linkify;
use App\Helpers\StringHelper;
use App\Traits\Auditable;
use App\Traits\UsersOnlineTrait;
use Assada\Achievements\Achiever;
use Carbon\Carbon;
Expand All @@ -33,6 +34,7 @@ class User extends Authenticatable
use Achiever;
use SoftDeletes;
use UsersOnlineTrait;
use Auditable;

/**
* The Attributes Excluded From The Model's JSON Form.
Expand Down
2 changes: 0 additions & 2 deletions app/Models/UserNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class UserNotification extends Model
{
use HasFactory;
use Auditable;

/**
* Indicates If The Model Should Be Timestamped.
Expand Down
2 changes: 0 additions & 2 deletions app/Models/UserPrivacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class UserPrivacy extends Model
{
use HasFactory;
use Auditable;

/**
* Indicates If The Model Should Be Timestamped.
Expand Down
2 changes: 2 additions & 0 deletions app/Models/Watchlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

namespace App\Models;

use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Watchlist extends Model
{
use HasFactory;
use Auditable;

/**
* Belongs To A User.
Expand Down
Loading

0 comments on commit 255b403

Please sign in to comment.