【问题标题】:ioncube decoded php web site cant load on localhost or in serverioncube 解码器 php 网站不会在本地主机或服务器上加载
【发布时间】:2016-08-20 05:18:48
【问题描述】:

我有 php 电子商务网站,并通过 ioncube 进行编码。 我解码了它,我所有的代码都看清楚了,但问题是 如果我解码或更改 $domain = array('www.xxx.com')

$domain = array('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', 'xxxxxx@gmail.com' );
    $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/' );
}

和 许可证.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' );
?>

【问题讨论】:

  • 你真的要我们修复破解脚本吗?
  • 不不,我只是在问问题出在哪里和建议:S

标签: php mysql arrays server ioncube


【解决方案1】:

如果你测试你的代码 (config.inc.php) 你会得到:

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

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

【讨论】:

    猜你喜欢
    • 2015-05-30
    • 1970-01-01
    • 2011-12-26
    • 2013-01-22
    • 2016-02-24
    • 1970-01-01
    • 2020-12-07
    • 2012-02-14
    • 1970-01-01
    相关资源
    最近更新 更多