2016-08-20 57 views
-2

我有php电子商务网站和它的编码通过ioncube。 IVE解码它,我不得不所有代码,看不清楚,但问题是 ,如果我将其解码或更改 $域=阵列(“www.xxx.com”)ioncube解码php的网站不能加载本地或服务器

$域=阵列('localhost')

它不从mysql获取任何东西,所以只是出现白色页面。 这里是我的配置php文件的一些代码。

如果我有任何帮助,我会很高兴..

的config.inc.php

<?php 

$dir_server_root = str_replace('/ ', '/', realpath(dirname(__FILE__) . '/..') . '/'); 
    define('DIR_SERVER_ROOT', $dir_server_root); 
    define('DIR_INCLUDES', DIR_SERVER_ROOT . 'inc/'); 
    define('DIR_CLASSES', DIR_SERVER_ROOT . 'classes/'); 
    define('DIR_LANGUAGES', DIR_SERVER_ROOT . 'languages/'); 
    define('DEFAULT_LANG', 'tr'); 
    define('LIVE', (('localhost' != $_SERVER['HTTP_HOST'] && !preg_match('/\.test/', $_SERVER['HTTP_HOST'])) && !preg_match('/local\./', $_SERVER['HTTP_HOST']))); 
    define('PROTOCOL', (getenv('HTTPS') ? 'https' : 'http')); 
    define('SPHINX_SEARCH_LIMIT', 1000); 
    define('SPHINX_CONNECT_TIMEOUT', 0.100000000000000005551115); 
    define('MAIN_SYSTEM_EMAIL', '[email protected]'); 
    $available_langs = array('tr' => 'Turkish'); 
    require(DIR_INCLUDES . 'licence.php'); 
    $host = $_SERVER['HTTP_HOST']; 

    if (!in_array($host, $domains)) { 
     $host_w = preg_replace('/^(.*?)\./', '', $host); 

     if (!in_array($host_w, $domains)) { 
      header('HTTP/1.1 301 Moved Permanently'); 
      header('location: http://' . $domains[0]); 
    exit(); 
} 
} 


if ((defined('LICENCE_EXPIRE_DATE') && LICENCE_EXPIRE_DATE < date('Y-m-d'))) { 
exit(); 
} 


if (LIVE) { 
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE); 
define('WINDOWS', 1); 
define('DIR_LIBS', DIR_SERVER_ROOT . 'libs/'); 
define('DIR_FONTS', DIR_LIBS . 'Fonts/'); 
define('DIR_TEMP', DIR_SERVER_ROOT . 'tmp/'); 
define('SMARTY_LIBRARY', DIR_LIBS . 'Smarty/'); 
define('SMARTY_PLUGINS_DIR', DIR_LIBS . 'Lib9/smarty_plugins/'); 
} 
else { 
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE); 
define('WINDOWS', 1); 
define('DIR_LIBS', DIR_SERVER_ROOT . 'libs/'); 
define('DIR_FONTS', ''); 
define('DIR_TEMP', DIR_SERVER_ROOT . 'tmp/'); 
define('SMARTY_LIBRARY', DIR_LIBS . 'Smarty/'); 
define('SMARTY_PLUGINS_DIR', DIR_LIBS . 'Lib9/smarty_plugins/'); 
} 

和 licence.php

<?php 

$domains = array('www.xxx.com'); 
define('ext_UpdateSoftware', 1); 
define('PRD_RELATED_ENABLED', 1); 
define('MODULE_GROUPS_ENABLED', 1); 
define('PAYU_ENABLED', 1); 
define('MMB_GROUP_ENABLED', 1); 
define('VPOS_ENABLED', 1); 
define('INVOICE_ENABLED', 1); 
define('ext_ImportExcel', 1); 
define('COUPON_ENABLED', 1); 
define('XML_EXPORT_ENABLED', 1); 
define('PRD_FILTERS_ENABLED', 1); 
define('PRD_SETS_ENABLED', 1); 
define('PRD_PAIRS_ENABLED', 1); 
define('OLD_TEMPLATE', 0); 
define('BOOK_MODE', 1); 
define('ext_facebook', 1); 
define('ext_ImportEmekKitap', 1); 
define('ext_ImportDeryaDagitim', 1); 
define('NEWSLETTER_ONLY_SMTP', 1); 
$arr_image_size['ProductImages'] = array('a' => '100x100', 'b' => '300x300', 'c' => '600x600'); 
$arr_image_size['News'] = array('a' => '300x300', 'b' => '400x400'); 
?> 
+0

你真的要求我们修复一个破解的脚本吗? – tkausl

+0

不,不,我只是问问题和建议在哪里:S – includee666

回答

0

如果你测试你的代码(配置。 inc.php)你得到:

DIR_SERVER_ROOT=C:\xampp/ 
DIR_INCLUDES=C:\xampp/inc/ 
live= (false) 

所以,你必须更多地修改脚本。

相关问题