Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$_F=__FILE__;$_X='Py9PP3ZDdm4xKm5ISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhI..

Decoded Output download

?><?php
/*
=====================================================
 DataLife Engine - by SoftNews Media Group 
-----------------------------------------------------
 https://dle-news.ru/
-----------------------------------------------------
 Copyright (c) 2004-2023 SoftNews Media Group
=====================================================
 This code is protected by copyright
=====================================================
 File: twofactor.php
=====================================================
*/

if( !defined( 'DATALIFEENGINE' ) ) {
	header( "HTTP/1.1 403 Forbidden" );
	header ( 'Location: ../../' );
	die( "Hacking attempt!" );
}

if( $is_loged_in ) {
	msg( "error", $lang['index_denied'], $lang['index_denied'] );
}

if( !isset($_SESSION['twofactor_auth']) ) {
	msg( "error", $lang['index_denied'], $lang['index_denied'] );
}

$year = date('Y', time());

if ($_SESSION['twofactor_type'] == 2) $lang['twofactor_alert'] = $lang['twofactor_alert_1'];

$skin_login = <<<HTML
<!doctype html>
<html lang="{$lang['language_code']}" dir="{$lang['direction']}">
<head>
	<meta charset="utf-8">
	<title>DataLife Engine - {$lang['skin_title']}</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="HandheldFriendly" content="true">
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width"> 
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="default">
	{css_files}
    {js_files}
</head>
<body class="no-theme">
<script>
<!--
var dle_act_lang   = [];
var cal_language   = '{$lang['language_code']}';
var filedefaulttext= '';
var filebtntext    = '';
//-->
</script>

<div class="container">
  <div class="col-md-4 col-md-offset-4">
    <div class="page-container">
<!--MAIN area-->


	<div class="panel panel-default" style="margin-top: 100px;">

      <div class="panel-heading">
        {$lang['skin_title']} DataLife Engine
      </div>
	  
      <div class="panel-body">
		{$lang['twofactor_alert']}
		<br><br><input id="twofactor_token" type="text" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off" name="twofactor_token" inputmode="numeric" pattern="[0-9]*" style="width:100%;" class="classic" placeholder="{$lang['twofactor_title']}">
		<div id="twofactor_response" style="color:red"></div>
		<br><div class="form-group">
			<button id="send" type="submit" class="btn btn-primary btn-raised btn-block">{$lang['login_button']} <i class="fa fa-sign-in"></i></button>
          </div>
      </div>
    </div>
	
<script>  
<!--
$(function(){

	$('#send').click(function(){
	
		if ( $("#twofactor_token").val().length < 1) {
			 $("#twofactor_token").addClass('ui-state-error');
		} else {
			var pin = $("#twofactor_token").val();
			$.post("engine/ajax/controller.php?mod=twofactor", { pin: pin }, function(data){
			
				if ( data.success ) {
				
					window.location = window.location;
					
				} else if (data.error) {
					
					$("#twofactor_response").html(data.errorinfo);
					
				}
				
			}, "json");
		
		}
		
		return false;
	
	});
});
//-->
</script>
	<div class="text-muted text-size-small text-center">DataLife Engine&reg;  Copyright 2004-{$year}<br>&copy; <a href="https://dle-news.ru/" target="_blank">SoftNews Media Group</a> All rights reserved.</div>
  </div>
</div>
</div>

</body>
</html>
HTML;

	$skin_login = str_replace( "{js_files}", build_js($js_array), $skin_login );
	$skin_login = str_replace( "{css_files}", build_css($css_array), $skin_login );
	
	echo $skin_login;

?>

Did this file decode correctly?

Original Code

$_F=__FILE__;$_X='Py9PP3ZDdm4xKm5ISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISG5GRDJYMmw5IFVGNFp4OVpVRi1GLldGQl0gWEVVfT5GcFVHOTJGcjVdTHZGbi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tbkZDWFh2PjoxMUdhVS1aVX0+dDVMMW4tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLW5GZl12VzU5eENYRihnKUZQc3NJLVB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25uTzEuXUdXL25PMUNYUmEvbmR1cGw7bm4JJD56OVpfYV14OVpGSEY+WDVfNVV2YTJnVShGIlMwPl8gOWFVPnEiLEYuTDlhR18wPigkMD5fMjU1MlcpLEYkPno5Wl9hXXg5WkYpO24JJD56OVpfYV14OVpGSEY+WDVfNVV2YTJnVShGIlNnPj5fIDlhVT5xIixGLkw5YUdfZz4+KCRnPj5fMjU1MlcpLEYkPno5Wl9hXXg5WkYpO24JbglVZ0NdRiQ+ejlaX2FdeDlaO25uPy8=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdxT0NJNkxyNEt2XVBtdUgxZzl3amMzc3t4MlZFWy56VTA9YVFrYkZvQXlmPH10V0duNU0+RFgvUjhsaFQKZGVwWk4gN1NKaVlCJywnfTxoNFB1R0V6cG8yUlQ9L2NpN0pGWTA5Z2FxTjFia2VqdmxCNlcgM3hRQ0t3LnlkCnJVc0R0Pm1JTDhWW0g1TW5aZl17WEFPUycpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R 0
$_X 0

Stats

MD5 6ddedf7a1a4ec710b2ee3c00bc3c82da
Eval Count 2
Decode Time 51 ms