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
@session_start();
include("./includes/connection.php");
if(isset($_SESSION['userinfo']['Employee_ID'])){
$Employee_ID = $_SESSION['userinfo']['Employee_ID'];
}else{
$Employee_ID = 0;
}
if(isset($_GET['Registration_ID'])){
$Registration_ID = $_GET['Registration_ID'];
}else{
$Registration_ID = 0;
}
mysqli_query($conn,"delete from tbl_reception_items_list_cache where Employee_id = '$Employee_ID' and Registration_ID <> '$Registration_ID'") or die(mysqli_error($conn));
$select_check_in_id = mysqli_query($conn,"select Check_In_ID from tbl_check_in where Registration_ID = '$Registration_ID' order by Check_In_ID desc limit 1") or die(mysqli_error($conn));
while($row = mysqli_fetch_array($select_check_in_id)){
$Check_In_ID = $row['Check_In_ID'];
}
if(isset($_SESSION['userinfo']['Branch_ID'])){
$Branch_ID = $_SESSION['userinfo']['Branch_ID'];
}else{
$Branch_ID = '';
}
$select_Deatils = mysqli_query($conn,"select pr.Sponsor_ID, Guarantor_Name as Sponsor_Name from tbl_patient_registration pr, tbl_sponsor sp where
sp.Sponsor_ID = pr.Sponsor_ID and
Registration_ID = '$Registration_ID'") or die(mysqli_error($conn));
while($row = mysqli_fetch_array($select_Deatils)){
$Sponsor_ID = $row['Sponsor_ID'];
$Sponsor_Name = $row['Sponsor_Name'];
}
$Payment_Date_And_Time = 'SELECT NOW()';
$Billing_Type = 'Outpatient Cash';
$Receipt_Date = 'SELECT NOW()';
$Transaction_status = 'submitted';
$insert_patient_qr = "INSERT INTO tbl_patient_payments_cache(
Registration_ID, Employee_ID, Check_In_ID,
Payment_Date_And_Time, Sponsor_ID, Sponsor_Name,
Billing_Type, Receipt_Date, Transaction_status,
branch_id)
VALUES('$Registration_ID','$Employee_ID','$Check_In_ID',
(select now()),'$Sponsor_ID','$Sponsor_Name',
'$Billing_Type',(select now()),'$Transaction_status',
'$Branch_ID')";
if(!mysqli_query($conn,$insert_patient_qr)){
die(mysqli_error($conn));
}else{
$id_result = mysqli_query($conn,"SELECT Patient_Payment_Cache_ID FROM tbl_patient_payments_cache
where Employee_ID = '$Employee_ID' and
Registration_ID = '$Registration_ID' order by Patient_Payment_Cache_ID desc LIMIT 1") or die(mysqli_error($conn));
$num_rows = mysqli_num_rows($id_result);
if($num_rows >0){
while($row = mysqli_fetch_array($id_result)){
$Patient_Payment_Cache_ID = $row['Patient_Payment_Cache_ID'];
}
}else{
$Patient_Payment_Cache_ID = 0;
}
if($Patient_Payment_Cache_ID != 0){
$sql_send = mysqli_query($conn,"insert into tbl_patient_payment_item_list_cache(
Patient_Payment_Cache_ID, Check_In_Type, Item_ID,
Discount, Price, Quantity,
Patient_Direction, Consultant, Consultant_ID,Clinic_ID,finance_department_id)
SELECT $Patient_Payment_Cache_ID, Check_In_Type, Item_ID,
Discount, Price, Quantity,
Patient_Direction, Consultant, Consultant_ID,Clinic_ID,finance_department_id from tbl_reception_items_list_cache where Employee_ID = '$Employee_ID'") or die(mysqli_error($conn));
if($sql_send){
mysqli_query($conn,"delete from tbl_reception_items_list_cache where Employee_ID = '$Employee_ID'") or die(mysqli_error($conn));
}
}
}
if($sql_send){
header("Location: ./visitorform.php?VisitorForm=VisitorFormThisPage");
};
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=0x1318;eval($GLOBALS['OOO0000O0']('JE8wMDBPME8wMD0kR0xPQkFMU1snT09PMDAwTzAwJ10oJE9PTzBPME8wMCwncmInKTskR0xPQkFMU1snTzBPMDBPTzAwJ10oJE8wMDBPME8wMCwweDU4NCk7JE9PMDBPMDBPMD0kR0xPQkFMU1snT09PMDAwME8wJ10oJEdMT0JBTFNbJ09PTzAwMDAwTyddKCRHTE9CQUxTWydPME8wME9PMDAnXSgkTzAwME8wTzAwLDB4MWE4KSwnRW50ZXJ5b3V3a2hSSFlLTldPVVRBYUJiQ2NEZEZmR2dJaUpqTGxNbVBwUXFTc1Z2WHhaejAxMjM0NTY3ODkrLz0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpO2V2YWwoJE9PMDBPMDBPMCk7'));return;?>wsACkW\fkr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLO0xNWLyHA1SmT09NHeEXHr8Xk10PkrfHT0knTyYdk09NTzEXHeEXTZffhtOuTr9tWAxTBZfNHr8XHr9NHeEmbUILTzEXHr8XTzEXRtONTzEXTzEXHeEpRtfydmOlFmlvfbfqDykwBAsKa09aaryiWMkeC0OLOMcuc0lpUMpHdr1sAunOFaYzamcCGyp6HerZHzW1YjF4KUSvNUFSk0ytW0OyOLfwUApRTr1KT1nOAlYAaacbBylDCBkjcoaMc2ipDMsSdB5vFuyZF3O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C3Opd24SwrYvdmY1duOidmWSwrYvdmY1duOidmOgUAWSW2xpdMljb0lrRocpdMyVC2agcoaXCbk0dBaVfy9pctnMFM9swuOJdy9ZcBYlFuOpd25gDbOldbYgdolzfy9jCBYPcUn3DoaZcUnydbnSd3llca9kOtE9wtFLOB1Xdo95cBagUAWmwJLId3wIcollho15F3ySDa9lFmkvFJILC29VdJLpKXppcJILF3ySb3YldMWpGXpsGbYxdolgFbalFmLPkoYvdM4SwMOldoa0cUnMFM9swuOJdy9ZcBYlFuOpd25gDbOldbYgdolzfy9jCBYPcUn3DoaZcUnydbnSd3llca9kOtE9wtFLOB1Xdo95cBagUAWmwJLId3wIcollho15F3ySDa9lFmkvFJILC29VdJLpKXp9tm0hgWppcJILF3ySb3YldMWpGXpPcByLcbwPwLxvC2y0DB9VKJEVR3cpF2l0d3kMd3ksRmnPFe9BDbYpfo9ZOM9ZdT1BDbYpfo9ZOM9ZdaOPDbYWCBflwJL7tm07kcRjf[svyvblTy`X
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | d150ae2878f3667843384a569b705201 |
Eval Count | 3 |
Decode Time | 96 ms |