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='P2NBPy5PLlFMKlFDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0ND..
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: comments.php
=====================================================
*/
if( !defined('DATALIFEENGINE') ) {
header( "HTTP/1.1 403 Forbidden" );
header ( 'Location: ../../' );
die( "Hacking attempt!" );
}
$id = isset($_REQUEST['id']) ? intval( $_REQUEST['id'] ) : 0;
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
$subaction = isset($_REQUEST['subaction']) ? $_REQUEST['subaction'] : '';
$_SESSION['referrer'] = isset($_SESSION['referrer']) ? str_replace("&","&", $_SESSION['referrer'] ) : '';
$_POST['selected_comments'] = isset($_POST['selected_comments']) ? $_POST['selected_comments'] : array();
if(isset($_POST['mass_action']) AND $_POST['mass_action'] == "mass_combine" AND is_array($_POST['selected_comments']) AND count($_POST['selected_comments']) > 1) {
if( $_POST['dle_allow_hash'] != "" AND $_POST['dle_allow_hash'] == $dle_login_hash AND $is_logged AND $user_group[$member_id['user_group']]['del_allc'] ) {
$comments_array = array();
$ids_array = array();
foreach ( $_POST['selected_comments'] as $id ) {
$comments_array[] = intval( $id );
}
$comments = implode("','", $comments_array);
$sql_result = $db->query( "SELECT id, text FROM " . PREFIX . "_comments where id IN ('" . $comments . "') ORDER BY id ASC" );
$comments = array();
while ( $row = $db->get_row( $sql_result ) ) {
$ids_array[] = $row['id'];
$comments[] = stripslashes( $row['text'] );
}
$db->free( $sql_result );
if ((int)$config['allow_comments_wysiwyg'] < 1) $c_implode = "<br><br>";
else $c_implode = "";
$comment = $db->safesql( implode($c_implode, $comments) );
$db->query( "UPDATE " . PREFIX . "_comments SET text='{$comment}' WHERE id='{$ids_array[0]}'" );
$parent = $ids_array[0];
unset ($ids_array[0]);
foreach ( $ids_array as $id ) {
if ( $config['tree_comments'] ) {
$db->query( "UPDATE " . PREFIX . "_comments SET parent='{$parent}' WHERE parent ='{$id}'" );
}
deletecomments( $id );
}
clear_cache( array('news_', 'full_', 'comm_', 'rss' ) );
header( "Location: {$_SESSION['referrer']}" );
die();
} else msgbox( $lang['comm_err_2'], $lang['comm_err_4'] );
} elseif(isset($_POST['mass_action']) AND $_POST['mass_action'] == "mass_delete" AND count($_POST['selected_comments']) ) {
if( $_POST['dle_allow_hash'] != "" AND $_POST['dle_allow_hash'] == $dle_login_hash AND $is_logged AND $user_group[$member_id['user_group']]['del_allc'] ) {
foreach ( $_POST['selected_comments'] as $id ) {
$id = intval( $id );
deletecomments( $id );
}
clear_cache( array('news_', 'full_', 'comm_', 'rss' ) );
header( "Location: {$_SESSION['referrer']}" );
die();
} else msgbox( $lang['comm_err_2'], $lang['comm_err_4'] );
} else msgbox( $lang['comm_err_2'], $lang['comm_err_5']." <a href=\"javascript:history.go(-1);\">{$lang['all_prev']}</a>" );
?>
Did this file decode correctly?
Original Code
$_F=__FILE__;$_X='P2NBPy5PLlFMKlFDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ1E4cXRudC83ClY4a3A+N3BWOC04dW04OVQKbmhWeGQ4PFZvN3Q4RlVUeS44US0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tUThPbm4uZDpMTG9EVi1wVnhkZVV5TFEtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVE4SlQubVU3Pk9uOChaKTg9cnJFLT1yPSA4OVQKbmhWeGQ4PFZvN3Q4R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ezB6aFY+QUxNSVpybVNVZTJSZ1l5LyBjNUY3R2t2Qm4xZmRROWxDTzg8XXguJywnWDdxYTJkVERubG00RklZVldvQ2ZdWzFrUlpRYjh2ak5lZzwvOVBjMHl7ci5CNjVVdUwzPk9HaUpFS0h0eH1zClN6PWggTUF3cCcpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));
Function Calls
strtr | 1 |
strrev | 1 |
str_replace | 1 |
base64_decode | 2 |
Stats
MD5 | 941c83daeadb4f18be674ce032f67765 |
Eval Count | 2 |
Decode Time | 47 ms |