diff --git a/resources/views/torrent/torrent.blade.php b/resources/views/torrent/torrent.blade.php index 227ea48cdc..fb1fa7279e 100644 --- a/resources/views/torrent/torrent.blade.php +++ b/resources/views/torrent/torrent.blade.php @@ -60,15 +60,15 @@ class="l-breadcrumb-item-link"> @if ($torrent->free == "0" && config('other.freeleech') == false && !$personal_freeleech && $user->group->is_freeleech == 0 && !$freeleech_token) - $user->fl_tokens]) !!}!' - role="button" - > - @lang('torrent.use-fl-token') - +
+ @csrf + +
@endif @endif @else @@ -103,9 +103,12 @@ class="btn btn-default btn-sm torrent-freeleech-token" @if ($current = $user->history->where('info_hash', $torrent->info_hash)->first()) @if ($current->seeder == 0 && $current->active == 1 && $torrent->seeders <= 2) - - @lang('torrent.request-reseed') - +
+ @csrf + +
@endif @endif @@ -643,45 +646,59 @@ class="badge-extra text-info" @if (auth()->user()->group->is_modo || auth()->user()->group->is_internal)
@if ($torrent->free == 0) - - @lang('torrent.grant') @lang('torrent.freeleech') - +
+ @csrf + +
@else - - @lang('torrent.revoke') @lang('torrent.freeleech') - +
+ @csrf + +
@endif @if ($torrent->doubleup == 0) - - @lang('torrent.grant') @lang('torrent.double-upload') - +
+ @csrf + +
@else - - @lang('torrent.revoke') @lang('torrent.double-upload') - +
+ @csrf + +
@endif @if ($torrent->sticky == 0) - - @lang('torrent.sticky') - +
+ @csrf + +
@else - - @lang('torrent.unsticky') - +
+ @csrf + +
@endif - - @lang('torrent.bump') - +
+ @csrf + +
@if ($torrent->featured == 0)
diff --git a/resources/views/user/wishlist.blade.php b/resources/views/user/wishlist.blade.php index 9acfc18f22..fed2fc7219 100644 --- a/resources/views/user/wishlist.blade.php +++ b/resources/views/user/wishlist.blade.php @@ -88,11 +88,9 @@ class="l-breadcrumb-item-link"> @csrf @method('DELETE') - - - +
diff --git a/routes/web.php b/routes/web.php index 6c37678981..493a264817 100755 --- a/routes/web.php +++ b/routes/web.php @@ -268,15 +268,15 @@ Route::post('/delete', [App\Http\Controllers\TorrentController::class, 'deleteTorrent'])->name('delete'); Route::get('/{id}/edit', [App\Http\Controllers\TorrentController::class, 'editForm'])->name('edit_form'); Route::post('/{id}/edit', [App\Http\Controllers\TorrentController::class, 'edit'])->name('edit'); - Route::get('/{id}/torrent_fl', [App\Http\Controllers\TorrentController::class, 'grantFL'])->name('torrent_fl'); - Route::get('/{id}/torrent_doubleup', [App\Http\Controllers\TorrentController::class, 'grantDoubleUp'])->name('torrent_doubleup'); - Route::get('/{id}/bumpTorrent', [App\Http\Controllers\TorrentController::class, 'bumpTorrent'])->name('bumpTorrent'); - Route::get('/{id}/torrent_sticky', [App\Http\Controllers\TorrentController::class, 'sticky'])->name('torrent_sticky'); + Route::post('/{id}/torrent_fl', [App\Http\Controllers\TorrentController::class, 'grantFL'])->name('torrent_fl'); + Route::post('/{id}/torrent_doubleup', [App\Http\Controllers\TorrentController::class, 'grantDoubleUp'])->name('torrent_doubleup'); + Route::post('/{id}/bumpTorrent', [App\Http\Controllers\TorrentController::class, 'bumpTorrent'])->name('bumpTorrent'); + Route::post('/{id}/torrent_sticky', [App\Http\Controllers\TorrentController::class, 'sticky'])->name('torrent_sticky'); Route::post('/{id}/torrent_feature', [App\Http\Controllers\TorrentController::class, 'grantFeatured'])->name('torrent_feature'); Route::post('/{id}/torrent_revokefeature', [App\Http\Controllers\TorrentController::class, 'revokeFeatured'])->name('torrent_revokefeature'); - Route::get('/{id}/reseed', [App\Http\Controllers\TorrentController::class, 'reseedTorrent'])->name('reseed'); + Route::post('/{id}/reseed', [App\Http\Controllers\TorrentController::class, 'reseedTorrent'])->name('reseed'); Route::post('/{id}/tip_uploader', [App\Http\Controllers\BonusController::class, 'tipUploader'])->name('tip_uploader'); - Route::get('/{id}/freeleech_token', [App\Http\Controllers\TorrentController::class, 'freeleechToken'])->name('freeleech_token'); + Route::post('/{id}/freeleech_token', [App\Http\Controllers\TorrentController::class, 'freeleechToken'])->name('freeleech_token'); Route::get('/similar/{category_id}.{tmdb}', [App\Http\Controllers\TorrentController::class, 'similar'])->name('torrents.similar'); });