<?php

$contents = array();
if (isset($info)) {
    $heading_title = '<b>' . TABLE_HEADING_SHOPPING_CART . '</b>';
    if (STORE_SESSIONS == 'mysql') {
        $session_data = xos_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'");
        $session_data = xos_db_fetch_array($session_data);
        $session_data = trim($session_data['value']);
    } else {
        if (file_exists(xos_session_save_path() . '/sess_' . $info) && filesize(xos_session_save_path() . '/sess_' . $info) > 0) {
            $session_data = file(xos_session_save_path() . '/sess_' . $info);
            $session_data = trim(implode('', $session_data));
        }
    }
    if ($length = strlen($session_data)) {
        $start_id = strpos($session_data, 'customer_id|s');
        $start_cart = strpos($session_data, 'cart|O');
        $start_currency = strpos($session_data, 'currency|s');
        $start_languages_id = strpos($session_data, 'languages_id|s');
        $start_billto = strpos($session_data, 'billto|s');
        $start_sendto = strpos($session_data, 'sendto|s');
        $start_country = strpos($session_data, 'customer_country_id|s');
        $start_zone = strpos($session_data, 'customer_zone_id|s');
        $start_group_id = strpos($session_data, 'sppc_customer_group_id|s');
        $start_group_show_tax = strpos($session_data, 'sppc_customer_group_show_tax|i');
        $start_group_tax_exempt = strpos($session_data, 'sppc_customer_group_tax_exempt|i');
        for ($i = $start_cart; $i < $length; $i++) {
            if ($session_data[$i] == '{') {
                if (isset($tag)) {
                    $tag++;
Example #2
0
define('PREVNEXT_BUTTON_NEXT', '&gt;&gt;');
define('PREVNEXT_BUTTON_LAST', 'LAST&gt;&gt;');
define('IMAGE_BUTTON_IN_CART', 'Add to Cart');
define('IMAGE_BUTTON_NOTIFICATIONS', 'Notifications');
define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Remove Notifications');
define('IMAGE_BUTTON_WRITE_REVIEW', 'Write Review');
define('ICON_ARROW_RIGHT', 'more');
define('ICON_CART', 'In Cart');
define('ICON_ERROR', 'Error');
define('ICON_SUCCESS', 'Success');
define('ICON_WARNING', 'Warning');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><span class="text-deco-underline">log yourself in</span></a> with your account information.</small>');
define('BOX_TEXT_GREETING_PERSONAL', 'Welcome back<br /><span class="greet-user">%s</span>');
define('BOX_TEXT_GREETING_GUEST', 'Welcome <span class="greet-user">Guest</span>');
define('TEXT_MAX_PRODUCTS', ' products');
define('TEXT_SORT_PRODUCTS', 'Sort products ');
define('TEXT_DESCENDINGLY', 'descendingly');
define('TEXT_ASCENDINGLY', 'ascendingly');
define('TEXT_BY', ' by ');
define('TEXT_UNKNOWN_TAX_RATE', 'Unknown tax rate');
define('TEXT_TAX_INC_VAT', 'incl.');
define('TEXT_TAX_PLUS_VAT', 'plus');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . xos_session_save_path() . '. Sessions will not work until this directory is created.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warning: I am not able to write to the sessions directory: ' . xos_session_save_path() . '. Sessions will not work until the right user permissions are set.');
define('WARNING_SESSION_AUTO_START', 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warning: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.');
define('WARNING_SITE_IS_OFFLINE', 'Warning: The site is currently offline!');
define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid.<br />Please check the date and try again.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid.<br />Please check the number and try again.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: <b>%s</b><br />If that number is correct, we do not accept that type of credit card.<br />If it is wrong, please try again.');
define('ERROR_PHPMAILER', 'Mailer Error: %s (E-Mail was not sent)');
Example #3
0
define('PREVNEXT_BUTTON_NEXT', '&gt;&gt;');
define('PREVNEXT_BUTTON_LAST', 'FINAL&gt;&gt;');
define('IMAGE_BUTTON_IN_CART', 'Añadir a la Cesta');
define('IMAGE_BUTTON_NOTIFICATIONS', 'Notificaciones');
define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Eliminar Notificaciones');
define('IMAGE_BUTTON_WRITE_REVIEW', 'Escribir Comentario');
define('ICON_ARROW_RIGHT', 'más');
define('ICON_CART', 'En Cesta');
define('ICON_ERROR', 'Error');
define('ICON_SUCCESS', 'Correcto');
define('ICON_WARNING', 'Advertencia');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>Si no es %s, por favor <a href="%s"><span class="text-deco-underline">entre aqui</span></a> e introduzca sus datos.</small>');
define('BOX_TEXT_GREETING_PERSONAL', 'Bienvenido de nuevo<br /><span class="greet-user">%s</span>');
define('BOX_TEXT_GREETING_GUEST', 'Bienvenido <span class="greet-user">Invitado</span>');
define('TEXT_MAX_PRODUCTS', ' productos');
define('TEXT_SORT_PRODUCTS', 'Ordenar Productos ');
define('TEXT_DESCENDINGLY', 'Descendentemente');
define('TEXT_ASCENDINGLY', 'Ascendentemente');
define('TEXT_BY', ' por ');
define('TEXT_UNKNOWN_TAX_RATE', 'Impuesto desconocido');
define('TEXT_TAX_INC_VAT', 'con');
define('TEXT_TAX_PLUS_VAT', 'más');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Advertencia: El directorio para guardar datos de sesión no existe: ' . xos_session_save_path() . '. Las sesiones no funcionarán hasta que no se corriga este error.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Avertencia: No puedo escribir en el directorio para datos de sesión: ' . xos_session_save_path() . '. Las sesiones no funcionarán hasta que no se corriga este error.');
define('WARNING_SESSION_AUTO_START', 'Advertencia: session.auto_start esta activado - desactive esta caracteristica en el fichero php.ini and reinicie el servidor web.');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Advertencia: El directorio para productos descargables no existe: ' . DIR_FS_DOWNLOAD . '. Los productos descargables no funcionarán hasta que no se corriga este error.');
define('WARNING_SITE_IS_OFFLINE', 'Warning: El sitio no está conectado!');
define('TEXT_CCVAL_ERROR_INVALID_DATE', 'La fecha de caducidad de la tarjeta de crédito es incorrecta.<br />Compruebe la fecha e inténtelo de nuevo.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'El número de la tarjeta de crédito es incorrecto.<br />Compruebe el numero e inténtelo de nuevo.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'Los primeros cuatro digitos de su tarjeta son: <b>%s</b><br />Si este número es correcto, no aceptamos este tipo de tarjetas.<br />Si es incorrecto, inténtelo de nuevo.');
define('ERROR_PHPMAILER', 'Mailer Error: %s (E-mail no fue enviado)');
// set the cookie path
$cookie_path = $request_type == 'NONSSL' ? HTTP_COOKIE_PATH : HTTPS_COOKIE_PATH;
// define general functions used application-wide
require DIR_WS_FUNCTIONS . 'general.php';
require DIR_WS_FUNCTIONS . 'html_output.php';
// include shopping cart class
require DIR_WS_CLASSES . 'shopping_cart.php';
// include navigation history class
require DIR_WS_CLASSES . 'navigation_history.php';
// 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
xos_session_name('XOSsid');
xos_session_save_path(SESSION_WRITE_DIRECTORY != '' ? SESSION_WRITE_DIRECTORY : DIR_FS_TMP);
// set the session cookie parameters
ini_set('session.cookie_lifetime', '0');
ini_set('session.cookie_path', $cookie_path);
ini_set('session.cookie_domain', $cookie_domain);
ini_set('session.use_only_cookies', SESSION_FORCE_COOKIE_USE == 'true' ? 1 : 0);
/*
// set the session ID if it exists
   if (isset($_POST[xos_session_name()])) {
     xos_session_id($_POST[xos_session_name()]);
   } elseif ( ($request_type == 'SSL') && isset($_GET[xos_session_name()]) ) {
     xos_session_id($_GET[xos_session_name()]);
   }
*/
// start the session
$session_started = false;
Example #5
0
//------------------------------------------------------------------------------
// this file is based on:
//              osCommerce, Open Source E-Commerce Solutions
//              http://www.oscommerce.com
//              Copyright (c) 2003 osCommerce
//              filename: header.php
//
//              Released under the GNU General Public License
////////////////////////////////////////////////////////////////////////////////
if (!(@(include DIR_FS_SMARTY . 'catalog/templates/' . SELECTED_TPL . '/php/includes/header.php') == 'overwrite_all')) {
    // check if the session folder is writeable
    if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
        if (STORE_SESSIONS == '') {
            if (!is_dir(xos_session_save_path())) {
                $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
            } elseif (!is_writable(xos_session_save_path())) {
                $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
            }
        }
    }
    // check session.auto_start is disabled
    if (function_exists('ini_get') && WARN_SESSION_AUTO_START == 'true') {
        if (ini_get('session.auto_start') == '1') {
            $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
        }
    }
    // warn the admin if the site is offline
    if (SITE_OFFLINE == 'true' && $_SESSION['access_allowed'] == 'true') {
        $messageStack->add('header', WARNING_SITE_IS_OFFLINE, 'warning');
    }
    if (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true' && DOWNLOAD_ENABLED == 'true') {
Example #6
0
define('PREVNEXT_BUTTON_NEXT', '&gt;&gt;');
define('PREVNEXT_BUTTON_LAST', 'LETZTE&gt;&gt;');
define('IMAGE_BUTTON_IN_CART', 'In den Warenkorb');
define('IMAGE_BUTTON_NOTIFICATIONS', 'Benachrichtigungen');
define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Benachrichtigungen löschen');
define('IMAGE_BUTTON_WRITE_REVIEW', 'Bewertung schreiben');
define('ICON_ARROW_RIGHT', 'Zeige mehr');
define('ICON_CART', 'In den Warenkorb');
define('ICON_ERROR', 'Fehler');
define('ICON_SUCCESS', 'Success');
define('ICON_WARNING', 'Warnung');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>Wenn Sie nicht %s sind, melden Sie sich bitte <a href="%s"><span class="text-deco-underline">hier</span></a> mit Ihrem Kundenkonto an.</small>');
define('BOX_TEXT_GREETING_PERSONAL', 'Schön Sie wiederzusehen<br /><span class="greet-user">%s</span>');
define('BOX_TEXT_GREETING_GUEST', 'Willkommen <span class="greet-user">Gast</span>');
define('TEXT_MAX_PRODUCTS', ' Produkte');
define('TEXT_SORT_PRODUCTS', 'Artikel ');
define('TEXT_DESCENDINGLY', 'absteigend sortieren');
define('TEXT_ASCENDINGLY', 'aufsteigend sortieren');
define('TEXT_BY', ' nach ');
define('TEXT_UNKNOWN_TAX_RATE', 'Unbekannter Steuersatz');
define('TEXT_TAX_INC_VAT', 'inkl.');
define('TEXT_TAX_PLUS_VAT', 'zzgl.');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warnung: Das Verzeichnis für die Sessions existiert nicht: ' . xos_session_save_path() . '. Die Sessions werden nicht funktionieren bis das Verzeichnis erstellt wurde!');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warnung: XOS-Shop kann nicht in das Sessions Verzeichnis schreiben: ' . xos_session_save_path() . '. Die Sessions werden nicht funktionieren bis die richtigen Benutzerberechtigungen gesetzt wurden!');
define('WARNING_SESSION_AUTO_START', 'Warnung: session.auto_start ist enabled - Bitte disablen Sie dieses PHP Feature in der php.ini und starten Sie den WEB-Server neu!');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warnung: Das Verzeichnis für den Artikel Download existiert nicht: ' . DIR_FS_DOWNLOAD . '. Diese Funktion wird nicht funktionieren bis das Verzeichnis erstellt wurde!');
define('WARNING_SITE_IS_OFFLINE', 'Warnung: Die Website ist zurzeit offline!');
define('TEXT_CCVAL_ERROR_INVALID_DATE', 'Das "Gültig bis" Datum ist ungültig.<br />Bitte korrigieren Sie Ihre Angaben.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'Die "Kreditkartennummer", die Sie angegeben haben, ist ungültig.<br />Bitte korrigieren Sie Ihre Angaben.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'Die ersten 4 Ziffern Ihrer Kreditkarte sind: <b>%s</b><br />Wenn diese Angaben stimmen, wird dieser Kartentyp leider nicht akzeptiert.<br />Bitte korrigieren Sie Ihre Angaben gegebenfalls.');
define('ERROR_PHPMAILER', 'Mailer Fehler: %s (E-mail wurde nicht gesendet)');