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='P3VHPwpXCjhbKjhVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV..
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: commentssubscribe.php
-----------------------------------------------------
Use: Subscribe to comments
=====================================================
*/
if(!defined('DATALIFEENGINE')) {
header( "HTTP/1.1 403 Forbidden" );
header ( 'Location: ../../' );
die( "Hacking attempt!" );
}
if( !$is_logged OR !$user_group[$member_id['user_group']]['allow_subscribe'] OR !$config['allow_subscribe'] OR !$config['allow_comments']) {
echo "{\"error\":true, \"errorinfo\":\" {$lang['subscribe_err_1']}\"}";
die();
}
if( !isset($_REQUEST['user_hash']) OR !$_REQUEST['user_hash'] OR $_REQUEST['user_hash'] != $dle_login_hash ) {
echo "{\"error\":true, \"errorinfo\":\" {$lang['subscribe_err_2']}\"}";
die();
}
$news_id = intval($_GET['news_id']);
$perm = true;
$_TIME = time();
if( !$news_id OR $news_id < 1) {
echo "{\"error\":true, \"errorinfo\":\" {$lang['subscribe_err_3']}\"}";
die();
}
$row_news = $db->super_query ( "SELECT id, autor, date, category, allow_comm, approve, access FROM " . PREFIX . "_post LEFT JOIN " . PREFIX . "_post_extras ON (" . PREFIX . "_post.id=" . PREFIX . "_post_extras.news_id) WHERE id ='{$news_id}'" );
if( $row_news['id'] ) {
$options = news_permission( $row_news['access'] );
if( $options[$member_id['user_group']] AND $options[$member_id['user_group']] != 3 ) $perm = true;
if( $options[$member_id['user_group']] == 3 ) $perm = false;
if ($config['no_date'] AND !$config['news_future'] AND !$user_group[$member_id['user_group']]['allow_all_edit']) {
if( strtotime($row_news['date']) > $_TIME ) {
$perm = false;
}
}
$cat_list = explode( ',', $row_news['category'] );
if( count($cat_list) ) {
$allow_list = explode( ',', $user_group[$member_id['user_group']]['allow_cats'] );
$not_allow_cats = explode ( ',', $user_group[$member_id['user_group']]['not_allow_cats'] );
foreach ( $cat_list as $element ) {
if( $allow_list[0] != "all" AND !in_array( $element, $allow_list ) ) $perm = false;
if( $not_allow_cats[0] != "" AND in_array( $element, $not_allow_cats ) ) $perm = false;
}
}
if( !$row_news['allow_comm'] ) $perm = false;
if( !$row_news['approve'] AND $member_id['name'] != $row_news['autor'] AND !$user_group[$member_id['user_group']]['allow_all_edit'] ) $perm = false;
} else $perm = false;
if( !$perm ) {
echo "{\"error\":true, \"errorinfo\":\" {$lang['subscribe_err_3']}\"}";
die();
}
if( isset($_REQUEST['sub_action']) AND $_REQUEST['sub_action'] ) {
$found_subscribe = $db->super_query( "SELECT COUNT(*) as count FROM " . PREFIX . "_subscribe WHERE news_id='{$news_id}' AND user_id='{$member_id['user_id']}'" );
if( !$found_subscribe['count'] ) {
$s_hash = md5(random_bytes(32));
$db->query( "INSERT INTO " . PREFIX . "_subscribe (user_id, name, email, news_id, hash) values ('{$member_id['user_id']}', '{$member_id['name']}', '{$member_id['email']}', '{$news_id}', '{$s_hash}')" );
echo "{\"success\":true, \"info\":\" {$lang['subscribe_info_1']}\"}";
} else {
echo "{\"success\":true, \"info\":\" {$lang['subscribe_info_2']}\"}";
}
} else {
$db->query( "DELETE FROM " . PREFIX . "_subscribe WHERE news_id='{$news_id}' AND user_id='{$member_id['user_id']}'" );
echo "{\"success\":true, \"info\":\" {$lang['subscribe_info_5']}\"}";
}
?>
Did this file decode correctly?
Original Code
$_F=__FILE__;$_X='P3VHPwpXCjhbKjhVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVThvdi9tL2JuT3tvN3Q+bnR7by1veUJvM0lPbUx7NT1vS3tmbi9vMVFJTQpvOC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL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9TXFxez09XCI6bVFNeyxvXCJudE9JXCI6XCJvaCR3L3Q+cyc9TXk9cVFueXtfbnRPSV9lJ2pwXCJwIjs4CTgJcG97dz17b2g4CQk4CQl7cVdJbyJoXCI9TXFxez09XCI6bVFNeyxvXCJudE9JXCI6XCJvaCR3L3Q+cyc9TXk9cVFueXtfbnRPSV9GJ2pwXCJwIjs4CQk4CXA4OHBve3c9e29oOAk4CSRmeS11NE17UUIobyJ2N2I3UzdvNnhOS28ib0FvUng3Nnpjb0FvIl89TXk9cVFueXtvZH03eDdvdHs1PV9uZlUnaCR0ezU9X25mcCdvbEx2b009e1FfbmZVJ2gkQ3tDeXtRX25mcydNPXtRX25mJ2pwJyJvKTs4CXtxV0lvImhcIj1NcXF7PT1cIjptUU17LG9cIm50T0lcIjpcIm9oJHcvdD5zJz1NeT1xUW55e19udE9JXzknanBcInAiOzgJOHA4OD91';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdQbUMgSVN4LkpXNWdNcWJWTH0zS2YvQXJrc2FoamlOODxSXT1YR25FMHkyRFR6UXBbdjk2Rk9Zd1oKSHVvezc+VWV0QmNkbDE0JywnOXRtWm9UUlV4aHdZdWNMOE5IU01kYS5qN1s2e11rTwowUHpzMzxpNENiVkp2SXJ9L0Q1RjJmUWxCcEs+IGVFZz0xbnlYV0FHcScpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));
Function Calls
strtr | 1 |
strrev | 1 |
str_replace | 1 |
base64_decode | 2 |
Stats
MD5 | d270afead1dbfa7574c486fe42a85627 |
Eval Count | 2 |
Decode Time | 63 ms |