Jump to content

Move webshop to new domain (blank page)


Recommended Posts

I delete cache tools/smarty/compile, but again not works!

 

My admin for this webshop wokrs, but only my front page don't wokrs.

 

Warning: require_once(/home2/smizle2/public_html/hobbyshop/config/../classes/1gbt137w8n9.php) [function.require-once]: failed to open stream: No such file or directory in /home2/smizle2/public_html/hobbyshop/config/config.inc.php on line 41

 

Fatal error: require_once() [function.require]: Failed opening required '/home2/smizle2/public_html/hobbyshop/config/../classes/1gbt137w8n9.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/smizle2/public_html/hobbyshop/config/config.inc.php on line 41

Edited by evilmc (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Yes vekia, that's exactly why I was suspecting some kind of code injection.

 

The config.inc.php has this:

 

<?php

/* Debug only */
@ini_set('display_errors', 'off');
define('_PS_DEBUG_SQL_', false);

/* SSL configuration */
define('_PS_SSL_PORT_',443);

/* Improve PHP configuration to prevent issues */
@ini_set('upload_max_filesize', '100M');
@ini_set('default_charset', 'utf-8');

/* Correct Apache charset */
header('Content-Type: text/html; charset=utf-8');

/* Autoload */
function __autoload($className)
{
    if (!class_exists($className, false))
        require_once(dirname(__FILE__).'/../classes/'.str_replace(chr(0), '', $className).'.php');
}

/* No settings file? goto installer...*/
if (!file_exists(dirname(__FILE__).'/settings.inc.php'))
{
    $dir = ((is_dir($_SERVER['REQUEST_URI']) OR substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/');
    if(!file_exists(dirname(__FILE__).'/../install'))
        die('Error: \'install\' directory is missing');
    Tools::redirect('install', $dir);
}
include(dirname(__FILE__).'/settings.inc.php');

/* Redefine REQUEST_URI if empty (on some webservers...) */
if (!isset($_SERVER['REQUEST_URI']) OR empty($_SERVER['REQUEST_URI']))
{
    $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
    if (isset($_SERVER['QUERY_STRING']) AND !empty($_SERVER['QUERY_STRING']))
        $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING'];
}

/* Include all defines */
include(dirname(__FILE__).'/defines.inc.php');
/* Defines are not in defines.inc.php file for no conflicts in installer */
define('_PS_MAGIC_QUOTES_GPC_',         get_magic_quotes_gpc());
define('_PS_MODULE_DIR_',           _PS_ROOT_DIR_.'/modules/');
define('_PS_MYSQL_REAL_ESCAPE_STRING_', function_exists('mysql_real_escape_string'));

/* aliases */
function p($var) {
    return (Tools::P($var));
}
function d($var) {
    Tools::D($var);
}

global $_MODULES;
$_MODULES = array();

/* Globals */
global $defaultCountry;

/* Load all configuration keys */
Configuration::loadConfiguration();

/* Load all language definitions */
Language::loadLanguages();

/* Load all zone/tax relations */
Tax::loadTaxZones();

/* Loading default country */
$defaultCountry = new Country(intval(Configuration::get('PS_COUNTRY_DEFAULT')));


/*
 * It is not safe to rely on the system's timezone settings, but we can\'t easily determine the user timezone and the use of this function cause trouble for some configurations.
 * This will generate a PHP Strict Standards notice. To fix it up, uncomment the following line.
 */
if (function_exists('date_default_timezone_set'))
{
    $timezone = Tools::getTimezones(Configuration::get('PS_TIMEZONE'));
    date_default_timezone_set($timezone);
}

/* Smarty */
include(dirname(__FILE__).'/smarty.config.inc.php');
 

 

I don't find anything suspicious in that. Correct me if I am wrong.

Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...