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

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: deletenews.php
-----------------------------------------------------
 Use: delete news
=====================================================
*/

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

$_SESSION['referrer'] = isset($_SESSION['referrer']) ? str_replace("&amp;","&", $_SESSION['referrer'] ): '';

if ($is_logged AND $user_group[$member_id['user_group']]['allow_all_edit']) {

	if ($_GET['hash'] == "" OR $_GET['hash'] != $dle_login_hash) {
		die("Hacking attempt! User not found");
	}
	
	$id = intval($_GET['id']);

	if ($id > 0) {

		$row = $db->super_query("SELECT id, title, category, alt_name FROM " . PREFIX . "_post WHERE id = '{$id}'");

		if ($row['id']) {

			$allow_list = explode( ',', $user_group[$member_id['user_group']]['cat_add'] );
			$category = explode( ',', $row['category'] );
				
			foreach ( $category as $selected ) {
	
				if( $allow_list[0] != "all" AND !in_array( $selected, $allow_list ) AND $member_id['user_group'] != 1 ) {
					header("Location: {$_SESSION['referrer']}");
					die();
				}

			}

			$db->query( "INSERT INTO " . USERPREFIX . "_admin_logs (name, date, ip, action, extras) values ('".$db->safesql($member_id['name'])."', '{$_TIME}', '{$_IP}', '26', '".$db->safesql($row['title'])."')" );

			deletenewsbyid( $row['id'] );

			clear_cache(array('news_', 'full_' . $row['id'], 'comm_' . $row['id'], 'tagscloud_', 'archives_', 'related_', 'calendar_', 'rss', 'stats'));

		} else {

		  die("Hacking attempt! ID not found");

		}

	} else {

		  die("Hacking attempt! ID not found");
	}

	if ( strpos( $_SESSION['referrer'], $row['alt_name'] ) !== false OR strpos( $_SESSION['referrer'], "newsid=".$row['id'] ) !== false OR strpos( $_SESSION['referrer'], "do=deletenews" ) !== false OR $_SESSION['referrer'] == "") { 

		msgbox ($lang['all_info'], $lang['news_del_ok']);

	} else {

		header("Location: {$_SESSION['referrer']}");
		die();

	}

} else {

  die("Hacking attempt! Not logged");
  
}
?>

Did this file decode correctly?

Original Code

$_F=__FILE__;$_X='P0RPP3FvcUd3Kkc5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OUdNamtpa2g0L1BNez50ND5QTS1NMktNTGQvaUpQLldNOFBZNGtNdXlkXXFNRy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tR01vaWlxVzp3d1lGUC0+UC5XPHldd0ctLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLUdNM2RxS3k0dG9pTShwKU0xQkI2LTFCMWdNTGQvaUpQLldNOFBZNGtNdXlkXXFHOTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTlHTVNvNFdNcGRZUE00V01xeWRpUHBpUFlNMktNcGRxS3k0dG9pRzk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5R001NEZQOk1ZUEZQaVA+UC5XPHFvcUctLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLUdNYVdQOk1ZUEZQaVBNPlAuV0c5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OUcqd0dHNC8oTSFZUC80PlB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tNKU0hOTlNL2tGV1BNYlhNV2l5cWRXKE0kX0x7TEx2Ykp6J3lQL1B5eVB5J1ssTSJZZDlZUEZQaVA+UC5XIk0pTSE5OU0va0ZXUE1iWE0kX0x7TEx2Ykp6J3lQL1B5eVB5J1tNOTlNIiIpTXhNR0cJCUhXdDJkUk0oJEZrPnR6J2tGRl80Pi9kJ1ssTSRGaz50eic+UC5XX1lQRl9kPSdbKTtHRwlsTVBGV1BNeEdHCQlvUGtZUHkoImhkcGtpNGQ+Ok14JF9Me0xMdmJKeid5UC9QeXlQeSdbbCIpO0cJCVk0UCgpO0dHCWxHR2xNUEZXUE14R0dNTVk0UCgiUWtwPTQ+dE1raWlQSHFpIU1KZGlNRmR0dFBZIik7R01NR2xHP0Q=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdtXT5mRDRYYUVLLjIzT0doWnV2PTxnc2VWbkZIUDcwUXpDNXhkTS9vdzg2VH17ckwxSWNBeVJxIDlKV1NwQmpsW1VrWXRiTgppJywnWnVuQT5pUlVqeXdiQzwKTFBHSWsuM3o2WHZsbWU5UUhbN0Z7byBmaC9NNEpxRUtTMkI4VnJ4cFc9TnNUYzBEfV01YWRnTzFZdCcpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));

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 bc5701d2f8f33674ed53ce0a52c5a0b1
Eval Count 2
Decode Time 41 ms