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='Pzc5PzRCNHNHKnNBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB..

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: poll.php
-----------------------------------------------------
 Use: polls
=====================================================
*/

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

$_IP = get_ip();

if( $is_logged ) $log_id = intval( $member_id['user_id'] );
else $log_id = $_IP;

$poll = $db->super_query( "SELECT * FROM " . PREFIX . "_poll WHERE news_id = '{$row['id']}'" );

if($config['allow_cache'] AND $dle_module != "showfull") {

	$log = array('count' => 0 );

} else $log = $db->super_query( "SELECT COUNT(*) as count FROM " . PREFIX . "_poll_log WHERE news_id = '{$row['id']}' AND `member` ='{$log_id}'" );

$poll['title'] = stripslashes( $poll['title'] );
$poll['frage'] = stripslashes( $poll['frage'] );
$body = str_replace( "<br />", "<br>", $poll['body'] );
$body = explode( "<br>", stripslashes( $body ) );

$tplpoll = new dle_template();
$tplpoll->dir = TEMPLATE_DIR;

$tplpoll->load_template( 'poll.tpl' );

$tplpoll->set( '{title}', $poll['title'] );
$tplpoll->set( '{question}', $poll['frage'] );
$tplpoll->set( '{votes}', $poll['votes'] );
$tplpoll->set( '{news-id}', $row['id'] );

if( $log['count'] ) {
	
	$tplpoll->set_block( "'\[not-voted\](.+?)\[/not-voted\]'si", "" );
	$tplpoll->set( '[voted]', '' );
	$tplpoll->set( '[/voted]', '' );

} else {
	
	$tplpoll->set_block( "'\[voted\](.+?)\[/voted\]'si", "" );
	$tplpoll->set( '[not-voted]', '' );
	$tplpoll->set( '[/not-voted]', '' );
}

$list = "<div id=\"dle-poll-list-{$row['id']}\">";

if( ! $log['count'] and $user_group[$member_id['user_group']]['allow_poll'] ) {
	if( ! $poll['multiple'] ) {
		
		for($v = 0; $v < sizeof( $body ); $v ++) {
			
			$list .= <<<HTML
<div class="pollanswer"><input id="vote{$row['id']}{$v}" name="dle_poll_votes" type="radio" value="{$v}"><label for="vote{$row['id']}{$v}"> {$body[$v]}</label></div>
HTML;
		
		}
	} else {
		
		for($v = 0; $v < sizeof( $body ); $v ++) {
			
			$list .= <<<HTML
<div class="pollanswer"><input id="vote{$row['id']}{$v}" name="dle_poll_votes[]" type="checkbox" value="{$v}"><label for="vote{$row['id']}{$v}">  {$body[$v]}</label></div>
HTML;
		
		}
	
	}
	
	$allcount = 0;

} else {
	
	$answer = get_votes( $poll['answer'] );
	$allcount = $poll['votes'];
	$pn = 0;
	
	for($v = 0; $v < sizeof( $body ); $v ++) {
		
		$num = $answer[$v];
		++ $pn;
		if( $pn > 5 ) $pn = 1;
		
		if( ! $num ) $num = 0;
		
		if( $allcount != 0 ) $proc = (100 * $num) / $allcount;
		else $proc = 0;

		$intproc =intval($proc);		
		$proc = round( $proc, 2 );
		
		$list .= <<<HTML
{$body[$v]} - {$num} ({$proc}%)<br>
<div class="pollprogress"><span class="poll{$pn}" style="width:{$intproc}%;">{$proc}%</span></div>
HTML;
	
	}
	
	$allcount = 1;

}

$list .= "</div>";

$tplpoll->set( '{list}', $list );

if($config['allow_cache']) $allcount = 0;

$ajax_script = <<<HTML
<script>
<!--
if(typeof dle_poll_voted !== "undefined"){
    dle_poll_voted[{$row['id']}] = {$allcount};
}
else{
	var dle_poll_voted = new Array();
    dle_poll_voted[{$row['id']}] = {$allcount};
}
//-->
</script>
HTML;

$tplpoll->copy_template = $ajax_script . "<form method=\"post\" name=\"dlepollform_{$row['id']}\" id=\"dlepollform_{$row['id']}\" action=\"\">" . $tplpoll->copy_template . "<input type=\"hidden\" name=\"news_id\" id=\"news_id\" value=\"" . $row['id'] . "\"><input type=\"hidden\" name=\"status\" id=\"status\" value=\"0\"></form>";

$tplpoll->compile( 'poll' );
$tplpoll->clear();

$tpl->result['poll'] = $tplpoll->result['poll'];
unset($tplpoll);

?>

Did this file decode correctly?

Original Code

$_F=__FILE__;$_X='Pzc5PzRCNHNHKnNBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQXMxdHZNdkxoU2wxPmtwaGtsMS0xS3oxCk9TTVpsclUxSGxpaHYxNj1PUDQxcy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tczFCTU00VTpHR2ljbC1rbHJVST1QR3MtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXMxWE80ej1ocEJNMSh9KTFOd3dhLU53TlIxCk9TTVpsclUxSGxpaHYxNj1PUDRzQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFzMUpCaFUxfU9pbDFoVTE0PU9NbH1NbGkxS3oxfU80ej1ocEJNc0FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBczFbaGNsOjE0T2NjSTRCNHMtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXMxe1VsOjE0T2NjVXNBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQXMqR3NzaFMoMSFpbFNoa2xpKCd0WUpZTFdbPj5aNldaPicpMSkxanMJQmx2aWw9KDEiQ0pKL0dWSVYxYXdSMVtPPUtoaWlsayIxKTtzCUJsdmlsPTEoMSdMT312TWhPazoxSUlHSUlHJ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FcIndcIjc5R1NPPWY3IjtzcyRNNGM0T2NjLTd9T2Y0aGNsKDEnNE9jYycxKTtzJE00YzRPY2MtN31jbHY9KCk7c3MkTTRjLTc9bFVQY01tJzRPY2MneTFBMSRNNGM0T2NjLTc9bFVQY01tJzRPY2MneTtzUGtVbE0oJE00YzRPY2MpO3NzPzc=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCd9ZE94dGlBcnU4L2NHNDJOd2pdU002Q1QuRgpZc21bSEVETG8zeWZiPDBCV1puVXFLSlJwPmthaFhsIFFnejV7PVZQdjk3ZUkxJywnY2tvekRkPXd9SlBsL3A4MjB7N2Z0R0hZcVFTQQpbRk01T0x4OV1tV1ZCaElONnNSYlQzZ0VuNGlDZVh2anlaVXIxdWE8PksuICcpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));

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 d19fa749a55b84e8ed6d46db75496934
Eval Count 2
Decode Time 43 ms