���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
cutunix-shot
/
app
/
Livewire
/
Site
/
Pages
/
CutunixShot
/
Shot
/
Viewing: Index.php
<?php namespace App\Livewire\Site\Pages\CutunixShot\Shot; use App\Models\Image; use Livewire\Component; use Livewire\WithFileUploads; use Masmerise\Toaster\Toastable; use Intervention\Image\Facades\Image as Intervention; use App\Helpers\HelperClass\GeneralUse; use Illuminate\Support\Facades\Validator; use function App\Helpers\imageHelperApi; use Illuminate\Filesystem\Filesystem; class Index extends Component { use Toastable; use WithFileUploads; public $file; public $group_id; public $type=false; public function mounted($group_id= null,Request $request) { $this->group_id=$group_id; if(!$this->group_id){ return redirect()->to('/' . app()->getLocale() . '/mdf-shot')->with(['error-response'=>'خطای شناسایی اطلاعات ورق ، لطفا مجددا تلاش نمایید']); } if($request->type){ $this->type=true; } } public function updatedfile(Filesystem $filesystem) { $validation=Validator::make(['file'=>$this->file],[ 'file.*' => 'mimes:heic,jpeg,jpg,png|max:30720', ]) ; if($validation->fails()){ $this->error($validation->messages()->first()); return ; } $this->dispatch('startLoading'); if (mime_content_type($this->file->getRealpath()) != 'image/heic') { $image = Intervention::make($this->file->getRealpath()); $image_fix = $image->orientate(); $img_path = $image_fix->dirname.'/'.$image_fix->basename ; }else{ $img_path = $this->file->getRealpath(); } $type = pathinfo($this->file->path(), PATHINFO_EXTENSION); $base64 = 'data:image/' . $type . ';base64,' . base64_encode($img_path); $image=imageHelperApi($base64,$filesystem,'','','',''); Image::where('user_id', auth()->user()->id)->delete(); $insert = Image::create([ 'image'=>$image, 'group_id' => $this->group_id, 'user_id' => auth()->user()->id, ]); $this->dispatch('endLoading'); return redirect()->to('/'.app()->getLocale().'/ai-process/waiting/'.$insert->id); } public function render() { return view('livewire.site.pages.cutunix-shot.shot.index')->layout('components.layouts.site.app',['page_name' => 'shot_index']); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa