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 class KalkulatorManager { public static function isKonfigurator($products_id) { $r..

Decoded Output download

<?php 
 class KalkulatorManager { public static function isKonfigurator($products_id) { $return = false; $is_konfigurator = xtc_db_query("SELECT products_id, products_qm FROM products WHERE products_id = '" . $products_id . "' AND products_qm = 1"); if (xtc_db_fetch_array($is_konfigurator)) { $return = true; } return $return; } public static function calculateKonfiguratorPrice($products_id) { $return = false; $neuer_preis = 0; $basic_preis = 0; $qm_price = xtc_db_fetch_array(xtc_db_query("SELECT products_id, products_qm, products_qm_min_l, products_qm_min_b, products_qm_min_h, products_flaeche_wert0, products_price FROM products WHERE products_id = '" . $products_id . "' ")); $taxrate = xtc_db_fetch_array(xtc_db_query("SELECT * FROM tax_rates WHERE tax_rates_id = 1 ")); $tax = 1 + $taxrate["tax_rate"] / 100; $zuschlag = $qm_price["products_flaeche_wert0"]; $preis = $qm_price["products_price"]; $laenge = $qm_price["products_qm_min_h"]; $breite = $qm_price["products_qm_min_b"]; $hoehe = $qm_price["products_qm_min_l"]; if ($laenge) { $neuer_preis = $laenge * $preis / 100; } if ($laenge && $breite) { $neuer_preis = ($laenge + $breite) * $preis / 100; } if ($laenge && $breite && $hoehe) { $neuer_preis = ($laenge + $breite + $hoehe) * $preis / 100; } $neuer_preis = $neuer_preis + $zuschlag / $tax; $basic_preis = $preis; $return = array($neuer_preis, $basic_preis); return $return; } public static function getKonfiguratorFields($prid_products_id) { $return = false; $products_fields = xtc_db_fetch_array(xtc_db_query("SELECT * FROM additional_konfigurator_fields WHERE products_id = '" . $prid_products_id . "'")); $flaechen_price = $products_fields["konfigurator_price"]; $laenge = $products_fields["laenge"]; $breite = $products_fields["breite"]; $hoehe = $products_fields["hoehe"]; $flaechengewicht = $products_fields["konfigurator_weight"]; $return = array($flaechen_price, $laenge, $breite, $hoehe, $flaechengewicht); return $return; } } ?>

Did this file decode correctly?

Original Code

<?php
 class KalkulatorManager { public static function isKonfigurator($products_id) { $return = false; $is_konfigurator = xtc_db_query("\123\x45\x4c\x45\103\x54\x20\x70\162\x6f\144\x75\x63\x74\x73\137\151\144\x2c\40\160\x72\157\x64\x75\143\x74\163\137\161\155\40\x46\122\x4f\x4d\x20\x70\x72\157\x64\x75\143\164\163\40\x57\110\x45\122\105\40\160\x72\157\144\x75\143\x74\x73\x5f\x69\144\x20\75\40\x27" . $products_id . "\47\x20\x41\116\104\40\160\162\x6f\144\165\x63\x74\163\137\x71\155\40\x3d\x20\61"); if (xtc_db_fetch_array($is_konfigurator)) { $return = true; } return $return; } public static function calculateKonfiguratorPrice($products_id) { $return = false; $neuer_preis = 0; $basic_preis = 0; $qm_price = xtc_db_fetch_array(xtc_db_query("\x53\x45\x4c\105\103\x54\x20\x70\x72\x6f\144\165\143\x74\x73\137\x69\x64\54\x20\160\162\x6f\144\165\x63\x74\x73\x5f\x71\x6d\x2c\x20\160\162\x6f\144\x75\143\164\x73\137\x71\x6d\x5f\x6d\151\x6e\137\154\x2c\40\x70\x72\157\144\x75\143\x74\163\x5f\x71\x6d\x5f\x6d\151\156\137\x62\54\x20\x70\x72\157\144\165\x63\x74\x73\137\x71\155\x5f\x6d\x69\x6e\137\x68\54\40\160\162\157\x64\x75\x63\x74\163\137\146\154\141\x65\143\x68\145\137\167\x65\x72\164\60\x2c\40\x70\162\x6f\x64\165\143\164\163\137\x70\162\151\x63\145\x20\106\122\117\x4d\x20\x70\162\157\x64\165\x63\164\x73\40\127\110\105\x52\x45\40\160\x72\157\144\x75\143\164\x73\137\151\x64\x20\75\40\47" . $products_id . "\x27\x20")); $taxrate = xtc_db_fetch_array(xtc_db_query("\123\x45\x4c\105\x43\124\x20\52\x20\106\122\x4f\x4d\40\x74\x61\x78\x5f\162\141\x74\x65\x73\x20\127\x48\105\x52\105\40\164\141\x78\137\x72\141\164\145\163\x5f\x69\144\x20\75\x20\x31\40")); $tax = 1 + $taxrate["\164\141\170\x5f\162\141\x74\x65"] / 100; $zuschlag = $qm_price["\x70\162\x6f\144\x75\x63\164\163\137\x66\154\141\x65\143\x68\145\x5f\x77\x65\x72\164\60"]; $preis = $qm_price["\x70\162\x6f\144\x75\x63\x74\163\137\x70\x72\x69\143\x65"]; $laenge = $qm_price["\x70\x72\x6f\144\x75\143\x74\x73\137\161\x6d\137\155\x69\156\x5f\150"]; $breite = $qm_price["\160\x72\157\x64\x75\143\164\x73\137\161\155\137\155\x69\x6e\x5f\142"]; $hoehe = $qm_price["\x70\x72\157\x64\x75\x63\x74\163\137\161\155\x5f\x6d\x69\156\x5f\x6c"]; if ($laenge) { $neuer_preis = $laenge * $preis / 100; } if ($laenge && $breite) { $neuer_preis = ($laenge + $breite) * $preis / 100; } if ($laenge && $breite && $hoehe) { $neuer_preis = ($laenge + $breite + $hoehe) * $preis / 100; } $neuer_preis = $neuer_preis + $zuschlag / $tax; $basic_preis = $preis; $return = array($neuer_preis, $basic_preis); return $return; } public static function getKonfiguratorFields($prid_products_id) { $return = false; $products_fields = xtc_db_fetch_array(xtc_db_query("\x53\105\114\105\x43\124\40\52\x20\106\x52\x4f\115\40\141\x64\144\x69\x74\151\x6f\156\141\154\x5f\153\x6f\x6e\146\x69\x67\165\162\141\x74\x6f\162\137\146\151\145\x6c\x64\x73\40\x57\x48\105\122\105\40\160\x72\157\x64\165\x63\x74\x73\x5f\151\144\40\75\40\x27" . $prid_products_id . "\47")); $flaechen_price = $products_fields["\153\x6f\x6e\146\151\x67\x75\x72\x61\164\x6f\162\137\160\x72\151\143\145"]; $laenge = $products_fields["\x6c\x61\x65\x6e\x67\x65"]; $breite = $products_fields["\x62\x72\x65\151\x74\x65"]; $hoehe = $products_fields["\150\157\x65\x68\x65"]; $flaechengewicht = $products_fields["\153\x6f\x6e\146\151\147\165\162\141\x74\x6f\162\x5f\167\145\x69\147\150\164"]; $return = array($flaechen_price, $laenge, $breite, $hoehe, $flaechengewicht); return $return; } }

Function Calls

None

Variables

None

Stats

MD5 3429959a295a0b4e4aaab8657b6e15cd
Eval Count 0
Decode Time 63 ms