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 $_F=__FILE__;$_C816270277='Pz48P0hRSA0KaGU1azloZSgiOXlxX3JlaGxlaC5IUUgiKTsNCmhlNWs5a..

Decoded Output download

?><?php
require("inc_server.php");
require("inc_permission.php");
require("fn-product.php"); 
require("fn-product-group.php");
require("barcode/barcode.class.php");
require("fn-price.php");
//sleep(1);
if($permission_status=="Y"){
	$validate_text = "";
	$usrrowid = getUserId();
	$now=now();
	$upload_session=clear_special_char($_POST['price_form_new_upload_session']);
	$product_rowid= (isset($_POST['price_form_new_product_rowid'][0])) ? clear_special_char($_POST['price_form_new_product_rowid']) : 0;
	$unit_count_rowid=clear_special_char($_POST['price_form_new_unit_count_rowid']);
	$default_unit_count_rowid= (isset($_POST['price_form_new_default_unit_count_rowid'][0])) ? clear_special_char($_POST['price_form_new_default_unit_count_rowid']) : 0;
	$default_unit_count=clear_special_char($_POST['price_form_new_default_unit_count']);
	$customer_group_rowid=clear_special_char($_POST['price_form_new_customer_group_rowid']);
	$use_barcode_ref=strtoupper(clear_special_char($_POST['price_form_new_barcode_use']));
	$barcode=clear_special_char($_POST['price_form_new_barcode']);
	$current_qty=clear_special_char($_POST['price_form_new_qty']);
	$price=clear_special_char($_POST['price_form_new_price']);
	
	//validate
	if(!isset($current_qty[0]) || !is_numeric($current_qty)){
		$validate_text .= "&nbsp;&nbsp;&nbsp;".$arr_lang["current_qty"]."<br>";
	}
	
	if(!is_numeric($unit_count_rowid)){
		$validate_text .= "&nbsp;&nbsp;&nbsp;".$arr_lang["unit_count"]."<br>";
	}
	
	if(!isset($price[0]) || !is_numeric($price)){
		$validate_text .= "&nbsp;&nbsp;&nbsp;".$arr_lang["price"]."<br>";
	}
	
	if($use_barcode_ref=="Y"){
		if(!isset($barcode[0])){
			$validate_text .= "&nbsp;&nbsp;&nbsp;".$arr_lang["barcode_ref"]."<br>";
		}else{
			if(is_barcode_allowed($barcode)=="N"){
				$validate_text .= "&nbsp;&nbsp;&nbsp;".$arr_lang["barcode_ref"]."<br>";
			}
		}
	}else{
		if($product_rowid > 0){
			$barcode = get_default_price_barcode($product_rowid);
		}else{
			$barcode = "";
		}
	}
	
	//Format value ---------------------------------
	if(!is_numeric($customer_group_rowid)){
		$customer_group_rowid = 0;
	}
	
	if(!isset($validate_text[0])){
		if($product_rowid > 0){
			$q = "select (select count(*) from product_price where (upload_session ='' and barcode='$barcode' and product_rowid > 0 and product_rowid<> $product_rowid)) as other_used, count(rowid) as current_used from product_price where (qty=$current_qty and unit_count_rowid = $unit_count_rowid and customer_group_rowid = $customer_group_rowid and price = $price and barcode='$barcode' and product_rowid=$product_rowid)";
		}else{
			$q = "select (select count(*) from product_price where (upload_session ='' and barcode='$barcode' and product_rowid > 0 and product_rowid<> $product_rowid)) as other_used, count(rowid) as current_used from product_price where (qty=$current_qty and unit_count_rowid = $unit_count_rowid and customer_group_rowid = $customer_group_rowid and price = $price and barcode='$barcode' and upload_session='$upload_session')";
		}
		//echo $q;
		$qr=mysql_query($q);
		$total=mysql_num_rows($qr);
		if($total==1)
		$row=mysql_fetch_array($qr);
		if($row["other_used"]==0){
			if($row["current_used"]==0){
				if($product_rowid>0){
					$sql = "INSERT INTO product_price(product_rowid, default_unit_count_rowid, unit_count_rowid, customer_group_rowid, qty, price, barcode, default_price, created, created_by, updated, updated_by) VALUES(".$product_rowid.", ".$default_unit_count_rowid.", ".$unit_count_rowid.", ".$customer_group_rowid.", ".$current_qty.", ".$price.",'".$barcode."', 'N', '$now', $usrrowid, '$now', $usrrowid)";
				}else{
					$sql = "INSERT INTO product_price(upload_session, default_unit_count_rowid, unit_count_rowid, customer_group_rowid, qty, price, barcode, default_price, created, created_by, updated, updated_by) VALUES('".$upload_session."', ".$default_unit_count_rowid.", ".$unit_count_rowid.", ".$customer_group_rowid.", ".$current_qty.", ".$price.",'".$barcode."', 'N', '$now', $usrrowid, '$now', $usrrowid)";
				}
				$result1 = mysql_query($sql);				
				if($result1){
					if($product_rowid>0){
						$return_val = get_price_list_by_product_rowid($product_rowid, $arr_options["cs"], $arr_options["csp"], $arr_options["ds"], $arr_options["dgs"],$arr_lang["customer_group"], $arr_lang["all_customer_group"],$default_unit_count,$arr_lang["edit"],$arr_lang["delete"]);
					}else{
						$return_val = get_price_list_by_upload_session($upload_session, $arr_options["cs"], $arr_options["csp"], $arr_options["ds"], $arr_options["dgs"],$arr_lang["customer_group"], $arr_lang["all_customer_group"],$default_unit_count,$arr_lang["edit"],$arr_lang["delete"]);
					}
					echo "Y|!|".$arr_lang["price_model_added"]."|!|".$return_val;
				}else{
					echo "ERROR: sql error";
				}
			}else{
				echo "N|!|".$arr_lang["price_model_exist"];
			}
		}else{
			echo "N|!|".$arr_lang["barcode_used_by_other"];
		}
	}else{
		$validate_text = $arr_lang["validate_notice"]."<br>".$validate_text."";
		echo "N|!|".$validate_text;
	}
}else if($permission_status=="L"){
	echo "N|!|".$arr_lang["service_notice_login"];
}else if($permission_status=="N"){
	echo "N|!|".$arr_lang["service_notice_permission"];
}else if($permission_status=="B"){
	echo "N|!|".$arr_lang["service_notice_baned"];
}
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_C816270277='Pz48P0hRSA0KaGU1azloZSgiOXlxX3JlaGxlaC5IUUgiKTsNCmhlNWs5aGUoIjl5cV9IZWhuOXJyOTZ5LkhRSCIpOw0KaGU1azloZSgiZHktSGg2RGtxTy5IUUgiKTsgDQpoZTVrOWhlKCJkeS1IaDZEa3FPLTdoNmtILkhRSCIpOw0KaGU1azloZSgicDFocTZEZS9wMWhxNkRlLnF1MXJyLkhRSCIpOw0KaGU1azloZSgiZHktSGg5cWUuSFFIIik7DQovL3J1ZWVIKHgpOw0KOWQoJEhlaG45cnI5Nnlfck8xT2tyPT0ibSIpew0KCSRsMXU5RDFPZV9PZVhPID0gIiI7DQoJJGtyaGg2UDlEID0gN2VPb3JlaFNEKCk7DQoJJHk2UD15NlAoKTsNCgkka0h1NjFEX3JlcnI5N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XFRNiAiVnwhfCIuJGwxdTlEMU9lX09lWE87DQoJfQ0KfWV1cmUgOWQoJEhlaG45cnI5Nnlfck8xT2tyPT0iaSIpew0KCWVxUTYgIlZ8IXwiLiQxaGhfdTF5N1sicmVobDlxZV95Nk85cWVfdTY3OXkiXTsNCn1ldXJlIDlkKCRIZWhuOXJyOTZ5X3JPMU9rcj09IlYiKXsNCgllcVE2ICJWfCF8Ii4kMWhoX3UxeTdbInJlaGw5cWVfeTZPOXFlX0hlaG45cnI5NnkiXTsNCn1ldXJlIDlkKCRIZWhuOXJyOTZ5X3JPMU9rcj09IkUiKXsNCgllcVE2ICJWfCF8Ii4kMWhoX3UxeTdbInJlaGw5cWVfeTZPOXFlX3AxeWVEIl07DQp9DQo/Pg=';$_D=strrev('edoced_46esab');eval($_D('JF9DODE2MjcwMjc3PWJhc2U2NF9kZWNvZGUoJF9DODE2MjcwMjc3KTskX0M4MTYyNzAyNzc9c3RydHIoJF9DODE2MjcwMjc3LCd4QTdHMGlxMTNJTGJEQ09OZm1Wa2dZOEtaQm56TVBwd1J1anlVNDJRRlNkb3NFYVdKaHR2NkhlNWM5VHJsWCcsJzFBZ0Y2TGNhMFJYV2RWdFNaWU51a09ITUs5bTczd2I4Q2xqbnp5SmhRSWZVUEJER1RyNTRvcGVxMmlFc3Z4Jyk7JF9SPXN0cl9yZXBsYWNlKCdfX0ZJTEVfXycsIiciLiRfRi4iJyIsJF9DODE2MjcwMjc3KTtldmFsKCRfUik7JF9SPTA7JF9DODE2MjcwMjc3PTA7'));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R 0
$_C816270277 0

Stats

MD5 6f001f202cd903af9270f000b25c911c
Eval Count 2
Decode Time 98 ms