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 /* This file is protected by copyright law and provided under license. Reverse engin..

Decoded Output download

 include_once("./includes/connection.php");
include_once("./functions/stocktaking.php");
if(isset($_GET['Stock_Taking_ID'])){
$Stock_Taking_ID = $_GET['Stock_Taking_ID'];
}else{
$Stock_Taking_ID = 0;
}
if(isset($_GET['Item_ID'])){
$Item_ID = $_GET['Item_ID'];
}else{
$Item_ID = 0;
}
if ($Stock_Taking_ID >0 &&$Item_ID >0 ) {
$Insert_Items_Stock_Taking_Item = Insert_DB("tbl_stocktaking_items",array(
"Item_ID"=>$Item_ID,
"Under_Quantity"=>0,
"Over_Quantity"=>0,
"Stock_Taking_ID"=>$Stock_Taking_ID
));
$hasError = $Insert_Items_Stock_Taking_Item["error"];
if (!$hasError) {
$Insert_Items_Stock_Taking_Item_ID = $Insert_Items_Stock_Taking_Item["id"];
}else {
echo $Insert_Items_Stock_Taking_Item['errorMsg'];
}
echo "<table width='100%' border='0'><tbody>";
echo "<tr>";
echo "<td style='text-align: center; width: 4%;'>Sn</td>";
echo "<td style='text-align: center; width: 40%;'>Item Name</td>";
echo "<td style='text-align: center; width: 10%;'>Store Balance</td>";
echo "<td style='text-align: center; width: 10%;'>Under Quantity</td>";
echo "<td style='text-align: center; width: 10%;'>Over Quantity</td>";
echo "<td style='text-align: center; width: 10%;'>Store Balance After Stock Taking</td>";
echo "<td style='text-align: center; width: 10%;'>Remark</td>";
echo "<td style='text-align: center; width: 7%;'>Remove</td>";
echo "</tr>";
$Stock_Taking_Items = Get_Stock_Taking_Items($Stock_Taking_ID);
$i = 1;
foreach($Stock_Taking_Items as $Stock_Taking_Item) {
echo "<tr>";
echo "<td> <input type='text' value='{$i}'/>  </td>";
echo "<td> <input type='text' readonly='readonly'
                                id='Product_Name_{$Stock_Taking_Item['Stock_Taking_Item_ID']}'
                                value='{$Stock_Taking_Item['Product_Name']}'/>  </td>";
echo "<td> <input type='text' readonly='readonly'
                                id='Store_Balance_{$Stock_Taking_Item['Stock_Taking_Item_ID']}'
                                value='{$Stock_Taking_Item['Store_Balance']}'/>  </td>";
echo "<td> <input type='text'
                                id='Under_Quantity_{$Stock_Taking_Item['Stock_Taking_Item_ID']}'
                                value='{$Stock_Taking_Item['Under_Quantity']}'
                                onclick=\"removeZero(this)\"
                                onkeypress=\"numberOnly(this); Update_Under_Quantity(this.value,{$Stock_Taking_Item['Stock_Taking_Item_ID']})\"
                                onkeyup=\"numberOnly(this); Update_Under_Quantity(this.value,{$Stock_Taking_Item['Stock_Taking_Item_ID']})\"/>
                                </td>";
echo "<td> <input type='text'
                                id='Over_Quantity_{$Stock_Taking_Item['Stock_Taking_Item_ID']}'
                                value='{$Stock_Taking_Item['Over_Quantity']}'
                                onclick=\"removeZero(this)\"
                                onkeypress=\"numberOnly(this); Update_Over_Quantity(this.value,{$Stock_Taking_Item['Stock_Taking_Item_ID']})\"
                                onkeyup=\"numberOnly(this); Update_Over_Quantity(this.value,{$Stock_Taking_Item['Stock_Taking_Item_ID']})\"/>
                                </td>";
$Balance_After_Stock_Taking = $Stock_Taking_Item['Store_Balance'];
$Over_Quantity = $Stock_Taking_Item['Over_Quantity'];
if ($Over_Quantity >0) {
$Balance_After_Stock_Taking = $Stock_Taking_Item['Store_Balance'] +$Over_Quantity;
}
$Under_Quantity = $Stock_Taking_Item['Under_Quantity'];
if ($Under_Quantity >0) {
$Balance_After_Stock_Taking = $Stock_Taking_Item['Store_Balance'] -$Under_Quantity;
}
echo "<td> <input type='text'
                                id='Balance_After_Stock_Taking_{$Stock_Taking_Item['Stock_Taking_Item_ID']}'
                                value='{$Balance_After_Stock_Taking}' readonly />
                                </td>";
echo "<td> <input type='text'
                                id='Item_Remark_{$Stock_Taking_Item['Stock_Taking_Item_ID']}'
                                value='{$Stock_Taking_Item['Item_Remark']}'
                                onkeypress=\"Update_Item_Remark(this.value,{$Stock_Taking_Item['Stock_Taking_Item_ID']})\"
                                onkeyup=\"Update_Item_Remark(this.value,{$Stock_Taking_Item['Stock_Taking_Item_ID']})\" />
                                </td>";
echo "<td> <input type='button' name='Remove_Item' id='Remove_Item' value='X' class='art-button'
                                onclick='Confirm_Remove_Item(\"{$Stock_Taking_Item['Product_Name']}\", {$Stock_Taking_Item['Stock_Taking_Item_ID']})' />  </td>";
echo "</tr>";
$i++;
}
echo "</tbody></table>";
};

Did this file decode correctly?

Original Code

<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};$GLOBALS['OOO000O00']=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$GLOBALS['O0O000O00']=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$GLOBALS['O0O000O00']=$O0O000O00.$OOO000000{3};$GLOBALS['O0O00OO00']=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$GLOBALS['OOO00000O']=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x182c;eval($GLOBALS['OOO0000O0']('JE8wMDBPME8wMD0kR0xPQkFMU1snT09PMDAwTzAwJ10oJE9PTzBPME8wMCwncmInKTskR0xPQkFMU1snTzBPMDBPTzAwJ10oJE8wMDBPME8wMCwweDU4ZSk7JE9PMDBPMDBPMD0kR0xPQkFMU1snT09PMDAwME8wJ10oJEdMT0JBTFNbJ09PTzAwMDAwTyddKCRHTE9CQUxTWydPME8wME9PMDAnX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oyzFz0mCbk0RBk1fuOvdJFhwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtnvdMYSDBYqNUfed25MDbksb1kldB92ca9kfoashyXJGZOTfo9jD19ACBspdMfgUbOldaSmAukvcuajfy9KCB1lk119btwSwuSLA3OvC2sgaoyqDB5mb0l0cB1dk1Y0d2Yqb1OiD2lVc19kfoasb0lrk119hUFIRz4IweXvfoW+wjShcBYPdZEJNt90Fj4JKXPLDUSqKXp9tMajDo8IwjXvfokvcuL+Nt90CBkScT4JKXp9KX==pCjEsYAmoF`ePMH

Function Calls

fopen 1
fread 3
strtr 2
fclose 1
urldecode 1
str_replace 1
base64_decode 3

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O00OO00 fread
$OO00O0000 6188
$OO00O00O0 include_once("./includes/connection.php"); include_once("./..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 79ee324a9c4f174ddfb04d19d0d1b7d6
Eval Count 3
Decode Time 84 ms