ioncube decoded php web site cant load on localhost or in server
<p>i have php ecommerce web site and its encoded via ioncube.
ive decoded it and i had all codes to see clear but the problem is
if i decode it or change 
$domain = array('www.xxx.com') </p>

<p>to</p>

<p>$domain = array('localhost') </p>

<p>it doesnt get anything from mysql so just white page appears.
here is the some code that my config php files.</p>

<p>i will appreciate if i got any help..</p>

<p>config.inc.php</p>

<pre><code>   &lt;?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'] &amp;&amp; !preg_match( '/\.test/', $_SERVER['HTTP_HOST'] ) ) &amp;&amp; !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' =&gt; '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' ) &amp;&amp; LICENCE_EXPIRE_DATE &lt; date( 'Y-m-d' ) )) {
exit(  );
}


if (LIVE) {
error_reporting( E_ALL &amp; ~E_DEPRECATED &amp; ~E_STRICT &amp; ~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 &amp; ~E_DEPRECATED &amp; ~E_STRICT &amp; ~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/' );
}
</code></pre>

<p>and
licence.php</p>

<pre><code>&lt;?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' =&gt; '100x100', 'b' =&gt; '300x300', 'c' =&gt; '600x600' );
$arr_image_size['News'] = array( 'a' =&gt; '300x300', 'b' =&gt; '400x400' );
?&gt;
</code></pre>