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__;$_X='P2lCP1ouWj4kX3JTX19yM0lLX187JF9EUydta1cvbTBPUXsKTDVwNDhEIFRXRW1zM1..
Decoded Output download
?><?php include "header.php"; ?>
<div class="col">
<div class="middle-content">
<div class="content bg-fade-black">
<div class="list-group">
<?php
include '../config.php';
error_reporting(0);
session_start();
//date_default_timezone_set('Asia/Bangkok');
// Session Timeout
/*
if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > $_CONFIG['session']['timeout'])) {
session_unset();
session_destroy();
}
$_SESSION['LAST_ACTIVITY'] = time();*/
//print_r($_POST);
if(isset($_POST['user_id']) && isset($_POST['user_id'])){
$user_id = $_POST['user_id'];
$user_pwd = $_POST['user_pwd'];
$user_id = str_replace("'","",$user_id);
$user_pwd = str_replace("'","",$user_pwd);
$sql ="SELECT * FROM account.dbo.[Tbl_user] WHERE user_id = '".$user_id."' and user_pwd = '".$user_pwd."'";
try {
$dbh = new PDO("sqlsrv:Server=".$_CONFIG['mssql']['host'].";Database=account", $_CONFIG['mssql']['username'], $_CONFIG['mssql']['password']);
} catch (PDOException $e) {
echo "Failed to get DB handle: " . $e->getMessage() . "
";
exit;
}
$user_nos = '';
$i = 1;
$stmt = $dbh->prepare($sql);
$stmt->execute();
while ($row = $stmt->fetch()) {
$user_ids = $row['user_id'];
$user_pwds = $row['user_pwd'];
$user_nos = $row['user_no'];
//echo $user_nos;
}
if($user_nos == '' || md5($user_ids) != md5($user_id) ){
echo '
<div class="msg_error" align="left">Error .</div>
';
echo "<center><a href='login.php'> <input type='button' value=' ' class='btn btn-warning' /></a></center>";
}else{
/*$set_f_sql = "SELECT count(*) as card from cash.dbo.truemoney where user_no = '".$user_nos."' and status = 1";
try {
$dbh = new PDO("sqlsrv:Server=".$_CONFIG['mssql']['host'].";Database=account", "".$_CONFIG['mssql']['username']."", "".$_CONFIG['mssql']['password']."");
} catch (PDOException $e) {
echo "Failed to get DB handle: " . $e->getMessage() . "
";
exit;
}
$set_f = $dbh->prepare($set_f_sql);
$set_f->execute();
$card = '0';
while ($Objset_f = $set_f->fetch()) {
$card = $Objset_f['card'];
}
if($card == '0'){
echo '<div class="sufee-alert alert with-close alert-danger alert-dismissible fade show">
50
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"></span>
</button>
</div>';*/
//}else{
$_SESSION["user_no"] = $user_nos;
$_SESSION["user_id"] = $user_ids;
$_SESSION["status"] = 'normal';
if($_SERVER['HTTP_HOST'] == 'www.dekaron-evolution.online' || '127.0.0.1:8080'){
//if($_SERVER['SERVER_ADDR'] == '103.253.73.203'){
//echo $_SERVER['SERVER_ADDR'].'<br>';
//echo $_SERVER['HTTP_HOST'].'<br>';
echo '<script>
location.replace("index.php")
</script>';
exit();
}else{
//echo $_SERVER['SERVER_ADDR'].'<br>';
//echo $_SERVER['HTTP_HOST'].'<br>';
//echo $_SERVER['SERVER_ADDR'].'<br>';
//echo $_SERVER['HTTP_HOST'].'<br>';
echo '
<div class="msg_error" align="left">HTTP HOST Error.</div>
';
echo "<center><a href='login.php'> <input type='button' value=' ' class='btn btn-warning' /></a></center>";
session_unset();
session_destroy();
}
//}
}
}
if(isset($_GET['logout']))
{
session_unset();
session_destroy();
echo '<script>
location.replace("login.php")
</script>';
}
if(isset($_SESSION["user_no"])){
echo '<script>
location.replace("index.php")
</script>';
}
?>
</div>
</div>
</div>
</div>
<?php include "footer.php"; ?>
Did this file decode correctly?
Original Code
<?php $_F=__FILE__;$_X='P2lCP1ouWj4kX3JTX19yM0lLX187JF9EUydta1cvbTBPUXsKTDVwNDhEIFRXRW1zM1FUeyBMVERaYntzTGUzCm4rbWt5RTZ5M0wya3UrdVc5VzxZTFQzCjhtNnE4WjQ2YjgvIDNMMmt1K3VXOVc8WUxUM1dXNTdUV0RUcGFxVGF4UFQgeFAzWXlFNnh5OC8gM0wya3UrdVc5VzxZTF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O01jZVcoJF80KCc4clBibXs4LjJrIGtFclB5TntFY05DIE84clBiR1RueUQweFAySmdxOXQzTzhyUGJJLzlUTjBvbTc2V2U2YU5JPERyTE5ILgpleVJHIEhaMFRUNmtUSGc1dXszUU1hM2E8eUU5ZXBmcWdDfX1ney5Xd3daPE40eFAgREYrNlcuYzNLLlBFeTk4OTU5emJURSAyVyBmOHF9SG02M0w8a2c9MkNSb2c2b0xlNS5IOVduMHVKLnFUezZbMjZaM2VUOU5lcjJmZ3RFdE01TDRiMC5QdSBVY2J7TnZFVzBHOXQ2VDNGT1F3VzZROTBOSVRycm11Cm84NktiYWJzMlo3cWdBIAowNTl0OEEyWTZ9PENyCk5weEhEMFBDcCBSckQwZkhJLzNIM3NVeURhYlEzczJzSS9nQXsveTFORE4uPC94eUQwM1o3cWdBIAphfTdxZ0F7NGF9N31TJykpOz9p';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>
Function Calls
strtr | 2 |
strrev | 2 |
str_replace | 2 |
base64_decode | 4 |
Stats
MD5 | 07a6f57f33947f6717a925440459045a |
Eval Count | 4 |
Decode Time | 84 ms |