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

Signing you up...

Thank you for signing up!

PHP Decode

<?php $_F=__FILE__;$_X='P2lCPw1WaCoNVlNTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1..

Decoded Output download

?><?
/*
=====================================================
 DataLife Engine - by SoftNews Media Group 
-----------------------------------------------------
 http://www.pc-soft.ru/
-----------------------------------------------------
 Copyright (c) 2004,2006 SoftNews Media Group
=====================================================
     
=====================================================
 : init.php
-----------------------------------------------------
 : 
=====================================================
*/

function convert_unicode($t, $to = 'windows-1251')
{
		$t = preg_replace( '#%u([0-9A-F]{1,4})#ie', "'&#' . hexdec('') . ';'", $t );
		$t = urldecode ($t);
    	$t = html_entity_decode($t, ENT_NOQUOTES, $to);
		return $t;
}

function send_activation ($host,$query,$others=''){
   $path=explode('/',$host);
   $host=$path[0];
   unset($path[0]);
   $path='/'.(implode('/',$path));
   $post="POST $path HTTP/1.1
Host: $host
Content-type: application/x-www-form-urlencoded
${others}User-Agent: Mozilla 4.0
Content-length: ".strlen($query)."
Connection: close

$query";
   $h=fsockopen($host,80);

	if (!$h) {
	   return "-1";
	}

   fwrite($h,$post);
   for($a=0,$r='';!$a;){
       $b=fread($h,8192);
       $r.=$b;
       $a=(($b=='')?1:0);
   }
   fclose($h);

  if (stristr( $r, "antw:activated" )) return "1";
  if (stristr( $r, "antw:denied" )) return "0";

   return "undefined";
}


function dle_activation($name, $key, $site_key){

include ('../data/config.php');
include ('../../language/'.$config['langs'].'/adminpanel.lng');

$name = urlencode(strip_tags ($name));
$key  = strip_tags ($key);

$buffer = send_activation ("www.dle-news.ru/extras/activate45.php", "name={$name}&key={$key}&site_key={$site_key}");


switch ($buffer) {

case "-1" :
	$buffer = $lang['trial_act1'];
	break;

case "0" :
	$buffer = $lang['trial_act2'];
	break;

case "1" :
	$config['key'] = $site_key;

    $handler = fopen('../data/config.php', "w");
    fwrite($handler, "<?php 

//System Configurations

\$config = array (

");
    foreach($config as $name => $value)
    {
    fwrite($handler, "'{$name}' => \"{$value}\",

");
    }
    fwrite($handler, ");

?>");
    fclose($handler);

	$buffer = $lang['trial_act3'];
	break;

default:
	$buffer = $lang['trial_act4'];
}

@header("HTTP/1.0 200 OK");
@header("HTTP/1.1 200 OK");
@header("Cache-Control: no-cache, must-revalidate, max-age=0");
@header("Expires: 0");
@header("Pragma: no-cache");
@header("Content-type: text/css; charset=".$config['charset']);
echo $buffer;
die ();
}


	$site_key = explode('.', $_SERVER['HTTP_HOST']);
	$count_key = count($site_key) - 1;
	unset ($site_key[$count_key]);
	if (end($site_key) == "com" OR end($site_key) == "net") $count_key --;
	$site_key = $site_key[$count_key-1];
	$site_key = md5(md5($site_key."780918"));
	$trial_version = false;
	$trial = true;

	if ($site_key == $config['key']) {
	$trial = false;
	}

	if ($_REQUEST['activation'] == "yes") dle_activation (convert_unicode($_REQUEST['name']), convert_unicode($_REQUEST['dle_key']), $site_key);

define('DATALIFEENGINE', true);
extract($_REQUEST, EXTR_SKIP);

require_once(ENGINE_DIR.'/inc/mysql.php');
require_once(ENGINE_DIR.'/data/dbconfig.php');
require_once(ROOT_DIR.'/language/'.$config['langs'].'/adminpanel.lng');
require_once(ENGINE_DIR.'/inc/functions.inc.php');
require_once(ENGINE_DIR.'/skins/default.skin.php');

if (isset ($_REQUEST['action'])) $action = $_REQUEST['action']; else $action = "";
if (isset ($_REQUEST['mod'])) $mod = $_REQUEST['mod']; else $mod = "";
if (isset ($_COOKIE['lastusername'])) $lastusername = $_COOKIE['lastusername']; else $lastusername = "";

if (($mod != "editnews" AND $mod != "main" AND $mod != "") AND $trial) {
$row = $db->super_query("SELECT COUNT(*) as count FROM " . PREFIX . "_post");
$stats_news = $row['count'];

$row = $db->super_query("SELECT COUNT(*) as count FROM " . PREFIX . "_comments");
$count_comments = $row['count'];

if ($stats_news > 500) msg("info","error", $lang['trial_limit']);
if ($count_comments > 1000) msg("info","error", $lang['trial_limit']);

}

//#################   
$user_group = get_vars ("usergroup");

if (!$user_group) {
  $user_group = array ();

    $result = $db->query("SELECT * FROM " . PREFIX . "_usergroups ORDER BY id ASC");

  while($row = $db->get_row($result)){

   $user_group[$row['id']] = array ();

     foreach ($row as $key => $value)
     {
       $user_group[$row['id']][$key] = $value;
     }

  }
  set_vars ("usergroup", $user_group);
  mysql_free_result($result);
}
//#################
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCPw1WaCoNVlNTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTDVY+NGU9ZUlzQU0+S0h4c0hNPi0+PHE+cE9BPUVNfW4+dU05c2U+Q3pPUVo+DVYtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ1WPi49PVo6aGh9fX1YWjItbk9BPVh6UWgNVi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDVY+L09acXpzeC49PigyKT5rYWFVLGthYVs+cE9BPUVNfW4+dU05c2U+Q3pPUVoNVlNTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTDVY+xODt7fvpPuru5D7n4Pno+eXtPuDi8u7w8ero7Og+7/Dg4uDs6A1WU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1MNVj7U4OnrOj5zSHM9WFouWg1WLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NVj7N4Oft4Pfl7ejlOj7I7ej26ODr6Ofg9uj/DVZTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTUw1WKmgNVg1WQVFIMj1zT0g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uUVc9KSldDVYNVj4+PiRRbk16X3h6T1FaaiR6T31qJ3M5J2RkPlM+ZXp6ZXE+KCk7DVYNVj4+Pj4+QU96TWUyLj4oJHpPfT5lbj4keU1xPlNpPiRjZVdRTSkNVj4+Pj4+XQ1WPj4+Pj4+PiRRbk16X3h6T1FaaiR6T31qJ3M5J2RkaiR5TXFkPlM+JGNlV1FNOw1WPj4+Pj5sDVYNVj4+bA1WPj5uTT1fY2V6bj4oIlFuTXp4ek9RWiIsPiRRbk16X3h6T1FaKTsNVj4+WXFudldfQXpNTV96TW5RVz0oJHpNblFXPSk7DVZsDVZoaCMjIyMjIyMjIyMjIyMjIyMjDVY/aQ==';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1lcmVnX3JlcGxhY2UoJ19fRklMRV9fJywiJyIuJF9GLiInIiwkX1gpO2V2YWwoJF9SKTskX1I9MDskX1g9MDs='));?>

Function Calls

strtr 1
strrev 1
ereg_replace 1
base64_decode 2

Variables

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

Stats

MD5 c33a9cb6605b0383b0ccdec9ec5012d2
Eval Count 2
Decode Time 58 ms