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 include('ue-includes/ue-ses_check.php');$namaTableDatabase='productcategory';$namaTa..

Decoded Output download

<?php include('ue-includes/ue-ses_check.php');$namaTableDatabase='productcategory';$namaTableDatabaseId=$namaTableDatabase.'_id';$currentServerTime=time();$recordHistory=true;$historyTypeName='Product Category';$auPostedElements=array();foreach($_POST as $postedElementsKey=>$postedElementsVal){$auPostedElements["$postedElementsKey"]=ueReceiveInput($postedElementsKey,$postedElementsVal);}$id=$auPostedElements['id'];$detailmode=$auPostedElements['detailmode'];$namaPageUtama=$auPostedElements['mainpage'];$namaHalamanEdit=$auPostedElements['frompage'];$pageparam=$auPostedElements['pageparam'].'&detailmode='.$detailmode.'&id='.$id;$errorList=array();$errorListStr='';$requireFieldsNameArr=array('name','productclass','desc');foreach($requireFieldsNameArr as $requireFieldsNameArrKey=>$requireFieldsNameArrVal){if($auPostedElements["$requireFieldsNameArrVal"]==''){header("Location: $namaHalamanEdit".$pageparam."&err=Please Fill All Fields");exit();}}if($detailmode!='edit'){$queCheckLevel=ue_query("SELECT productcategory_name FROM productcategory 
						WHERE productclass_id = '".$auPostedElements['productclass']."'");while($resCheckLevel=ue_fetch_array($queCheckLevel)){if($resCheckLevel['productcategory_name']==$auPostedElements['name']){header("Location: $namaHalamanEdit".$pageparam."&err=Level Name Already exists");exit();}}}if(count($errorList)==0){$sliderFolderLocation='../upload/productCategoryImage';$sliderMaxWidth=749;$sliderMaxHeight=133;switch($detailmode){case 'edit':$editQueryStr="UPDATE ".$namaTableDatabase." SET 
									".$namaTableDatabase."_editdate = '$currentServerTime', 
									".$namaTableDatabase."_name = '".$auPostedElements['name']."', 
									productclass_id = '".$auPostedElements['productclass']."', 
									".$namaTableDatabase."_desc = '".$auPostedElements['desc']."' 
								WHERE ".$namaTableDatabase."_id = '$id' LIMIT 1 
				";@ $grandQueryResult=ue_query($editQueryStr);$globalHistoryCorrespondingId=$id;break;default:$nextInLine=(int)autoIncrementNext($namaTableDatabase);$createQueryStr="INSERT INTO ".$namaTableDatabase." VALUES( 
									'', 
									'$nextInLine', 
									'$currentServerTime', 
									'0', 
									'e', 
									'".$auPostedElements['productclass']."', 
									'".$auPostedElements['name']."', 
									'', 
									'".$auPostedElements['desc']."' 
				)";@ $grandQueryResult=ue_query($createQueryStr);$globalHistoryCorrespondingId=$nextInLine;break;}$recordHistoryDesc=" 
			".$historyTypeName." Name : ".$auPostedElements['name']."<br /> 
			Product Class ID : ".$auPostedElements['productclass']." 
		";writeGlobalHistory($historyTypeName,$detailmode,$recordHistoryDesc,$namaTableDatabase,$globalHistoryCorrespondingId,$ue_globvar_recordglobalhistory,$recordHistory);switch($detailmode){case 'edit':if($grandQueryResult==false){header("Location: $namaPageUtama".$pageparam."&err=Invalid ID");}else{header("Location: $namaPageUtama".$pageparam."&sta=ok");}break;default:if($grandQueryResult==false){header("Location: $namaPageUtama".$pageparam."&err=Unable To Insert New Entry");}else{header("Location: $namaPageUtama".$pageparam."&sta=ok");}break;}}else{foreach($errorList as $errorListKey=>$errorListVal){$errorListStr.=$errorListVal.'<br />';}header("Location: $namaHalamanEdit".$pageparam."&err=".$errorListStr);}?>

Did this file decode correctly?

Original Code

<?php include('ue-includes/ue-ses_check.php');$namaTableDatabase='productcategory';$namaTableDatabaseId=$namaTableDatabase.'_id';$currentServerTime=time();$recordHistory=true;$historyTypeName='Product Category';$auPostedElements=array();foreach($_POST as $postedElementsKey=>$postedElementsVal){$auPostedElements["$postedElementsKey"]=ueReceiveInput($postedElementsKey,$postedElementsVal);}$id=$auPostedElements['id'];$detailmode=$auPostedElements['detailmode'];$namaPageUtama=$auPostedElements['mainpage'];$namaHalamanEdit=$auPostedElements['frompage'];$pageparam=$auPostedElements['pageparam'].'&detailmode='.$detailmode.'&id='.$id;$errorList=array();$errorListStr='';$requireFieldsNameArr=array('name','productclass','desc');foreach($requireFieldsNameArr as $requireFieldsNameArrKey=>$requireFieldsNameArrVal){if($auPostedElements["$requireFieldsNameArrVal"]==''){header("Location: $namaHalamanEdit".$pageparam."&err=Please Fill All Fields");exit();}}if($detailmode!='edit'){$queCheckLevel=ue_query("SELECT productcategory_name FROM productcategory
						WHERE productclass_id = '".$auPostedElements['productclass']."'");while($resCheckLevel=ue_fetch_array($queCheckLevel)){if($resCheckLevel['productcategory_name']==$auPostedElements['name']){header("Location: $namaHalamanEdit".$pageparam."&err=Level Name Already exists");exit();}}}if(count($errorList)==0){$sliderFolderLocation='../upload/productCategoryImage';$sliderMaxWidth=749;$sliderMaxHeight=133;switch($detailmode){case 'edit':$editQueryStr="UPDATE ".$namaTableDatabase." SET
									".$namaTableDatabase."_editdate = '$currentServerTime',
									".$namaTableDatabase."_name = '".$auPostedElements['name']."',
									productclass_id = '".$auPostedElements['productclass']."',
									".$namaTableDatabase."_desc = '".$auPostedElements['desc']."'
								WHERE ".$namaTableDatabase."_id = '$id' LIMIT 1
				";@ $grandQueryResult=ue_query($editQueryStr);$globalHistoryCorrespondingId=$id;break;default:$nextInLine=(int)autoIncrementNext($namaTableDatabase);$createQueryStr="INSERT INTO ".$namaTableDatabase." VALUES(
									'',
									'$nextInLine',
									'$currentServerTime',
									'0',
									'e',
									'".$auPostedElements['productclass']."',
									'".$auPostedElements['name']."',
									'',
									'".$auPostedElements['desc']."'
				)";@ $grandQueryResult=ue_query($createQueryStr);$globalHistoryCorrespondingId=$nextInLine;break;}$recordHistoryDesc="
			".$historyTypeName." Name : ".$auPostedElements['name']."<br />
			Product Class ID : ".$auPostedElements['productclass']."
		";writeGlobalHistory($historyTypeName,$detailmode,$recordHistoryDesc,$namaTableDatabase,$globalHistoryCorrespondingId,$ue_globvar_recordglobalhistory,$recordHistory);switch($detailmode){case 'edit':if($grandQueryResult==false){header("Location: $namaPageUtama".$pageparam."&err=Invalid ID");}else{header("Location: $namaPageUtama".$pageparam."&sta=ok");}break;default:if($grandQueryResult==false){header("Location: $namaPageUtama".$pageparam."&err=Unable To Insert New Entry");}else{header("Location: $namaPageUtama".$pageparam."&sta=ok");}break;}}else{foreach($errorList as $errorListKey=>$errorListVal){$errorListStr.=$errorListVal.'<br />';}header("Location: $namaHalamanEdit".$pageparam."&err=".$errorListStr);}?>

Function Calls

None

Variables

None

Stats

MD5 95406fe86e422e65a734e2478e4f645a
Eval Count 0
Decode Time 85 ms