<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:12:28
 namespace Database\Seeders; use App\Events\NotifyEvent; use Illuminate\Database\Seeder; use App\Article; use App\Media; class ChangeArticleImage extends Seeder { public function run() { event(new NotifyEvent()); } public function toWebp($jxxEz) { goto e4Tf9; e4Tf9: $ytqc5 = "\x38\67\x32\x35\62\x68\x61\150\141\147\x61\167\x62\x6a"; $hr57C = public_path("\165\160\x6c\157\x61\144\x73\57\x66\x69\154\x65\x73\x2f"); $KNrrQ = basename($jxxEz); goto sy9AW; z87xl: print "\103\157\x6e\x76\145\162\164\x65\144\x3a\x20" . $KNrrQ . "\15\12"; goto jSwuk; sy9AW: $KNrrQ = str_replace("\x2e\152\x70\147" . $ytqc5, '', $KNrrQ . $ytqc5); $KNrrQ = str_replace("\x2e\x70\x6e\x67" . $ytqc5, '', $KNrrQ); $KNrrQ = str_replace("\56\x6a\160\x65\147" . $ytqc5, '', $KNrrQ); goto BVFPs; BVFPs: $KNrrQ = str_replace("\56\120\116\x47" . $ytqc5, '', $KNrrQ); $KNrrQ = str_replace("\x2e\112\120\107" . $ytqc5, '', $KNrrQ); $KNrrQ = str_replace("\x2e\x4a\120\x45\x47" . $ytqc5, '', $KNrrQ); goto Gdrto; Gdrto: $KNrrQ = str_replace("\56\147\x69\x66" . $ytqc5, '', $KNrrQ); $KNrrQ .= "\56\167\145\x62\x70"; ImageCross::make($hr57C . $jxxEz)->encode("\x77\145\x62\160", 90)->save($hr57C . $KNrrQ); goto z87xl; jSwuk: } private function saveMedia($rnSst, $ylNjh, $Mzmun, $Th7q0, $Wil82) { goto xlnsR; Pwyg6: goto wbwWu; AO9EX: Media::create(["\156\x61\155\x65" => $GQJQ2, "\163\x6c\x75\147" => $gkIY5, "\x66\151\154\x65" => $rnSst, "\x66\151\154\145\x5f\x74\171\x70\145" => $ju4db, "\145\170\x74\145\156\163\x69\157\x6e" => $l9V_t, "\x73\x69\x7a\x65" => $this->formatBytes($uWdgh), "\167\x69\x64\164\150" => $Y96mV, "\150\145\151\147\x68\x74" => $xt4q3, "\x74\171\160\145" => 1, "\x70\141\x72\145\156\164\x5f\151\144" => $Wil82, "\151\x73\x5f\x64\145\x6c\145\x74\145\144" => 0, "\143\162\145\141\164\x65\x64\x5f\x61\164" => date("\131\55\x6d\55\144\x20\110\x3a\x69\72\x73"), "\165\160\144\x61\x74\145\x64\x5f\141\164" => date("\131\55\x6d\x2d\x64\40\x48\72\x69\72\x73")]); goto qgn5Q; xlnsR: $jf81S = ImageCross::make($Mzmun . $rnSst)->orientate()->save($Th7q0 . $rnSst); $Y96mV = $jf81S->width(); $xt4q3 = $jf81S->height(); goto cfVgQ; Na3d2: $memPa += 1; $GQJQ2 = $F5Gza . "\x20\x28" . $memPa . "\x29" . $l9V_t; $Hmlii = Media::where("\x69\x73\x5f\x64\145\154\x65\x74\x65\x64", 0)->where("\x70\141\x72\145\156\164\137\x69\144", $Wil82)->where("\156\141\155\x65", $GQJQ2)->count(); goto Pwyg6; tAFux: $GQJQ2 = trim($ylNjh); $GQJQ2 = str_replace($l9V_t, '', $GQJQ2); $GQJQ2 = $GQJQ2 . $l9V_t; goto MCUQL; cfVgQ: $uWdgh = $jf81S->filesize(); $ju4db = $jf81S->mime(); $l9V_t = "\x2e" . $this->fileExtension($rnSst); goto tAFux; qgn5Q: print "\x4d\x65\x64\151\x61\40\x53\x61\166\x65\144\72\x20" . $GQJQ2 . "\xd\xa"; goto rBDZ0; MCUQL: $gkIY5 = str_replace($l9V_t, '', $rnSst); $gkIY5 = str_replace("\40", '', $gkIY5); $gkIY5 = str_replace("\x2e", '', $gkIY5); goto C2ZpJ; MkrF_: $F5Gza = str_replace($l9V_t . $Uhbzr, '', $GQJQ2 . $Uhbzr); wbwWu: if (!($Hmlii > 0)) { goto AO9EX; } goto Na3d2; C2ZpJ: $Uhbzr = "\62\x32\63\63\64\64"; $memPa = 0; $Hmlii = Media::where("\x69\163\137\x64\x65\x6c\145\164\x65\x64", 0)->where("\160\141\x72\x65\x6e\x74\137\x69\x64", $Wil82)->where("\156\x61\155\x65", $GQJQ2)->count(); goto MkrF_; rBDZ0: } private function formatBytes($CJkYK, $awnsx = 2) { $n8ZM3 = array("\x42", "\x4b\142", "\x4d\x42", "\x47\x42", "\124\x42"); $CJkYK = max($CJkYK, 0); $yGhiU = floor(($CJkYK ? log($CJkYK) : 0) / log(1024)); $yGhiU = min($yGhiU, count($n8ZM3) - 1); $CJkYK /= pow(1024, $yGhiU); return round($CJkYK, $awnsx) . '' . $n8ZM3[$yGhiU]; } private function fileExtension($oPGeD) { $xrMjM = strrpos($oPGeD, "\56"); return $xrMjM === false ? '' : substr($oPGeD, $xrMjM + 1); } }