Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto q2SiJ; X0g5O: $counter = 0; goto AEtuy; q2SiJ: header("\103\157\156\164\x65\1..

Decoded Output download

<?php 
 goto q2SiJ; X0g5O: $counter = 0; goto AEtuy; q2SiJ: header("Content-Type: text/html; charset=utf-8"); goto YP4N1; Ljx2q: $products = array(); goto hzYzb; PW9K1: $empty1 = $obj->hideEmptyCategories(); goto Ure54; NBJeB: include "./importProds2.php"; goto X7W6f; AEtuy: $catsAdded = array(); goto xT_vA; Ure54: var_dump($empty1); goto iW5wZ; Av24y: $categorsAll = $obj->getCategories(); goto zzPq2; ONNYJ: foreach ($categories as $key => $cat) { if (!isset($categorsAll[$key]) && !in_array($key, array("630", "18"))) { $res1 = $obj->adderCategory($key, $cat); } elseif (isset($categorsAll[$key])) { $res1 = $obj->updateCategory($key, $cat); } } goto Av24y; zzPq2: $prodsAll = $obj->getProducts(); goto X0g5O; X7W6f: $obj = new importProds(); goto hZlja; xT_vA: foreach ($products as $id => $prod) { $catsAdded[$prod["categoryId"]] = $catsAdded[$prod["categoryId"]] ?: 0; if ($categorsAll[$prod["categoryId"]]) { if (!isset($prodsAll[$id])) { $res1 = $obj->addProduct($categorsAll[$prod["categoryId"]], $prod); $fileArr = $obj->uploadPhotoFull($prod["picture"]); $res2 = $obj->updatePhoto($id, $fileArr); } else { $res1 = $obj->updateProduct($categorsAll[$prod["categoryId"]], $prod, $prodsAll[$id]); } } } goto Tn3DB; ySnat: $categorsAll = $obj->getCategories(); goto ONNYJ; hZlja: echo "<pre>"; goto gCFyr; X3dP8: var_dump($visible); goto PW9K1; hzYzb: foreach ($xml->shop->offers->offer as $offer) { $id = $offer->attributes()["id"]->__toString(); $name = $offer->name->__toString(); $description = $offer->description->__toString(); $picture = $offer->picture->__toString(); $price = $offer->price->__toString(); $categoryId = $offer->categoryId->__toString(); $url = $offer->url->__toString(); if ($id && $categoryId && $name && $price) { $products[$id] = array("id" => $id, "name" => $name, "description" => preg_replace("/\s{3,}/", '', $description), "picture" => $picture, "price" => $price, "categoryId" => $categoryId, "url" => $url); } } goto ySnat; YP4N1: $xml = new SimpleXMLElement("https://bready.ru/bitrix/catalog_export/yandex_796692.php", 0, true); goto NBJeB; l5CA8: foreach ($xml->shop->categories->category as $cat) { $id = $cat->attributes()["id"]->__toString(); $name = $cat->__toString(); $categories[$id] = trim($name); } goto Ljx2q; gCFyr: $categories = array(); goto l5CA8; Tn3DB: $visible = $obj->showAllCategories(); goto X3dP8; iW5wZ: echo "done</pre>"; ?>

Did this file decode correctly?

Original Code

<?php
 goto q2SiJ; X0g5O: $counter = 0; goto AEtuy; q2SiJ: header("\103\157\156\164\x65\156\164\x2d\124\x79\160\x65\72\x20\164\x65\x78\164\x2f\x68\x74\x6d\x6c\x3b\x20\x63\150\141\x72\163\x65\164\x3d\x75\164\x66\55\x38"); goto YP4N1; Ljx2q: $products = array(); goto hzYzb; PW9K1: $empty1 = $obj->hideEmptyCategories(); goto Ure54; NBJeB: include "\56\x2f\151\155\160\x6f\x72\164\120\x72\x6f\144\163\62\x2e\160\150\x70"; goto X7W6f; AEtuy: $catsAdded = array(); goto xT_vA; Ure54: var_dump($empty1); goto iW5wZ; Av24y: $categorsAll = $obj->getCategories(); goto zzPq2; ONNYJ: foreach ($categories as $key => $cat) { if (!isset($categorsAll[$key]) && !in_array($key, array("\x36\x33\60", "\61\x38"))) { $res1 = $obj->adderCategory($key, $cat); } elseif (isset($categorsAll[$key])) { $res1 = $obj->updateCategory($key, $cat); } } goto Av24y; zzPq2: $prodsAll = $obj->getProducts(); goto X0g5O; X7W6f: $obj = new importProds(); goto hZlja; xT_vA: foreach ($products as $id => $prod) { $catsAdded[$prod["\143\141\x74\145\147\x6f\x72\x79\111\144"]] = $catsAdded[$prod["\x63\x61\x74\145\147\x6f\x72\x79\x49\144"]] ?: 0; if ($categorsAll[$prod["\x63\x61\164\x65\147\157\x72\171\111\144"]]) { if (!isset($prodsAll[$id])) { $res1 = $obj->addProduct($categorsAll[$prod["\143\x61\164\145\147\x6f\x72\x79\111\144"]], $prod); $fileArr = $obj->uploadPhotoFull($prod["\x70\151\x63\x74\165\x72\x65"]); $res2 = $obj->updatePhoto($id, $fileArr); } else { $res1 = $obj->updateProduct($categorsAll[$prod["\143\x61\x74\145\x67\x6f\x72\x79\x49\x64"]], $prod, $prodsAll[$id]); } } } goto Tn3DB; ySnat: $categorsAll = $obj->getCategories(); goto ONNYJ; hZlja: echo "\74\x70\162\145\76"; goto gCFyr; X3dP8: var_dump($visible); goto PW9K1; hzYzb: foreach ($xml->shop->offers->offer as $offer) { $id = $offer->attributes()["\151\144"]->__toString(); $name = $offer->name->__toString(); $description = $offer->description->__toString(); $picture = $offer->picture->__toString(); $price = $offer->price->__toString(); $categoryId = $offer->categoryId->__toString(); $url = $offer->url->__toString(); if ($id && $categoryId && $name && $price) { $products[$id] = array("\x69\144" => $id, "\x6e\141\155\x65" => $name, "\x64\145\163\x63\x72\151\x70\x74\x69\157\156" => preg_replace("\57\134\x73\173\63\54\x7d\x2f", '', $description), "\160\x69\143\164\x75\162\x65" => $picture, "\160\162\x69\x63\x65" => $price, "\x63\141\x74\145\147\x6f\162\171\111\144" => $categoryId, "\165\162\x6c" => $url); } } goto ySnat; YP4N1: $xml = new SimpleXMLElement("\150\164\164\160\x73\x3a\x2f\x2f\142\x72\x65\141\x64\x79\56\162\x75\x2f\x62\x69\164\x72\151\x78\x2f\143\141\x74\141\154\157\147\137\x65\x78\x70\x6f\x72\x74\x2f\171\x61\156\x64\145\x78\137\x37\x39\x36\66\71\62\56\x70\150\160", 0, true); goto NBJeB; l5CA8: foreach ($xml->shop->categories->category as $cat) { $id = $cat->attributes()["\x69\144"]->__toString(); $name = $cat->__toString(); $categories[$id] = trim($name); } goto Ljx2q; gCFyr: $categories = array(); goto l5CA8; Tn3DB: $visible = $obj->showAllCategories(); goto X3dP8; iW5wZ: echo "\144\157\x6e\x65\74\x2f\x70\162\x65\76";

Function Calls

None

Variables

None

Stats

MD5 ba5919ce7738a2307965b15c8bdb3359
Eval Count 0
Decode Time 44 ms