Templateshop - Eine große Auswahl an neuen und modernen Templates für die modified eCommerce Shopsoftware
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Shop wird nicht mehr angezeigt

    Katja66

    • Neu im Forum
    • Beiträge: 23
    Shop wird nicht mehr angezeigt
    am: 20. März 2011, 18:56:17
    Hallo,

    mein Shop wird nicht mehr anzeigt, keine Bilder, nur Befehle.

    Link: http://www.backformen-silikon.de

    Ich bin für jede Hilfe sehr, sehr dankbar.

    Gruß

    Katja



    Linkback: https://www.modified-shop.org/forum/index.php?topic=11792.0

    DokuMan

    • modified Team
    • Beiträge: 6.669
    • Geschlecht:
    Shop wird nicht mehr angezeigt
    Antwort #1 am: 20. März 2011, 18:59:14
    Bei dir fehlt die Datei "application_top.php" unter "includes/application_top.php".

    Was hast du geändert?

    Katja66

    • Neu im Forum
    • Beiträge: 23
    Shop wird nicht mehr angezeigt
    Antwort #2 am: 20. März 2011, 19:30:29
    Hallo,

    die Datei ist aber da...

    wollte Protected Shops installieren und da ist etwas schief gegangen...

    Habe dann eine Datenbank-Wiederherstellung gemacht und den Shop neu hochgeladen...

    War wohl nicht so gut...

    Wenn ich in den Adminbereich will, bekomme ich folgende Fehlermeldung:
    Warning: require(/var/www/web68/html/includes/filenames.php) [function.require]: failed to open stream: No such file or directory in /var/www/web68/html/admin/includes/application_top.php on line 70

    Fatal error: require() [function.require]: Failed opening required '/var/www/web68/html/includes/filenames.php' (include_path='.') in /var/www/web68/html/admin/includes/application_top.php on line 70

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Shop wird nicht mehr angezeigt
    Antwort #3 am: 20. März 2011, 19:35:09
    Verwechsle bitte nicht "/admin/includes/application_top.php" mit "/includes/application_top.php". ;-)

    Grüße

    Torsten

    Katja66

    • Neu im Forum
    • Beiträge: 23
    Shop wird nicht mehr angezeigt
    Antwort #4 am: 20. März 2011, 20:07:32
    Ja, ich weiß. Habe ich nicht verwechselt.

    Ist aber unter includes.

    Ich kriege echt die Krise.

    Was kann ich denn tun?

    Wenn ich jetzt in den Adminbereich möchte, bekomme ich folgende Fehlermeldung:
    Warning: require(/var/www/web68/html/includes/classes/logger.php) [function.require]: failed to open stream: No such file or directory in /var/www/web68/html/admin/includes/application_top.php on line 292

    Fatal error: require() [function.require]: Failed opening required '/var/www/web68/html/includes/classes/logger.php' (include_path='.') in /var/www/web68/html/admin/includes/application_top.php on line 292
    Da gibt es keine "logger.php".

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Shop wird nicht mehr angezeigt
    Antwort #5 am: 20. März 2011, 20:35:24
    Die Datei "logger.php" muss es bei dir aber im Ordner "/includes/classes/" geben.

    Hänge bitte mal deine beiden "application_top.php" Dateien hier an.

    Grüße

    Torsten

    Katja66

    • Neu im Forum
    • Beiträge: 23
    Shop wird nicht mehr angezeigt
    Antwort #6 am: 20. März 2011, 21:07:28
    includes/application_top.php

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: application_top.php 1323 2005-10-27 17:58:08Z mz $

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(application_top.php,v 1.273 2003/05/19); www.oscommerce.com
       (c) 2003      nextcommerce (application_top.php,v 1.54 2003/08/25); www.nextcommerce.org

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contribution:
       Add A Quickie v1.0 Autor  Harald Ponce de Leon

       Credit Class/Gift Vouchers/Discount Coupons (Version 5.10)
       http://www.oscommerce.com/community/contributions,282
       Copyright (c) Strider | Strider@oscworks.com
       Copyright (c  Nick Stanko of UkiDev.com, nick@ukidev.com
       Copyright (c) Andre ambidex@gmx.net
       Copyright (c) 2001,2002 Ian C Wilson http://www.phesis.org

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/

    // start the timer for the page parse time log
    define('PAGE_PARSE_START_TIME', microtime());

    // set the level of error reporting
    error_reporting(E_ALL & ~E_NOTICE);
    //  error_reporting(E_ALL);

    // Set the local configuration parameters - mainly for developers - if exists else the mainconfigure
    if (file_exists('includes/local/configure.php')) {
            include ('includes/local/configure.php');
    } else {
            include ('includes/configure.php');
    }

    $php4_3_10 = (0 == version_compare(phpversion(), "4.3.10"));
    define('PHP4_3_10', $php4_3_10);
    // define the project version
    define('PROJECT_VERSION', 'xt:Commerce v3.0.4 SP2.1 MODIFIED VERSION Stand: 25/04/2009');

    // set the type of request (secure or not)
    $request_type = (getenv('HTTPS') == '1' || getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

    // set php_self in the local scope
    $PHP_SELF = $_SERVER['PHP_SELF'];
    //--- SHOPSTAT -------------------------//
    if (preg_match("/\.html$/",$PHP_SELF) )
        {
        if(!preg_match("/\.html$/",$_SERVER['SCRIPT_NAME']))
            {
            $PHP_SELF = $_SERVER['SCRIPT_NAME'];
            }
        elseif(!preg_match("/\.html$/",$_SERVER['SCRIPT_FILENAME']))
            {
            $PHP_SELF = $_SERVER['SCRIPT_FILENAME'];
            }
        }
    //--- SHOPSTAT -------------------------//

    // include the list of project filenames
    require (DIR_WS_INCLUDES.'filenames.php');

    // include the list of project database tables
    require (DIR_WS_INCLUDES.'database_tables.php');

    // SQL caching dir
    define('SQL_CACHEDIR', DIR_FS_CATALOG.'cache/');

    // Below are some defines which affect the way the discount coupon/gift voucher system work
    // Be careful when editing them.
    //
    // Set the length of the redeem code, the longer the more secure
    define('SECURITY_CODE_LENGTH', '10');
    //
    // The settings below determine whether a new customer receives an incentive when they first signup
    //
    // Set the amount of a Gift Voucher that the new signup will receive, set to 0 for none
    //  define('NEW_SIGNUP_GIFT_VOUCHER_AMOUNT', '10');  // placed in the admin configuration mystore
    //
    // Set the coupon ID that will be sent by email to a new signup, if no id is set then no email :)
    //  define('NEW_SIGNUP_DISCOUNT_COUPON', '3'); // placed in the admin configuration mystore

    // Store DB-Querys in a Log File
    define('STORE_DB_TRANSACTIONS', 'false');

    // graduated prices model or products assigned ?
    define('GRADUATED_ASSIGN', 'true');

    // include used functions

    // Database
    require_once (DIR_FS_INC.'xtc_db_connect.inc.php');
    require_once (DIR_FS_INC.'xtc_db_close.inc.php');
    require_once (DIR_FS_INC.'xtc_db_error.inc.php');
    require_once (DIR_FS_INC.'xtc_db_perform.inc.php');
    require_once (DIR_FS_INC.'xtc_db_query.inc.php');
    require_once (DIR_FS_INC.'xtc_db_queryCached.inc.php');
    require_once (DIR_FS_INC.'xtc_db_fetch_array.inc.php');
    require_once (DIR_FS_INC.'xtc_db_num_rows.inc.php');
    require_once (DIR_FS_INC.'xtc_db_data_seek.inc.php');
    require_once (DIR_FS_INC.'xtc_db_insert_id.inc.php');
    require_once (DIR_FS_INC.'xtc_db_free_result.inc.php');
    require_once (DIR_FS_INC.'xtc_db_fetch_fields.inc.php');
    require_once (DIR_FS_INC.'xtc_db_output.inc.php');
    require_once (DIR_FS_INC.'xtc_db_input.inc.php');
    require_once (DIR_FS_INC.'xtc_db_prepare_input.inc.php');
    require_once (DIR_FS_INC.'xtc_get_top_level_domain.inc.php');

    // EOF

    // html basics
    require_once (DIR_FS_INC.'xtc_href_link.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_separator.inc.php');
    require_once (DIR_FS_INC.'xtc_php_mail.inc.php');

    require_once (DIR_FS_INC.'xtc_product_link.inc.php');
    require_once (DIR_FS_INC.'xtc_category_link.inc.php');
    require_once (DIR_FS_INC.'xtc_manufacturer_link.inc.php');

    // html functions
    require_once (DIR_FS_INC.'xtc_draw_checkbox_field.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_form.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_hidden_field.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_input_field.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_password_field.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_pull_down_menu.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_radio_field.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_selection_field.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_separator.inc.php');
    require_once (DIR_FS_INC.'xtc_draw_textarea_field.inc.php');
    require_once (DIR_FS_INC.'xtc_image_button.inc.php');

    require_once (DIR_FS_INC.'xtc_not_null.inc.php');
    require_once (DIR_FS_INC.'xtc_update_whos_online.inc.php');
    require_once (DIR_FS_INC.'xtc_activate_banners.inc.php');
    require_once (DIR_FS_INC.'xtc_expire_banners.inc.php');
    require_once (DIR_FS_INC.'xtc_expire_specials.inc.php');
    require_once (DIR_FS_INC.'xtc_parse_category_path.inc.php');
    require_once (DIR_FS_INC.'xtc_get_product_path.inc.php');

    require_once (DIR_FS_INC.'xtc_get_category_path.inc.php');

    require_once (DIR_FS_INC.'xtc_get_parent_categories.inc.php');
    require_once (DIR_FS_INC.'xtc_redirect.inc.php');
    require_once (DIR_FS_INC.'xtc_get_uprid.inc.php');
    require_once (DIR_FS_INC.'xtc_get_all_get_params.inc.php');
    require_once (DIR_FS_INC.'xtc_has_product_attributes.inc.php');
    require_once (DIR_FS_INC.'xtc_image.inc.php');
    require_once (DIR_FS_INC.'xtc_check_stock_attributes.inc.php');
    require_once (DIR_FS_INC.'xtc_currency_exists.inc.php');
    require_once (DIR_FS_INC.'xtc_remove_non_numeric.inc.php');
    require_once (DIR_FS_INC.'xtc_get_ip_address.inc.php');
    require_once (DIR_FS_INC.'xtc_setcookie.inc.php');
    require_once (DIR_FS_INC.'xtc_check_agent.inc.php');
    require_once (DIR_FS_INC.'xtc_count_cart.inc.php');
    require_once (DIR_FS_INC.'xtc_get_qty.inc.php');
    require_once (DIR_FS_INC.'create_coupon_code.inc.php');
    require_once (DIR_FS_INC.'xtc_gv_account_update.inc.php');
    require_once (DIR_FS_INC.'xtc_get_tax_rate_from_desc.inc.php');
    require_once (DIR_FS_INC.'xtc_get_tax_rate.inc.php');
    require_once (DIR_FS_INC.'xtc_add_tax.inc.php');
    require_once (DIR_FS_INC.'xtc_cleanName.inc.php');
    require_once (DIR_FS_INC.'xtc_calculate_tax.inc.php');
    require_once (DIR_FS_INC.'xtc_input_validation.inc.php');
    require_once (DIR_FS_INC.'xtc_js_lang.php');

    // make a connection to the database... now
    xtc_db_connect() or die('Unable to connect to database server!');

    $configuration_query = xtc_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from '.TABLE_CONFIGURATION);
    while ($configuration = xtc_db_fetch_array($configuration_query)) {
            define($configuration['cfgKey'], $configuration['cfgValue']);
    }

    require_once (DIR_WS_CLASSES.'class.phpmailer.php');
    if (EMAIL_TRANSPORT == 'smtp')
            require_once (DIR_WS_CLASSES.'class.smtp.php');
    require_once (DIR_FS_INC.'xtc_Security.inc.php');

    // set the application parameters

    function xtDBquery($query) {
            if (DB_CACHE == 'true') {
    //                      echo  'cached query: '.$query.'<br>';
                    $result = xtc_db_queryCached($query);
            } else {
    //                              echo '::'.$query .'<br>';
                    $result = xtc_db_query($query);

            }
            return $result;
    }

    function CacheCheck() {
            if (USE_CACHE == 'false') return false;
            if (!isset($_COOKIE['XTCsid'])) return false;
            return true;
    }

    // if gzip_compression is enabled, start to buffer the output
    if ((GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION>= '4')) {
            if (($ini_zlib_output_compression = (int) ini_get('zlib.output_compression')) <1) {
                    ob_start('ob_gzhandler');
            } else {
                    ini_set('zlib.output_compression_level', GZIP_LEVEL);
            }
    }
    //--- SHOPSTAT -------------------------//
    /*
    // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled
    if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
            if (strlen(getenv('PATH_INFO'))> 1) {
                    $GET_array = array ();
                    $PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF);
                    $vars = explode('/', substr(getenv('PATH_INFO'), 1));
                    for ($i = 0, $n = sizeof($vars); $i <$n; $i ++) {
                            if (strpos($vars[$i], '[]')) {
                                    $GET_array[substr($vars[$i], 0, -2)][] = $vars[$i +1];
                            } else {
                                       $_GET[$key] = $value;
                            }
                            $i ++;
                    }

                    if (sizeof($GET_array)> 0) {
                            while (list ($key, $value) = each($GET_array)) {
                                    $_GET[$key] = htmlspecialchars($value);
                    $_GET[$key] = $value;
                            }
                    }
            }
    }
    */

    //--- SHOPSTAT -------------------------//

    // check GET/POST/COOKIE VARS
    require (DIR_WS_CLASSES.'class.inputfilter.php');
    $InputFilter = new InputFilter();
    //$_GET = $InputFilter->process($_GET);
    $_GET = $InputFilter->process($_GET, true);
    $_POST = $InputFilter->process($_POST);

    // set the top level domains
    $http_domain = xtc_get_top_level_domain(HTTP_SERVER);
    $https_domain = xtc_get_top_level_domain(HTTPS_SERVER);
    $current_domain = (($request_type == 'NONSSL') ? $http_domain : $https_domain);

    // include shopping cart class
    require (DIR_WS_CLASSES.'shopping_cart.php');

    // include navigation history class
    require (DIR_WS_CLASSES.'navigation_history.php');
    require (DIR_WS_CLASSES.'class.wishlist.php');
    $wish = new Wishlist;

    // some code to solve compatibility issues
    require (DIR_WS_FUNCTIONS.'compatibility.php');

    // define how the session functions will be used
    require (DIR_WS_FUNCTIONS.'sessions.php');

    // set the session name and save path
    session_name('XTCsid');
    if (STORE_SESSIONS != 'mysql') session_save_path(SESSION_WRITE_DIRECTORY);

    // set the session cookie parameters
    if (function_exists('session_set_cookie_params')) {
            session_set_cookie_params(0, '/', (xtc_not_null($current_domain) ? '.'.$current_domain : ''));
    }
    elseif (function_exists('ini_set')) {
            ini_set('session.cookie_lifetime', '0');
            ini_set('session.cookie_path', '/');
            ini_set('session.cookie_domain', (xtc_not_null($current_domain) ? '.'.$current_domain : ''));
    }

    // set the session ID if it exists
    if (isset ($_POST[session_name()])) {
            session_id($_POST[session_name()]);
    }
    elseif (($request_type == 'SSL') && isset ($_GET[session_name()])) {
            session_id($_GET[session_name()]);
    }

    // start the session
    $session_started = false;
    if (SESSION_FORCE_COOKIE_USE == 'True') {
            xtc_setcookie('cookie_test', 'please_accept_for_session', time() + 60 * 60 * 24 * 30, '/', $current_domain);

            if (isset ($_COOKIE['cookie_test'])) {
                    session_start();
                    include (DIR_WS_INCLUDES.'tracking.php');
                    $session_started = true;
            }
    } else {
            session_start();
            include (DIR_WS_INCLUDES.'tracking.php');
            $session_started = true;
    }

    // check the Agent
    $truncate_session_id = false;
    if (CHECK_CLIENT_AGENT) {
            if (xtc_check_agent() == 1) {
                    $truncate_session_id = true;
            }
    }

    // verify the ssl_session_id if the feature is enabled
    if (($request_type == 'SSL') && (SESSION_CHECK_SSL_SESSION_ID == 'True') && (ENABLE_SSL == true) && ($session_started == true)) {
            $ssl_session_id = getenv('SSL_SESSION_ID');
            if (!session_is_registered('SSL_SESSION_ID')) {
                    $_SESSION['SESSION_SSL_ID'] = $ssl_session_id;
            }

            if ($_SESSION['SESSION_SSL_ID'] != $ssl_session_id) {
                    session_destroy();
                    xtc_redirect(xtc_href_link(FILENAME_SSL_CHECK));
            }
    }

    // verify the browser user agent if the feature is enabled
    if (SESSION_CHECK_USER_AGENT == 'True') {
            $http_user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
            $http_user_agent2 = strtolower(getenv("HTTP_USER_AGENT"));
            $http_user_agent = ($http_user_agent == $http_user_agent2) ? $http_user_agent : $http_user_agent.';'.$http_user_agent2;
            if (!isset ($_SESSION['SESSION_USER_AGENT'])) {
                    $_SESSION['SESSION_USER_AGENT'] = $http_user_agent;
            }

            if ($_SESSION['SESSION_USER_AGENT'] != $http_user_agent) {
                    session_destroy();
                    xtc_redirect(xtc_href_link(FILENAME_LOGIN));
            }
    }

    // verify the IP address if the feature is enabled
    if (SESSION_CHECK_IP_ADDRESS == 'True') {
            $ip_address = xtc_get_ip_address();
            if (!isset ($_SESSION['SESSION_IP_ADDRESS'])) {
                    $_SESSION['SESSION_IP_ADDRESS'] = $ip_address;
            }

            if ($_SESSION['SESSION_IP_ADDRESS'] != $ip_address) {
                    session_destroy();
                    xtc_redirect(xtc_href_link(FILENAME_LOGIN));
            }
    }

    // set the language
    if (!isset ($_SESSION['language']) || isset ($_GET['language'])) {

            include (DIR_WS_CLASSES.'language.php');
            $lng = new language(xtc_input_validation($_GET['language'], 'char', ''));

            if (!isset ($_GET['language']))
                    $lng->get_browser_language();

            $_SESSION['language'] = $lng->language['directory'];
            $_SESSION['languages_id'] = $lng->language['id'];
            $_SESSION['language_charset'] = $lng->language['language_charset'];
            $_SESSION['language_code'] = $lng->language['code'];
    }

    if (isset($_SESSION['language']) && !isset($_SESSION['language_charset'])) {

            include (DIR_WS_CLASSES.'language.php');
            $lng = new language(xtc_input_validation($_SESSION['language'], 'char', ''));

            $_SESSION['language'] = $lng->language['directory'];
            $_SESSION['languages_id'] = $lng->language['id'];
            $_SESSION['language_charset'] = $lng->language['language_charset'];
            $_SESSION['language_code'] = $lng->language['code'];

    }

    // include the language translations
    require (DIR_WS_LANGUAGES.$_SESSION['language'].'/'.$_SESSION['language'].'.php');

    // currency
    if (!isset ($_SESSION['currency']) || isset ($_GET['currency']) || ((USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $_SESSION['currency']))) {

            if (isset ($_GET['currency'])) {
                    if (!$_SESSION['currency'] = xtc_currency_exists($_GET['currency']))
                            $_SESSION['currency'] = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;
            } else {
                    $_SESSION['currency'] = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;
            }
    }
    if (isset ($_SESSION['currency']) && $_SESSION['currency'] == '') {
            $_SESSION['currency'] = DEFAULT_CURRENCY;
    }

    // write customers status in session
    require (DIR_WS_INCLUDES.'write_customers_status.php');

    // testing new price class

    require (DIR_WS_CLASSES.'main.php');
    $main = new main();

    require (DIR_WS_CLASSES.'xtcPrice.php');
    $xtPrice = new xtcPrice($_SESSION['currency'], $_SESSION['customers_status']['customers_status_id']);

    //--- SHOPSTAT -------------------------//
        $shopstat_ref = __FILE__;
        require("shopstat/shopstat.php");
    //--- SHOPSTAT -------------------------//

    // econda tracking
    if (TRACKING_ECONDA_ACTIVE=='true') {
            require(DIR_WS_INCLUDES . 'econda/class.econda304SP2.php');
            $econda = new econda();
    }

    require (DIR_WS_INCLUDES.FILENAME_CART_ACTIONS);
    // page restrictor
      if (!isset($_SESSION['__restrictor_passed'])) {
        include('./page.restrictor.php');
        $_SESSION['__restrictor_passed']='1';
      }
    // create the shopping cart & fix the cart if necesary
    if (!is_object($_SESSION['cart'])) {
            $_SESSION['cart'] = new shoppingCart();
    }

    // include the who's online functions
    xtc_update_whos_online();

    // split-page-results
    require (DIR_WS_CLASSES.'split_page_results.php');

    // infobox
    require (DIR_WS_CLASSES.'boxes.php');

    // auto activate and expire banners
    xtc_activate_banners();
    xtc_expire_banners();

    // auto expire special products
    xtc_expire_specials();
    require (DIR_WS_CLASSES.'product.php');
    // new p URLS
    if (isset ($_GET['info'])) {
            $site = explode('_', $_GET['info']);
            $pID = $site[0];
            $actual_products_id = (int) str_replace('p', '', $pID);
            $product = new product($actual_products_id);
    } // also check for old 3.0.3 URLS
    elseif (isset($_GET['products_id'])) {
            $actual_products_id = (int) $_GET['products_id'];
            $product = new product($actual_products_id);

    }
    if (!is_object($product)) {
            $product = new product();
    }

    // new c URLS
    if (isset ($_GET['cat'])) {
            $site = explode('_', $_GET['cat']);
            $cID = $site[0];
            $cID = str_replace('c', '', $cID);
            $_GET['cPath'] = xtc_get_category_path($cID);
    }
    // new m URLS
    if (isset ($_GET['manu'])) {
            $site = explode('_', $_GET['manu']);
            $mID = $site[0];
            $mID = (int)str_replace('m', '', $mID);
            $_GET['manufacturers_id'] = $mID;
    }

    // calculate category path
    if (isset ($_GET['cPath'])) {
            $cPath = xtc_input_validation($_GET['cPath'], 'cPath', '');
    }
    elseif (is_object($product) && !isset ($_GET['manufacturers_id'])) {
            if ($product->isProduct()) {
                    $cPath = xtc_get_product_path($actual_products_id);
            } else {
                    $cPath = '';
            }
    } else {
            $cPath = '';
    }

    if (xtc_not_null($cPath)) {
            $cPath_array = xtc_parse_category_path($cPath);
            $cPath = implode('_', $cPath_array);
            $current_category_id = $cPath_array[(sizeof($cPath_array) - 1)];
    } else {
            $current_category_id = 0;
    }

    // include the breadcrumb class and start the breadcrumb trail
    require (DIR_WS_CLASSES.'breadcrumb.php');
    $breadcrumb = new breadcrumb;

    $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
    $breadcrumb->add(HEADER_TITLE_CATALOG, xtc_href_link(FILENAME_DEFAULT));

    // add category names or the manufacturer name to the breadcrumb trail
    if (isset ($cPath_array)) {
            for ($i = 0, $n = sizeof($cPath_array); $i <$n; $i ++) {
                    if (GROUP_CHECK == 'true') {
                            $group_check = "and c.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 ";
                    }
                    $categories_query = xtDBquery("select
                                                                            cd.categories_name
                                                                            from "
    .TABLE_CATEGORIES_DESCRIPTION." cd,
                                                                            "
    .TABLE_CATEGORIES." c
                                                                            where cd.categories_id = '"
    .$cPath_array[$i]."'
                                                                            and c.categories_id=cd.categories_id
                                                                            "
    .$group_check."
                                                                            and cd.language_id='"
    .(int) $_SESSION['languages_id']."'");
                    if (xtc_db_num_rows($categories_query,true)> 0) {
                            $categories = xtc_db_fetch_array($categories_query,true);

                            $breadcrumb->add($categories['categories_name'], xtc_href_link(FILENAME_DEFAULT, xtc_category_link($cPath_array[$i], $categories['categories_name'])));
                    } else {
                            break;
                    }
            }
    }
    elseif (xtc_not_null($_GET['manufacturers_id'])) {
            $manufacturers_query = xtDBquery("select manufacturers_name from ".TABLE_MANUFACTURERS." where manufacturers_id = '".(int) $_GET['manufacturers_id']."'");
            $manufacturers = xtc_db_fetch_array($manufacturers_query, true);

            $breadcrumb->add($manufacturers['manufacturers_name'], xtc_href_link(FILENAME_DEFAULT, xtc_manufacturer_link((int) $_GET['manufacturers_id'], $manufacturers['manufacturers_name'])));

    }

    // add the products model/name to the breadcrumb trail
    if ($product->isProduct()) {
                    $breadcrumb->add($product->data['products_name'], xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($product->data['products_id'], $product->data['products_name'])));
    }

    // initialize the message stack for output messages
    require (DIR_WS_CLASSES.'message_stack.php');
    $messageStack = new messageStack;

    // set which precautions should be checked
    define('WARN_INSTALL_EXISTENCE', 'true');
    define('WARN_CONFIG_WRITEABLE', 'true');
    define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');
    define('WARN_SESSION_AUTO_START', 'true');
    define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

    // Include Template Engine
    require (DIR_WS_CLASSES.'Smarty_2.6.22/Smarty.class.php');

    if (isset ($_SESSION['customer_id'])) {
            $account_type_query = xtc_db_query("SELECT
                                                        account_type,
                                                        customers_default_address_id
                                                        FROM
                                                        "
    .TABLE_CUSTOMERS."
                                                        WHERE customers_id = '"
    .(int) $_SESSION['customer_id']."'");
            $account_type = xtc_db_fetch_array($account_type_query);

            // check if zone id is unset bug #0000169
            if (!isset ($_SESSION['customer_country_id'])) {
                    $zone_query = xtc_db_query("SELECT  entry_country_id
                                                                         FROM "
    .TABLE_ADDRESS_BOOK."
                                                                         WHERE customers_id='"
    .(int) $_SESSION['customer_id']."'
                                                                         and address_book_id='"
    .$account_type['customers_default_address_id']."'");

                    $zone = xtc_db_fetch_array($zone_query);
                    $_SESSION['customer_country_id'] = $zone['entry_country_id'];
            }
            $_SESSION['account_type'] = $account_type['account_type'];
    } else {
            $_SESSION['account_type'] = '0';
    }

    // modification for nre graduated system
    unset ($_SESSION['actual_content']);

    // econda tracking
    if (TRACKING_ECONDA_ACTIVE=='true') {  

            require(DIR_WS_INCLUDES . 'econda/emos.php');
    }

    xtc_count_cart();
    ?>
     
    admin/includes/application_top.php

    Code: PHP  [Auswählen]
    <?php
    /* --------------------------------------------------------------
       $Id: application_top.php 1323 2005-10-27 17:58:08Z mz $

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       Copyright (c) 2003 XT-Commerce
       --------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(application_top.php,v 1.158 2003/03/22); www.oscommerce.com
       (c) 2003      nextcommerce (application_top.php,v 1.46 2003/08/24); www.nextcommerce.org

       Released under the GNU General Public License
       --------------------------------------------------------------
       Third Party contribution:

       Customers Status v3.x  (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist

       Credit Class/Gift Vouchers/Discount Coupons (Version 5.10)
       http://www.oscommerce.com/community/contributions,282
       Copyright (c) Strider | Strider@oscworks.com
       Copyright (c  Nick Stanko of UkiDev.com, nick@ukidev.com
       Copyright (c) Andre ambidex@gmx.net
       Copyright (c) 2001,2002 Ian C Wilson http://www.phesis.org

       Released under the GNU General Public License
       --------------------------------------------------------------*/


      // Start the clock for the page parse time log
      define('PAGE_PARSE_START_TIME', microtime());

      // security
      define('_VALID_XTC',true);

      // Set the level of error reporting
      error_reporting(E_ALL & ~E_NOTICE);

      // Disable use_trans_sid as xtc_href_link() does this manually
      if (function_exists('ini_set')) {
        ini_set('session.use_trans_sid', 0);
      }

      // Set the local configuration parameters - mainly for developers or the main-configure
      if (file_exists('includes/local/configure.php')) {
        include('includes/local/configure.php');
      } else {
        require('includes/configure.php');
      }

      define('SQL_CACHEDIR',DIR_FS_CATALOG.'cache/');

      // Define the project version
      define('PROJECT_VERSION', 'xt:Commerce v3.0.4 SP2.1');

      // Set the length of the redeem code, the longer the more secure
      define('SECURITY_CODE_LENGTH', '6');

      // Used in the "Backup Manager" to compress backups
      define('LOCAL_EXE_GZIP', '/usr/bin/gzip');
      define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');
      define('LOCAL_EXE_ZIP', '/usr/local/bin/zip');
      define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip');

      // define the filenames used in the project
      define('FILENAME_ACCOUNTING', 'accounting.php');
      define('FILENAME_BACKUP', 'backup.php');
      define('FILENAME_BANNER_MANAGER', 'banner_manager.php');
      define('FILENAME_BANNER_STATISTICS', 'banner_statistics.php');
      define('FILENAME_CACHE', 'cache.php');
      define('FILENAME_CAMPAIGNS', 'campaigns.php');
      define('FILENAME_CATALOG_ACCOUNT_HISTORY_INFO', 'account_history_info.php');
      define('FILENAME_CATALOG_NEWSLETTER', 'newsletter.php');
      define('FILENAME_CATEGORIES', 'categories.php');
      define('FILENAME_CONFIGURATION', 'configuration.php');
      define('FILENAME_COUNTRIES', 'countries.php');
      define('FILENAME_CURRENCIES', 'currencies.php');
      define('FILENAME_CUSTOMERS', 'customers.php');
      define('FILENAME_CUSTOMERS_STATUS', 'customers_status.php');
      define('FILENAME_DEFAULT', 'start.php');
      define('FILENAME_DEFINE_LANGUAGE', 'define_language.php');
      define('FILENAME_FORMS', 'forms.php');
      define('FILENAME_FORM_VALUES', 'form_values.php');
      define('FILENAME_GEO_ZONES', 'geo_zones.php');
      define('FILENAME_LANGUAGES', 'languages.php');
      define('FILENAME_MAIL', 'mail.php');
      define('FILENAME_MANUFACTURERS', 'manufacturers.php');
      define('FILENAME_MODULES', 'modules.php');
      define('FILENAME_ORDERS', 'orders.php');
      define('FILENAME_ORDERS_INVOICE', 'invoice.php');
      define('FILENAME_ORDERS_PACKINGSLIP', 'packingslip.php');
      define('FILENAME_ORDERS_STATUS', 'orders_status.php');
      define('FILENAME_ORDERS_EDIT', 'orders_edit.php');
      define('FILENAME_POPUP_IMAGE', 'popup_image.php');
      define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php');
      define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php');
      define('FILENAME_REVIEWS', 'reviews.php');
      define('FILENAME_SERVER_INFO', 'server_info.php');
      define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php');
      define('FILENAME_SPECIALS', 'specials.php');
      define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php');
      define('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php');
      define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php');
      define('FILENAME_TAX_CLASSES', 'tax_classes.php');
      define('FILENAME_TAX_RATES', 'tax_rates.php');
      define('FILENAME_WHOS_ONLINE', 'whos_online.php');
      define('FILENAME_ZONES', 'zones.php');
      define('FILENAME_START', 'start.php');
      define('FILENAME_STATS_STOCK_WARNING', 'stats_stock_warning.php');
      define('FILENAME_TPL_BOXES','templates_boxes.php');
      define('FILENAME_TPL_MODULES','templates_modules.php');
      define('FILENAME_NEW_ATTRIBUTES','new_attributes.php');
      define('FILENAME_LOGOUT','../logoff.php');
      define('FILENAME_LOGIN','../login.php');
      define('FILENAME_CREATE_ACCOUNT','create_account.php');
      define('FILENAME_CREATE_ACCOUNT_SUCCESS','create_account_success.php');
      define('FILENAME_CUSTOMER_MEMO','customer_memo.php');
      define('FILENAME_CONTENT_MANAGER','content_manager.php');
      define('FILENAME_CONTENT_PREVIEW','content_preview.php');
      define('FILENAME_SECURITY_CHECK','security_check.php');
      define('FILENAME_PRINT_ORDER','print_order.php');
      define('FILENAME_CREDITS','credits.php');
      define('FILENAME_PRINT_PACKINGSLIP','print_packingslip.php');
      define('FILENAME_MODULE_NEWSLETTER','module_newsletter.php');
      define('FILENAME_GV_QUEUE', 'gv_queue.php');
      define('FILENAME_GV_MAIL', 'gv_mail.php');
      define('FILENAME_GV_SENT', 'gv_sent.php');
      define('FILENAME_COUPON_ADMIN', 'coupon_admin.php');
      define('FILENAME_POPUP_MEMO', 'popup_memo.php');
      define('FILENAME_SHIPPING_STATUS', 'shipping_status.php');
      define('FILENAME_SALES_REPORT','stats_sales_report.php');
      define('FILENAME_MODULE_EXPORT','module_export.php');
      define('FILENAME_EASY_POPULATE','easypopulate.php');
      define('FILENAME_BLACKLIST', 'blacklist.php');
      define('FILENAME_PRODUCTS_VPE','products_vpe.php');
      define('FILENAME_CAMPAIGNS_REPORT','stats_campaigns.php');
      define('FILENAME_XSELL_GROUPS','cross_sell_groups.php');
      define('FILENAME_PDF_EXPORT', 'pdf_export.php');
      define('FILENAME_ITRATOS_VCON','itratos_vcon.php');

      // GOOGLE SITEMAP - JUNG GESTALTEN - 07.10.2008
      define('FILENAME_GOOGLE_SITEMAP', '../google_sitemap.php');

      define('FILENAME_STATS_SEARCH_KEYWORDS', 'stats_search_keywords.php');
      define('FILENAME_PUH','powerundhandel.php');   // powerundhandel

      // define the database table names used in the project
      define('TABLE_ADDRESS_BOOK', 'address_book');
      define('TABLE_ADDRESS_FORMAT', 'address_format');
      define('TABLE_ADMIN_ACCESS', 'admin_access');
      define('TABLE_BANNERS', 'banners');
      define('TABLE_BANNERS_HISTORY', 'banners_history');
      define('TABLE_CAMPAIGNS', 'campaigns');
      define('TABLE_CATEGORIES', 'categories');
      define('TABLE_CATEGORIES_DESCRIPTION', 'categories_description');
      define('TABLE_CONFIGURATION', 'configuration');
      define('TABLE_CONFIGURATION_GROUP', 'configuration_group');
      define('TABLE_TPL_MODULES_CONFIGURATION', 'tpl_modules_configuration ');
      define('TABLE_COUNTRIES', 'countries');
      define('TABLE_CURRENCIES', 'currencies');
      define('TABLE_CUSTOMERS', 'customers');
      define('TABLE_CUSTOMERS_BASKET', 'customers_basket');
      define('TABLE_CUSTOMERS_BASKET_ATTRIBUTES', 'customers_basket_attributes');
      define('TABLE_CUSTOMERS_INFO', 'customers_info');
      define('TABLE_CUSTOMERS_IP', 'customers_ip');
      define('TABLE_CUSTOMERS_STATUS', 'customers_status');
      define('TABLE_CUSTOMERS_STATUS_HISTORY', 'customers_status_history');
      define('TABLE_FORMS', 'forms');
      define('TABLE_LANGUAGES', 'languages');
      define('TABLE_MANUFACTURERS', 'manufacturers');
      define('TABLE_MANUFACTURERS_INFO', 'manufacturers_info');
      define('TABLE_NEWSLETTERS', 'newsletters');
      define('TABLE_NEWSLETTERS_HISTORY', 'newsletters_history');
      define('TABLE_NEWSLETTER_RECIPIENTS', 'newsletter_recipients');
      define('TABLE_ORDERS', 'orders');
      define('TABLE_ORDERS_PRODUCTS', 'orders_products');
      define('TABLE_ORDERS_PRODUCTS_ATTRIBUTES', 'orders_products_attributes');
      define('TABLE_ORDERS_PRODUCTS_DOWNLOAD', 'orders_products_download');
      define('TABLE_ORDERS_STATUS', 'orders_status');
      define('TABLE_ORDERS_STATUS_HISTORY', 'orders_status_history');
      define('TABLE_ORDERS_TOTAL', 'orders_total');
      define('TABLE_ORDERS_RECALCULATE', 'orders_recalculate');
      define('TABLE_PERSONAL_OFFERS_BY','personal_offers_by_customers_status_');
      define('TABLE_PRODUCTS', 'products');
      define('TABLE_PRODUCTS_ATTRIBUTES', 'products_attributes');
      define('TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD', 'products_attributes_download');
      define('TABLE_PRODUCTS_CONTENT','products_content');
      define('TABLE_PRODUCTS_DESCRIPTION', 'products_description');
      define('TABLE_PRODUCTS_NOTIFICATIONS', 'products_notifications');
      define('TABLE_PRODUCTS_IMAGES', 'products_images');
      define('TABLE_PRODUCTS_OPTIONS', 'products_options');
      define('TABLE_PRODUCTS_OPTIONS_VALUES', 'products_options_values');
      define('TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS', 'products_options_values_to_products_options');
      define('TABLE_PRODUCTS_TO_CATEGORIES', 'products_to_categories');
      define('TABLE_PRODUCTS_VPE','products_vpe');
      define('TABLE_PRODUCTS_XSELL','products_xsell');
      define('TABLE_PRODUCTS_XSELL_GROUPS','products_xsell_grp_name');
      define('TABLE_REVIEWS', 'reviews');
      define('TABLE_REVIEWS_DESCRIPTION', 'reviews_description');
      define('TABLE_SESSIONS', 'sessions');
      define('TABLE_SPECIALS', 'specials');
      define('TABLE_TAX_CLASS', 'tax_class');
      define('TABLE_TAX_RATES', 'tax_rates');
      define('TABLE_TPL_MODULES_CONFIGURATION', 'tpl_modules_configuration');
      define('TABLE_GEO_ZONES', 'geo_zones');
      define('TABLE_ZONES_TO_GEO_ZONES', 'zones_to_geo_zones');
      define('TABLE_WHOS_ONLINE', 'whos_online');
      define('TABLE_ZONES', 'zones');
      define('TABLE_BOX_ALIGN','box_align');
      define('TABLE_CUSTOMERS_MEMO','customers_memo');
      define('TABLE_CONTENT_MANAGER','content_manager');
      define('TABLE_MEDIA_CONTENT','media_content');
      define('TABLE_MODULE_NEWSLETTER','module_newsletter');
      define('TABLE_CM_FILE_FLAGS', 'cm_file_flags');
      define('TABLE_COUPON_GV_QUEUE', 'coupon_gv_queue');
      define('TABLE_COUPON_GV_CUSTOMER', 'coupon_gv_customer');
      define('TABLE_COUPON_EMAIL_TRACK', 'coupon_email_track');
      define('TABLE_COUPON_REDEEM_TRACK', 'coupon_redeem_track');
      define('TABLE_COUPONS', 'coupons');
      define('TABLE_COUPONS_DESCRIPTION', 'coupons_description');
      define('TABLE_SERVER_TRACKING', 'server_tracking');
      define('TABLE_SHIPPING_STATUS', 'shipping_status');
      define('TABLE_BLACKLIST', 'card_blacklist');
      define('TABLE_CAMPAIGNS_IP','campaigns_ip');
      define('TABLE_PUH_PRODUCTS','ZZZ_products');                                                          ## powerundhandel
     define('TABLE_PUH_PRODUCTS_DESCRIPTION','ZZZ_products_description');          ## powerundhandel  

      // include needed functions
      require_once(DIR_FS_INC . 'xtc_db_connect.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_close.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_error.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_query.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_queryCached.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_perform.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_fetch_array.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_num_rows.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_data_seek.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_insert_id.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_free_result.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_fetch_fields.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_output.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_input.inc.php');
      require_once(DIR_FS_INC . 'xtc_db_prepare_input.inc.php');
      require_once(DIR_FS_INC . 'xtc_get_ip_address.inc.php');
      require_once(DIR_FS_INC . 'xtc_setcookie.inc.php');
      require_once(DIR_FS_INC . 'xtc_validate_email.inc.php');
      require_once(DIR_FS_INC . 'xtc_not_null.inc.php');
      require_once(DIR_FS_INC . 'xtc_add_tax.inc.php');
      require_once(DIR_FS_INC . 'xtc_get_tax_rate.inc.php');
      require_once(DIR_FS_INC . 'xtc_get_qty.inc.php');
      require_once(DIR_FS_INC . 'xtc_product_link.inc.php');
      require_once(DIR_FS_INC . 'xtc_cleanName.inc.php');

      // customization for the design layout
      define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

      // Define how do we update currency exchange rates
      // Possible values are 'oanda' 'xe' or ''
      define('CURRENCY_SERVER_PRIMARY', 'oanda');
      define('CURRENCY_SERVER_BACKUP', 'xe');

      // Use the DB-Logger
      define('STORE_DB_TRANSACTIONS', 'false');

      // include the database functions
    //  require(DIR_WS_FUNCTIONS . 'database.php');

      // make a connection to the database... now
      xtc_db_connect() or die('Unable to connect to database server!');

      // set application wide parameters
      $configuration_query = xtc_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION . '');
      while ($configuration = xtc_db_fetch_array($configuration_query)) {
        define($configuration['cfgKey'], $configuration['cfgValue']);
      }

      define('FILENAME_IMAGEMANIPULATOR',IMAGE_MANIPULATOR);
        function xtDBquery($query) {
           if (DB_CACHE=='true') {
                 $result=xtc_db_queryCached($query);
                 //echo 'cached query: '.$query.'<br>';
              } else {
                 $result=xtc_db_query($query);
        }
        return $result;
      }

      // initialize the logger class
      require(DIR_WS_CLASSES . 'logger.php');

      // include shopping cart class
      require(DIR_WS_CLASSES . 'shopping_cart.php');

      // some code to solve compatibility issues
      require(DIR_WS_FUNCTIONS . 'compatibility.php');

      require(DIR_WS_FUNCTIONS . 'general.php');

      // define how the session functions will be used
      require(DIR_WS_FUNCTIONS . 'sessions.php');

        // define our general functions used application-wide
      require(DIR_WS_FUNCTIONS . 'html_output.php');

      // set the session name and save path
      session_name('XTCsid');
            if (STORE_SESSIONS != 'mysql') session_save_path(SESSION_WRITE_DIRECTORY);

      // set the session cookie parameters
      if (function_exists('session_set_cookie_params')) {
        session_set_cookie_params(0, '/', (xtc_not_null($current_domain) ? '.' . $current_domain : ''));
      } elseif (function_exists('ini_set')) {
        ini_set('session.cookie_lifetime', '0');
        ini_set('session.cookie_path', '/');
        ini_set('session.cookie_domain', (xtc_not_null($current_domain) ? '.' . $current_domain : ''));
      }

      // set the session ID if it exists
      if (isset($_POST[session_name()])) {
        session_id($_POST[session_name()]);
      } elseif ( ($request_type == 'SSL') && isset($_GET[session_name()]) ) {
        session_id($_GET[session_name()]);
      }

      // start the session
      $session_started = false;
      if (SESSION_FORCE_COOKIE_USE == 'True') {
        xtc_setcookie('cookie_test', 'please_accept_for_session', time()+60*60*24*30, '/', $current_domain);

        if (isset($HTTP_COOKIE_VARS['cookie_test'])) {
          session_start();
          $session_started = true;
        }
      } elseif (CHECK_CLIENT_AGENT == 'True') {
        $user_agent = strtolower(getenv('HTTP_USER_AGENT'));
        $spider_flag = false;

        if ($spider_flag == false) {
          session_start();
          $session_started = true;
        }
      } else {
        session_start();
        $session_started = true;
      }

      // verify the ssl_session_id if the feature is enabled
      if ( ($request_type == 'SSL') && (SESSION_CHECK_SSL_SESSION_ID == 'True') && (ENABLE_SSL == true) && ($session_started == true) ) {
        $ssl_session_id = getenv('SSL_SESSION_ID');
        if (!session_is_registered('SSL_SESSION_ID')) {
          $_SESSION['SESSION_SSL_ID'] = $ssl_session_id;
        }

        if ($_SESSION['SESSION_SSL_ID'] != $ssl_session_id) {
          session_destroy();
          xtc_redirect(xtc_href_link(FILENAME_SSL_CHECK));
        }
      }

      // verify the browser user agent if the feature is enabled
    if (SESSION_CHECK_USER_AGENT == 'True') {
            $http_user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
            $http_user_agent2 = strtolower(getenv("HTTP_USER_AGENT"));
            $http_user_agent = ($http_user_agent == $http_user_agent2) ? $http_user_agent : $http_user_agent.';'.$http_user_agent2;
            if (!isset($_SESSION['SESSION_USER_AGENT'])) {
                    $_SESSION['SESSION_USER_AGENT'] = $http_user_agent;
            }

            if ($_SESSION['SESSION_USER_AGENT'] != $http_user_agent) {
                    session_destroy();
                    xtc_redirect(xtc_href_link(FILENAME_LOGIN));
            }
    }

      // verify the IP address if the feature is enabled
      if (SESSION_CHECK_IP_ADDRESS == 'True') {
        $ip_address = xtc_get_ip_address();
        if (!xtc_session_is_registered('SESSION_IP_ADDRESS')) {
          $_SESSION['SESSION_IP_ADDRESS'] = $ip_address;
        }

        if ($_SESSION['SESSION_IP_ADDRESS'] != $ip_address) {
          session_destroy();
          xtc_redirect(xtc_href_link(FILENAME_LOGIN));
        }
      }

      // set the language
      if (!isset($_SESSION['language']) || isset($_GET['language'])) {

        include(DIR_WS_CLASSES . 'language.php');
        $lng = new language($_GET['language']);

        if (!isset($_GET['language'])) $lng->get_browser_language();

        $_SESSION['language'] = $lng->language['directory'];
        $_SESSION['languages_id'] = $lng->language['id'];
      }

      // include the language translations
      require(DIR_FS_LANGUAGES . $_SESSION['language'] . '/admin/'.$_SESSION['language'] . '.php');
      require(DIR_FS_LANGUAGES . $_SESSION['language'] . '/admin/buttons.php');
      $current_page = split('\?', basename($_SERVER['PHP_SELF'])); $current_page = $current_page[0]; // for BadBlue(Win32) webserver compatibility
      if (file_exists(DIR_FS_LANGUAGES . $_SESSION['language'] . '/admin/'.$current_page)) {
        include(DIR_FS_LANGUAGES . $_SESSION['language'] . '/admin/'.  $current_page);
      }

      // write customers status in session
      require('../' . DIR_WS_INCLUDES . 'write_customers_status.php');

      // for tracking of customers
      $_SESSION['user_info'] = array();
      if (!$_SESSION['user_info']['user_ip']) {
        $_SESSION['user_info']['user_ip'] = $_SERVER['REMOTE_ADDR'];
    //    $user_info['user_ip_date'] =  value will be in fact added when login ;
        $_SESSION['user_info']['user_host'] = gethostbyaddr( $_SERVER['REMOTE_ADDR'] );;
        $_SESSION['user_info']['advertiser'] = $_GET['ad'];
        $_SESSION['user_info']['referer_url'] = $_SERVER['HTTP_REFERER'];
      }

      // define our localization functions
      require(DIR_WS_FUNCTIONS . 'localization.php');

      // Include validation functions (right now only email address)
      //require(DIR_WS_FUNCTIONS . 'validations.php');

      // setup our boxes
      require(DIR_WS_CLASSES . 'table_block.php');
      require(DIR_WS_CLASSES . 'box.php');

      // initialize the message stack for output messages
      require(DIR_WS_CLASSES . 'message_stack.php');
      $messageStack = new messageStack;

      // split-page-results
      require(DIR_WS_CLASSES . 'split_page_results.php');

      // entry/item info classes
      require(DIR_WS_CLASSES . 'object_info.php');

      // file uploading class
      require(DIR_WS_CLASSES . 'upload.php');

      // calculate category path
      if (isset($_GET['cPath'])) {
        $cPath = $_GET['cPath'];
      } else {
        $cPath = '';
      }
      if (strlen($cPath)> 0) {
        $cPath_array = explode('_', $cPath);
        $current_category_id = $cPath_array[(sizeof($cPath_array)-1)];
      } else {
        $current_category_id = 0;
      }

      // default open navigation box
      if (!isset($_SESSION['selected_box'])) {
        $_SESSION['selected_box'] = 'configuration';
      }
      if (isset($_GET['selected_box'])) {
        $_SESSION['selected_box'] = $_GET['selected_box'];
      }

      // the following cache blocks are used in the Tools->Cache section
      // ('language' in the filename is automatically replaced by available languages)
      $cache_blocks = array(array('title' => TEXT_CACHE_CATEGORIES, 'code' => 'categories', 'file' => 'categories_box-language.cache', 'multiple' => true),
                            array('title' => TEXT_CACHE_MANUFACTURERS, 'code' => 'manufacturers', 'file' => 'manufacturers_box-language.cache', 'multiple' => true),
                            array('title' => TEXT_CACHE_ALSO_PURCHASED, 'code' => 'also_purchased', 'file' => 'also_purchased-language.cache', 'multiple' => true)
                           );

      // check if a default currency is set
      if (!defined('DEFAULT_CURRENCY')) {
        $messageStack->add(ERROR_NO_DEFAULT_CURRENCY_DEFINED, 'error');
      }

      // check if a default language is set
      if (!defined('DEFAULT_LANGUAGE')) {
        $messageStack->add(ERROR_NO_DEFAULT_LANGUAGE_DEFINED, 'error');
      }

      // for Customers Status
      xtc_get_customers_statuses();

      $pagename = strtok($current_page, '.');
      if (!isset($_SESSION['customer_id'])) {
        xtc_redirect(xtc_href_link(FILENAME_LOGIN));
      }

      if (xtc_check_permission($pagename) == '0') {
        xtc_redirect(xtc_href_link(FILENAME_LOGIN));
      }

        // Include Template Engine
      require(DIR_FS_CATALOG.DIR_WS_CLASSES . 'Smarty_2.6.22/Smarty.class.php');

    ?>
     

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Shop wird nicht mehr angezeigt
    Antwort #7 am: 20. März 2011, 21:23:56
    Die Datei "/includes/classes/logger.php" ist bei dir nicht vorhanden, das ist das Problem.

    Grüße

    Torsten

    Katja66

    • Neu im Forum
    • Beiträge: 23
    Shop wird nicht mehr angezeigt
    Antwort #8 am: 20. März 2011, 21:50:52
    Die ist aber auch nicht bei den Sicherungsdateien dabei.

    Und was kann ich nun machen?

    Schon einmal ein riesiges Dankeschön für die Hilfe.

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Shop wird nicht mehr angezeigt
    Antwort #9 am: 20. März 2011, 21:57:19
    Zieh dir doch einfach mal das modified eCommerce Shopsoftware 1.05 Paket, dort ist die Datei enthalten.

    Grüße

    Torsten

    Katja66

    • Neu im Forum
    • Beiträge: 23
    Shop wird nicht mehr angezeigt
    Antwort #10 am: 20. März 2011, 22:21:39
    Hallo,

    habe die "logger.php" nun in "/includes/classes/" geladen.

    Wenn ich nun http://www.backformen-silikon.de/index.php eingebe klappt es auch, aber nicht bei http://www.backformen-silikon.de.

    Aber es gibt schon einen Erfolg: ich komme in den Adminbereich.

    Liegt das weiterhin an der "logger.php"?

    Danke schön Grüße

    Katja

    guensi

    • Viel Schreiber
    • Beiträge: 2.288
    Shop wird nicht mehr angezeigt
    Antwort #11 am: 20. März 2011, 22:50:05
    Nach aktuellem Test funktioniert die Seite!

    Würde mal sagen - Reparatur erfolgreich.

    Vielleicht mal Browser-Cache löschen, das könnte helfen.

    Katja66

    • Neu im Forum
    • Beiträge: 23
    Shop wird nicht mehr angezeigt
    Antwort #12 am: 21. März 2011, 07:42:30
    Guten Morgen,

    ja, er "lebt" wieder.

    Ganz vielen Dank für die schnelle Hilfe.

    Einen schönen Tag.

    Katja

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Shop wird nicht mehr angezeigt
    Antwort #13 am: 21. März 2011, 08:42:40
    Aber dann sei doch bitte noch so lieb und sage uns, was du noch geändert hast, damit er wieder funktioniert, damit andere die Lösung finden, sollten sie mal den selben Fehler haben. :thx:

    Grüße

    Torsten

    Managed Server
    25 Antworten
    12728 Aufrufe
    26. April 2012, 20:12:47 von jumpM
    3 Antworten
    2632 Aufrufe
    12. Mai 2014, 10:57:10 von ShopNix
    9 Antworten
    3133 Aufrufe
    09. März 2018, 12:17:04 von Tomcraft
    9 Antworten
    4934 Aufrufe
    16. Dezember 2012, 13:44:10 von subsonic3