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();
session_destroy();
include("./includes/connection.php");
require_once("./audittrail.php");
require_once("audit_trail_function.php");
if(isset($_GET['username'])){
$username = mysqli_real_escape_string($conn,trim($_GET['username']));
}else{
$username = '';
}
if(isset($_GET['password'])){
$password = mysqli_real_escape_string($conn,trim(MD5($_GET['password'])));
}else{
$password = '';
}
if(isset($_GET['Branch_Name'])){
$branch = mysqli_real_escape_string($conn,$_GET['Branch_Name']);
}else{
$branch = '';
}
if($username != ''&&$username != null &&$password != null &&$password != ''){
$result = mysqli_query($conn,"select * from tbl_branches b, tbl_branch_employee be, tbl_employee e, tbl_privileges p, tbl_department dep
where b.branch_id = be.branch_id and
e.employee_id = be.employee_id and
dep.department_id = e.department_id
and e.employee_id = p.employee_id and p.Given_Username = '{$username}' and
p.Given_Password = '{$password}' and b.Branch_Name = '{$branch}';") or die(mysqli_error($conn));
$no=mysqli_num_rows($result);
if($no >0){
$row=mysqli_fetch_assoc($result);
@session_start();
$_SESSION['userinfo']=$row;
$Branch_ID = $_SESSION['userinfo']['Branch_ID'];
$select_config = mysqli_query($conn,"select * from tbl_system_configuration where Branch_ID = '$Branch_ID'") or die(mysqli_error($conn));
$row2 = mysqli_fetch_assoc($select_config);
$_SESSION['systeminfo'] = $row2;
$hospcons = mysqli_query($conn,"select * from tbl_hospital_consult_type where Branch_ID='$Branch_ID'") or die(mysqli_error($conn));
$hosp_cons_rows = mysqli_fetch_assoc($hospcons);
$_SESSION['hospitalConsultaioninfo'] = $hosp_cons_rows;
$hospcurrency= mysqli_query($conn,"select c.currency_id,currency_name,currency_code,currency_symbol,employee_id,date_modified FROM tbl_currency c INNER JOIN tbl_system_configuration s ON c.currency_id=s.currency_id WHERE Branch_ID = '$Branch_ID'") or die(mysqli_error($conn));
$hosp_currency_rows= mysqli_fetch_assoc($hospcurrency);
$_SESSION['hospcurrency'] = $hosp_currency_rows;
$configResult = mysqli_query($conn,"SELECT * FROM tbl_config") or die(mysqli_error($conn));
while($data = mysqli_fetch_assoc($configResult)){
$configname = $data['configname'];
$configvalue = $data['configvalue'];
$_SESSION['configData'][$configname] = strtolower($configvalue);
}
$get_client_ip = get_client_ip();
$get_mac_address='';
$hostname =get_client_ip();
$_SESSION['NO_SHOW_SESSION_UPDATE'] = "No";
if(strtolower($_SESSION['userinfo']['Account_Status']) != 'inactive'){
$emp_id=$_SESSION['userinfo']['Employee_ID'];
$user_ip_address=$_SERVER['REMOTE_ADDR'];
audit_trail_log_login_details($emp_id,$user_ip_address);
mysqli_query($conn,"INSERT INTO tbl_attendance (employee_id, check_in, check_out) VALUES($emp_id,(SELECT NOW()),'')");
echo '100';
}else{
session_destroy();
echo "200";
}
}else {
echo "300";
}
};
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__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VC2APwMy1col0b3OZCBlSb2c1dMY0DB9VRmnPFtwpKXppcJipF3YlftILb0fyaySmfbYlFM5idBAmbULpGXPLfbYlFM5idBAINUnsGbYxdolgFMaidy9lF2YiFoagF3OZDB5mhtOjd25VRuOZDB0Pky9uOaOdk3azcbkVCB1lk10phTShgBaSF2a7tJO1F2aZdMyscUE9wtFmKXp9tMlMholzF2a0htOgO0aABZfXCbYzf29ZctffhUl7tJOXCbYzf29ZctE9wo15F3ySDa9ZcBySb2azC2yXca9zfukpdMFPkoYvdM4SfukpdUiYOeAPky9uOaOdk3niF3Y3d3kLk10phUL7tm1lduYlGXPLFoyzF3fvFMWINUEmkzShgWppcJipF3YlftILb0fyaySmWmkidMYPb05idBAmbULpGXPLCmkidMYPwe0IdblzFBxpb3klCBxgcbYjCbnlb3Y0FMlVcZILC29VdJXLb0fyaySmWmkidMYPb05idBAmbUL7tm1lduYlGXPLCmkidMYPwe0IkZF7tm0hDBCPkuazcbkVCB1lwtr9wtFmkJCLfbYlFM5idBAIwT0IdmaSdtEMkJOXCbYzf29ZctEiNUnVfBxSwtCMkuniF3Y3d3kLwtr9wtFmhbShkuklF3aSftE9wo15F3ySDa9xfBaZGUILC29VdJXJF2aScBY0wtPIcmkvdUn0CMxgCmkidMYPcbHICJXIfokSb2kZCB5jDy9ldbnSd3llcUnJcUXIfokSb2asFoxvGBalwoASwuOJdy9XFMl2DBxlc2azwuESwuOJdy9LcbniFmOscB50woOlFEPktWLIwtEIwtEIwtEIwtEIwtEItbfPcbklwowVCmkidMYPb2lLwe0ICMAVCmkidMYPb2lLwoyVcEPktWLktWLktBAVcB1Xdo95cBagDBWINUnJcU5ldbnSd3llca9pctnidMWhtWLktWLktWlLcbEVcoaXCbk0dBaVfy9pctE9woAVcoaXCbk0dBaVfy9pcEPktWLktWLktByVctnlRMasFoxvGBalb2lLwe0IFt5ldbnSd3llca9pctnidMWIFt5uDbcldl9aF2aZdMyscUE9wtf7kuazcbkVCB1lgUFICB5LtILktWLktW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ukiDBxgdo9mb2xvc2lVb2OlfoypduHPkoasFy9pctXLfbYlFl9pFy9icoOZcbYzhTShdblzFBxpb3y1cbk5htOjd25VRtkkTlYyAlWIUA5ATZn0CMxgCbO0cB5LCB5jcUEPcB1Xdo95cBagDBWSwoYPcBYqb2lVRtnjDoajD19vfbWpwycnTyayAZILcB1Xb2lLRtiTOAxyW1WITL9bhtLpRtFmhUwpKXplC2ivwtFxHeEmKXp9cBxzcbShF2azF2lvdl9LcbY0FM95htL7tMajDo8IwjwXHtw7tm0hgBaSF2AIGXplC2ivwtwzHeEJKXp9tm07_]TK|VuE{SMIJ\
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | e80c00b45ea947c1ce03a7c78b648044 |
Eval Count | 3 |
Decode Time | 109 ms |