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("Content-Type: text/ht..

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("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>"; ?>

Function Calls

None

Variables

None

Stats

MD5 b8f5852b68b14c9ce2cf030bef45b714
Eval Count 0
Decode Time 43 ms