Shop Support News Archive - Shopbetreiber News -> Forum : xt eCommerce Templates Module SEO Support: Templates, Module, Frage: Fehlermeldung Bei Kundengruppen
Christian
31.01.2007, 11:52
Hallo zusammen
ich habe bei xtc 304 SP2.1 SSL aktiv, Sessions in MySql
folgendes Problem. ich habe
Ich bekomme im Admin im bereich Kundengruppen diese Fehlermeldung:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/htdocs/w007e69b/shop3/admin/customers_status.php:1) in /www/htdocs/w007e69b/shop3/admin/includes/application_top.php on line 338
wenn ich Kundengruppen bearbeiten will und dann auf Aktuallisieren gehe kommt nur noch das
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/htdocs/w007e69b/shop3/admin/customers_status.php:1) in /www/htdocs/w007e69b/shop3/admin/includes/application_top.php on line 338
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w007e69b/shop3/admin/customers_status.php:1) in /www/htdocs/w007e69b/shop3/admin/includes/functions/general.php on line 130
Weiss jemand was ich falsch mache?
http://ne-xt.de/files/session_156.jpg
Christian
31.01.2007, 12:18
ich habe mir die dateien jetzt an den line angeschaut, aber kein echo oder header() gefunden.
meine Application top sieht so aus:
<?php
/ --------------------------------------------------------------
** $Id: application_top.php 1323 2005-10-27 17:58:08Z mz $
** XT-Commerce - community made shopping
** http://www.xt-commerce.com
** 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.p hp');
**define('FILENAME_CONTENT_MANAGER','content_manag er.php');
**define('FILENAME_CONTENT_PREVIEW','content_previ ew.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_packi ngslip.php');
**define('FILENAME_MODULE_NEWSLETTER','module_news letter.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_repo rt.php');
**define('FILENAME_MODULE_EXPORT','module_export.p hp');
**define('FILENAME_EASY_POPULATE','easypopulate.ph p');
**define('FILENAME_BLACKLIST', 'blacklist.php');
**define('FILENAME_PRODUCTS_VPE','products_vpe.php ');
**define('FILENAME_CAMPAIGNS_REPORT','stats_campai gns.php');
**define('FILENAME_XSELL_GROUPS','cross_sell_group s.php');
**// 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_offe rs_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_conten t');
**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_PRODUCT S_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_x sell_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_newslet ter');
**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');
**
**// 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_MANIPUL ATOR);
****function xtDBquery($query) {
****** if (DB_CACHE=='true') {
************ $result=xtc_db_queryCached($query);
************ //echo 'cached query: '.$query.'
';
**********} 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();** <--soll der fehler liegen, ich finde ihn nicht
****$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_CHEC K));
****}
**}
**// 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.14/Smarty.class.php');
**
?>
Christian
31.01.2007, 14:39
Habe ich ja auch nichts drin gefunden.
Ich zumindest nichts :(
[code]
<?php
/ --------------------------------------------------------------
$Id: customers_status.php 1064 2005-07-21 20:05:41Z mz $
XT-Commerce - community made shopping
http://www.xt-commerce.com
Copyright (c) 2003 XT-Commerce
--------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce( based on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35); www.oscommerce.com
(c) 2003 nextcommerce (customers_status.php,v 1.28 2003/08/18); www.nextcommerce.org
Released under the GNU General Public License
--------------------------------------------------------------
based on 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
Released under the GNU General Public License
-------------------------------------------------------------- /
require('includes/application_top.php');
switch ($_GET['action']) {
case 'insert':
case 'save':
$customers_status_id = xtc_db_prepare_input($_GET['cID']);
$languages = xtc_get_languages();
for ($i=0; $i<sizeof($languages); $i++) {
$customers_status_name_array = $_POST['customers_status_name'];
$customers_status_public = $_POST['customers_status_public'];
$customers_status_show_price = $_POST['customers_status_show_price'];
$customers_status_show_price_tax = $_POST['customers_status_show_price_tax'];
$customers_status_min_order = $_POST['customers_status_min_order'];
$customers_status_max_order = $_POST['customers_status_max_order'];
$customers_status_discount = $_POST['customers_status_discount'];
$customers_status_ot_discount_flag = $_POST['customers_status_ot_discount_flag'];
$customers_status_ot_discount = $_POST['customers_status_ot_discount'];
$customers_status_graduated_prices = $_POST['customers_status_graduated_prices'];
$customers_status_discount_attributes = $_POST['customers_status_discount_attributes'];
$customers_status_add_tax_ot = $_POST['customers_status_add_tax_ot'];
$customers_status_payment_unallowed = $_POST['customers_status_payment_unallowed'];
$customers_status_shipping_unallowed = $_POST['customers_status_shipping_unallowed'];
$customers_fsk18 = $_POST['customers_fsk18'];
$customers_fsk18_display = $_POST['customers_fsk18_display'];
$customers_status_write_reviews = $_POST['customers_status_write_reviews'];
$customers_status_read_reviews = $_POST['customers_status_read_reviews'];
$customers_base_status = $_POST['customers_base_status'];
$language_id = $languages[$i]['id'];
$sql_data_array = array(
'customers_status_name' => xtc_db_prepare_input($customers_status_name_array[$language_id]),
'customers_status_public' => xtc_db_prepare_input($customers_status_public),
'customers_status_show_price' => xtc_db_prepare_input($customers_status_show_price) ,
'customers_status_show_price_tax' => xtc_db_prepare_input($customers_status_show_price_ tax),
'customers_status_min_order' => xtc_db_prepare_input($customers_status_min_order),
'customers_status_max_order' => xtc_db_prepare_input($customers_status_max_order),
'customers_status_discount' => xtc_db_prepare_input($customers_status_discount),
'customers_status_ot_discount_flag' => xtc_db_prepare_input($customers_status_ot_discount _flag),
'customers_status_ot_discount' => xtc_db_prepare_input($customers_status_ot_discount ),
'customers_status_graduated_prices' => xtc_db_prepare_input($customers_status_graduated_p rices),
'customers_status_add_tax_ot' => xtc_db_prepare_input($customers_status_add_tax_ot) ,
'customers_status_payment_unallowed' => xtc_db_prepare_input($customers_status_payment_una llowed),
'customers_status_shipping_unallowed' => xtc_db_prepare_input($customers_status_shipping_un allowed),
'customers_fsk18' => xtc_db_prepare_input($customers_fsk18),
'customers_fsk18_display' => xtc_db_prepare_input($customers_fsk18_display),
'customers_status_write_reviews' => xtc_db_prepare_input($customers_status_write_revie ws),
'customers_status_read_reviews' => xtc_db_prepare_input($customers_status_read_review s),
'customers_status_discount_attributes' => xtc_db_prepare_input($customers_status_discount_at tributes)
);
if ($_GET['action'] == 'insert') {
if (!xtc_not_null($customers_status_id)) {
$next_id_query = xtc_db_query("select max(customers_status_id) as customers_status_id from " . TABLE_CUSTOMERS_STATUS . "");
$next_id = xtc_db_fetch_array($next_id_query);
$customers_status_id = $next_id['customers_status_id'] + 1;
// We want to create a personal offer table corresponding to each customers_status
xtc_db_query("create table personal_offers_by_customers_status_" . $customers_status_id . " (price_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, products_id int NOT NULL, quantity int, personal_offer decimal(15,4))");
xtc_db_query("ALTER TABLE `products` ADD `group_permission_" . $customers_status_id . "` TINYINT( 1 ) NOT NULL");
xtc_db_query("ALTER TABLE `categories` ADD `group_permission_" . $customers_status_id . "` TINYINT( 1 ) NOT NULL");
$products_query = xtc_db_query("select price_id, products_id, quantity, personal_offer from personal_offers_by_customers_status_" . $customers_base_status ."");
while($products = xtc_db_fetch_array($products_query)){
$product_data_array = array(
'price_id' => xtc_db_prepare_input($products['price_id']),
'products_id' => xtc_db_prepare_input($products['products_id']),
'quantity' => xtc_db_prepare_input($products['quantity']),
'personal_offer' => xtc_db_prepare_input($products['personal_offer'])
);
xtc_db_perform('personal_offers_by_customers_statu s_' . $customers_status_id, $product_data_array);
}
}
$insert_sql_data = array('customers_status_id' => xtc_db_prepare_input($customers_status_id), 'language_id' => xtc_db_prepare_input($language_id));
$sql_data_array = xtc_array_merge($sql_data_array, $insert_sql_data);
xtc_db_perform(TABLE_CUSTOMERS_STATUS, $sql_data_array);
} elseif ($_GET['action'] == 'save') {
xtc_db_perform(TABLE_CUSTOMERS_STATUS, $sql_data_array, 'update', "customers_status_id = '" . xtc_db_input($customers_status_id) . "' and language_id = '" . $language_id . "'");
}
}
if ($customers_status_image = &xtc_try_upload('customers_status_image', DIR_WS_ICONS)) {
xtc_db_query("update " . TABLE_CUSTOMERS_STATUS . " set customers_status_image = '" . $customers_status_image->filename . "' where customers_status_id = '" . xtc_db_input($customers_status_id) . "'");
}
if ($_POST['default'] == 'on') {
xtc_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . xtc_db_input($customers_status_id) . "' where configuration_key = 'DEFAULT_CUSTOMERS_STATUS_ID'");
}
xtc_redirect(xtc_href_link(FILENAME_CUSTOMERS_STAT US, 'page=' . $_GET['page'] . '&cID=' . $customers_status_id));
break;
case 'deleteconfirm':
$cID = xtc_db_prepare_input($_GET['cID']);
$customers_status_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'DEFAULT_CUSTOMERS_STATUS_ID'");
$customers_status = xtc_db_fetch_array($customers_status_query);
if ($customers_status['configuration_value'] == $cID) {
xtc_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '' where configuration_key = 'DEFAULT_CUSTOMERS_STATUS_ID'");
}
xtc_db_query("delete from " . TABLE_CUSTOMERS_STATUS . " where customers_status_id = '" . xtc_db_input($cID) . "'");
// We want to drop the existing corresponding personal_offers table
xtc_db_query("drop table IF EXISTS personal_offers_by_customers_status_" . xtc_db_input($cID) . "");
xtc_db_query("ALTER TABLE `products` DROP `group_permission_" . xtc_db_input($cID) . "`");
xtc_db_query("ALTER TABLE `categories` DROP `group_permission_" . xtc_db_input($cID) . "`");
xtc_redirect(xtc_href_link(FILENAME_CUSTOMERS_STAT US, 'page=' . $_GET['page']));
break;
case 'delete':
$cID = xtc_db_prepare_input($_GET['cID']);
$status_query = xtc_db_query("select count( ) as count from " . TABLE_CUSTOMERS . " where customers_status = '" . xtc_db_input($cID) . "'");
$status = xtc_db_fetch_array($status_query);
$remove_status = true;
if (($cID == DEFAULT_CUSTOMERS_STATUS_ID) || ($cID == DEFAULT_CUSTOMERS_STATUS_ID_GUEST) || ($cID == DEFAULT_CUSTOMERS_STATUS_ID_NEWSLETTER)) {
$remove_status = false;
$messageStack->add(ERROR_REMOVE_DEFAULT_CUSTOMERS_STATUS, 'error');
} elseif ($status['count'] > 0) {
$remove_status = false;
$messageStack->add(ERROR_STATUS_USED_IN_CUSTOMERS, 'error');
} else {
$history_query = xtc_db_query("select count( ) as count from " . TABLE_CUSTOMERS_STATUS_HISTORY . " where '" . xtc_db_input($cID) . "' in (new_value, old_value)");
$history = xtc_db_fetch_array($history_query);
if ($history['count'] > 0) {
// delete from history
xtc_db_query("DELETE FROM " . TABLE_CUSTOMERS_STATUS_HISTORY . "
where '" . xtc_db_input($cID) . "' in (new_value, old_value)");
$remove_status = true;
// $messageStack->add(ERROR_STATUS_USED_IN_HISTORY, 'error');
}
}
break;
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Tranistional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['language_charset']; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script type="text/javascript" src="includes/general.js"></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();">
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td class="columnLeft2" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
</table></td>
<td class="boxCenter" width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="80" rowspan="2"><?php echo xtc_image(DIR_WS_ICONS.'heading_customers.gif'); ?></td>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
</tr>
<tr>
<td class="main" valign="top">XT Customers</td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent" align="left" width=""><?php echo 'icon'; ?></td>
<td class="dataTableHeadingContent" align="left" width=""><?php echo 'user'; ?></td>
<td class="dataTableHeadingContent" align="left" width=""><?php echo TABLE_HEADING_CUSTOMERS_STATUS; ?></td>
<td class="dataTableHeadingContent" align="center" width=""><?php echo TABLE_HEADING_TAX_PRICE; ?></td>
<td class="dataTableHeadingContent" align="center" colspan="2"><?php echo TABLE_HEADING_DISCOUNT; ?></td>
<td class="dataTableHeadingContent" width=""><?php echo TABLE_HEADING_CUSTOMERS_GRADUATED; ?></td>
<td class="dataTableHeadingContent" width=""><?php echo TABLE_HEADING_CUSTOMERS_UNALLOW; ?></td>
<td class="dataTableHeadingContent" width=""><?php echo TABLE_HEADING_CUSTOMERS_UNALLOW_SHIPPING; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?></td>
</tr>
<?php
$customers_status_ot_discount_flag_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_graduated_prices_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_public_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_show_price_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_show_price_tax_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_discount_attributes_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_add_tax_ot_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_fsk18_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_fsk18_display_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_write_reviews_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_read_reviews_array = array(array('id' => '0', 'text' => ENTRY_NO), array('id' => '1', 'text' => ENTRY_YES));
$customers_status_query_raw = "select from " . TABLE_CUSTOMERS_STATUS . " where language_id = '" . $_SESSION['languages_id'] . "' order by customers_status_id";
$customers_status_split = new splitPageResults($_GET['page'], '20', $customers_status_query_raw, $customers_status_query_numrows);
$customers_status_query = xtc_db_query($customers_status_query_raw);
while ($customers_status = xtc_db_fetch_array($customers_status_query)) {
if (((!$_GET['cID']) || ($_GET['cID'] == $customers_status['customers_status_id'])) && (!$cInfo) && (substr($_GET['action'], 0, 3) != 'new')) {
$cInfo = new objectInfo($customers_status);
}
if ( (is_object($cInfo)) && ($customers_status['customers_status_id'] == $cInfo->customers_status_id) ) {
echo '<tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=edit') . '\'">' . "\n";
} else {
echo '<tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cur sor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $customers_status['customers_status_id']) . '\'">' . "\n";
}
echo '<td class="dataTableContent" align="left">';
if ($customers_status['customers_status_image'] != '') {
echo xtc_image(DIR_WS_ICONS . $customers_status['customers_status_image'] , IMAGE_ICON_INFO);
}
echo '</td>';
echo '<td class="dataTableContent" align="left">';
echo xtc_get_status_users($customers_status['customers_status_id']);
echo '</td>';
if ($customers_status['customers_status_id'] == DEFAULT_CUSTOMERS_STATUS_ID ) {
echo '<td class="dataTableContent" align="left">' . $customers_status['customers_status_name'];
echo ' (' . TEXT_DEFAULT . ')';
} else {
echo '<td class="dataTableContent" align="left">' . $customers_status['customers_status_name'];
}
if ($customers_status['customers_status_public'] == '1') {
echo ' ,public ';
}
echo '</td>';
if ($customers_status['customers_status_show_price'] == '1') {
echo '<td nowrap class="dataTableContent" align="center"> ';
if ($customers_status['customers_status_show_price_tax'] == '1') {
echo TAX_YES;
} else {
echo TAX_NO;
}
} else {
echo '<td class="dataTableContent" align="left"> ';
}
echo '</td>';
echo '<td nowrap class="dataTableContent" align="center">' . $customers_status['customers_status_discount'] . ' %</td>';
echo '<td nowrap class="dataTableContent" align="center">';
if ($customers_status['customers_status_ot_discount_flag'] == 0){
echo '<font color="ff0000">'.$customers_status['customers_status_ot_discount'].' %</font>';
} else {
echo $customers_status['customers_status_ot_discount'].' %';
}
echo ' </td>';
echo '<td class="dataTableContent" align="center">';
if ($customers_status['customers_status_graduated_prices'] == 0) {
echo NO;
} else {
echo YES;
}
echo '</td>';
echo '<td nowrap class="dataTableContent" align="center">' . $customers_status['customers_status_payment_unallowed'] . '</td>';
echo '<td nowrap class="dataTableContent" align="center">' . $customers_status['customers_status_shipping_unallowed'] . '</td>';
echo "\n";
?>
<td class="dataTableContent" align="right"><?php if ( (is_object($cInfo)) && ($customers_status['customers_status_id'] == $cInfo->customers_status_id) ) { echo xtc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '' . xtc_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ' (' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $customers_status['customers_status_id']) . ')'; } ?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php echo $customers_status_split->display_count($customers_status_query_numrows, '20', $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CUSTOMERS_STATUS); ?></td>
<td class="smallText" align="right"><?php echo $customers_status_split->display_links($customers_status_query_numrows, '20', MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?></td>
</tr>
<?php
if (substr($_GET['action'], 0, 3) != 'new') {
?>
<tr>
<td colspan="2" align="right"><?php echo '' . BUTTON_INSERT . ' (' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&action=new') . ')'; ?></td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'new':
$heading[] = array('text' => '' . TEXT_INFO_HEADING_NEW_CUSTOMERS_STATUS . '');
$contents = array('form' => xtc_draw_form('status', FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&action=insert', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
$customers_status_inputs_string = '';
$languages = xtc_get_languages();
for ($i=0; $i<sizeof($languages); $i++) {
$customers_status_inputs_string .= '
' . xtc_image(DIR_WS_CATALOG.'lang/'.$languages[$i]['directory'].'/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . '' . xtc_draw_input_field('customers_status_name[' . $languages[$i]['id'] . ']');
}
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_NAME . $customers_status_inputs_string);
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_IMAGE . '
' . xtc_draw_file_field('customers_status_image'));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_PUBLIC_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_PUBLIC . ' ' . xtc_draw_pull_down_menu('customers_status_public', $customers_status_public_array, $cInfo->customers_status_public ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_MIN_ORDER_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_MIN_ORDER . ' ' . xtc_draw_input_field('customers_status_min_order', $cInfo->customers_status_min_order ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_MAX_ORDER_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_MAX_ORDER . ' ' . xtc_draw_input_field('customers_status_max_order', $cInfo->customers_status_max_order ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE . ' ' . xtc_draw_pull_down_menu('customers_status_show_pri ce', $customers_status_show_price_array, $cInfo->customers_status_show_price ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_TAX_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE_TAX . ' ' . xtc_draw_pull_down_menu('customers_status_show_pri ce_tax', $customers_status_show_price_tax_array, $cInfo->customers_status_show_price_tax ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_ADD_TAX_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_ADD_TAX . ' ' . xtc_draw_pull_down_menu('customers_status_add_tax_ ot', $customers_status_add_tax_ot_array, $cInfo->customers_status_add_tax_ot));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . '
' . xtc_draw_input_field('customers_status_discount', $cInfo->customers_status_discount));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES_INT RO . '
' . ENTRY_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES . ' ' . xtc_draw_pull_down_menu('customers_status_discount _attributes', $customers_status_discount_attributes_array, $cInfo->customers_status_discount_attributes ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INT RO . '
' . ENTRY_OT_XMEMBER . ' ' . xtc_draw_pull_down_menu('customers_status_ot_disco unt_flag', $customers_status_ot_discount_flag_array, $cInfo->customers_status_ot_discount_flag ). '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . '
' . xtc_draw_input_field('customers_status_ot_discount ', $cInfo->customers_status_ot_discount));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_GRADUATED_PRICES_INTRO . '
' . ENTRY_GRADUATED_PRICES . ' ' . xtc_draw_pull_down_menu('customers_status_graduate d_prices', $customers_status_graduated_prices_array, $cInfo->customers_status_graduated_prices ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES_INT RO . '
' . ENTRY_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES . ' ' . xtc_draw_pull_down_menu('customers_status_discount _attributes', $customers_status_discount_attributes_array, $cInfo->customers_status_discount_attributes ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_PAYMENT_UNALLOWED_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_PAYMENT_UNALLOWED . ' ' . xtc_draw_input_field('customers_status_payment_una llowed', $cInfo->customers_status_payment_unallowed ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_SHIPPING_UNALLOWED_INTR O . '
' . ENTRY_CUSTOMERS_STATUS_SHIPPING_UNALLOWED . ' ' . xtc_draw_input_field('customers_status_shipping_un allowed', $cInfo->customers_status_shipping_unallowed ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_FSK18_INTRO . '
' . ENTRY_CUSTOMERS_FSK18 . ' ' . xtc_draw_pull_down_menu('customers_fsk18', $customers_fsk18_array, $cInfo->customers_fsk18));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_FSK18_DISPLAY_INTRO . '
' . ENTRY_CUSTOMERS_FSK18_DISPLAY . ' ' . xtc_draw_pull_down_menu('customers_fsk18_display', $customers_fsk18_display_array, $cInfo->customers_fsk18_display));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_WRITE_REVIEWS_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_WRITE_REVIEWS . ' ' . xtc_draw_pull_down_menu('customers_status_write_re views', $customers_status_write_reviews_array, $cInfo->customers_status_write_reviews));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_READ_REVIEWS_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_READ_REVIEWS_DISPLAY . ' ' . xtc_draw_pull_down_menu('customers_status_read_rev iews', $customers_status_read_reviews_array, $cInfo->customers_status_read_reviews));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_BASE . '
' . ENTRY_CUSTOMERS_STATUS_BASE . '
' . xtc_draw_pull_down_menu('customers_base_status', xtc_get_customers_statuses()));
$contents[] = array('text' => '
' . xtc_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$contents[] = array('align' => 'center', 'text' => '
<input type="submit" class="button" onClick="this.blur();" value="' . BUTTON_INSERT . '"/> ' . BUTTON_CANCEL . ' (' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page']) . ')');
break;
case 'edit':
$heading[] = array('text' => '' . TEXT_INFO_HEADING_EDIT_CUSTOMERS_STATUS . '');
$contents = array('form' => xtc_draw_form('status', FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id .'&action=save', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$customers_status_inputs_string = '';
$languages = xtc_get_languages();
for ($i=0; $i<sizeof($languages); $i++) {
$customers_status_inputs_string .= '
' . xtc_image(DIR_WS_CATALOG.'lang/'.$languages[$i]['directory'].'/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . '' . xtc_draw_input_field('customers_status_name[' . $languages[$i]['id'] . ']', xtc_get_customers_status_name($cInfo->customers_status_id, $languages[$i]['id']));
}
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_NAME . $customers_status_inputs_string);
$contents[] = array('text' => '
' . xtc_image(DIR_WS_ICONS . $cInfo->customers_status_image, $cInfo->customers_status_name) . '
' . DIR_WS_ICONS . '
' . $cInfo->customers_status_image . '');
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_IMAGE . '
' . xtc_draw_file_field('customers_status_image', $cInfo->customers_status_image));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_PUBLIC_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_PUBLIC . ' ' . xtc_draw_pull_down_menu('customers_status_public', $customers_status_public_array, $cInfo->customers_status_public ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_MIN_ORDER_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_MIN_ORDER . ' ' . xtc_draw_input_field('customers_status_min_order', $cInfo->customers_status_min_order ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_MAX_ORDER_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_MAX_ORDER . ' ' . xtc_draw_input_field('customers_status_max_order', $cInfo->customers_status_max_order ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE . ' ' . xtc_draw_pull_down_menu('customers_status_show_pri ce', $customers_status_show_price_array, $cInfo->customers_status_show_price ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_TAX_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE_TAX . ' ' . xtc_draw_pull_down_menu('customers_status_show_pri ce_tax', $customers_status_show_price_tax_array, $cInfo->customers_status_show_price_tax ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_ADD_TAX_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_ADD_TAX . ' ' . xtc_draw_pull_down_menu('customers_status_add_tax_ ot', $customers_status_add_tax_ot_array, $cInfo->customers_status_add_tax_ot));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . ' ' . xtc_draw_input_field('customers_status_discount', $cInfo->customers_status_discount));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES_INT RO . '
' . ENTRY_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES . ' ' . xtc_draw_pull_down_menu('customers_status_discount _attributes', $customers_status_discount_attributes_array, $cInfo->customers_status_discount_attributes ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INT RO . '
' . ENTRY_OT_XMEMBER . ' ' . xtc_draw_pull_down_menu('customers_status_ot_disco unt_flag', $customers_status_ot_discount_flag_array, $cInfo->customers_status_ot_discount_flag). '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . ' ' . xtc_draw_input_field('customers_status_ot_discount ', $cInfo->customers_status_ot_discount));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_GRADUATED_PRICES_INTRO . '
' . ENTRY_GRADUATED_PRICES . ' ' . xtc_draw_pull_down_menu('customers_status_graduate d_prices', $customers_status_graduated_prices_array, $cInfo->customers_status_graduated_prices));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_PAYMENT_UNALLOWED_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_PAYMENT_UNALLOWED . ' ' . xtc_draw_input_field('customers_status_payment_una llowed', $cInfo->customers_status_payment_unallowed ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_SHIPPING_UNALLOWED_INTR O . '
' . ENTRY_CUSTOMERS_STATUS_SHIPPING_UNALLOWED . ' ' . xtc_draw_input_field('customers_status_shipping_un allowed', $cInfo->customers_status_shipping_unallowed ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_FSK18_INTRO . '
' . ENTRY_CUSTOMERS_FSK18 . ' ' . xtc_draw_pull_down_menu('customers_fsk18', $customers_fsk18_array, $cInfo->customers_fsk18 ));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_FSK18_DISPLAY_INTRO . '
' . ENTRY_CUSTOMERS_FSK18_DISPLAY . ' ' . xtc_draw_pull_down_menu('customers_fsk18_display', $customers_fsk18_display_array, $cInfo->customers_fsk18_display));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_WRITE_REVIEWS_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_WRITE_REVIEWS . ' ' . xtc_draw_pull_down_menu('customers_status_write_re views', $customers_status_write_reviews_array, $cInfo->customers_status_write_reviews));
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_READ_REVIEWS_INTRO . '
' . ENTRY_CUSTOMERS_STATUS_READ_REVIEWS . ' ' . xtc_draw_pull_down_menu('customers_status_read_rev iews', $customers_status_read_reviews_array, $cInfo->customers_status_read_reviews));
if (DEFAULT_CUSTOMERS_STATUS_ID != $cInfo->customers_status_id) $contents[] = array('text' => '
' . xtc_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$contents[] = array('align' => 'center', 'text' => '
<input type="submit" class="button" onClick="this.blur();" value="' . BUTTON_UPDATE . '"> ' . BUTTON_CANCEL . ' (' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . ')');
break;
case 'delete':
$heading[] = array('text' => '' . TEXT_INFO_HEADING_DELETE_CUSTOMERS_STATUS . '');
$contents = array('form' => xtc_draw_form('status', FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '
' . $cInfo->customers_status_name . '');
if ($remove_status) $contents[] = array('align' => 'center', 'text' => '
<input type="submit" class="button" onClick="this.blur();" value="' . BUTTON_DELETE . '"> ' . BUTTON_CANCEL . ' (' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . ')');
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => '' . $cInfo->customers_status_name . '');
$contents[] = array('align' => 'center', 'text' => '' . BUTTON_EDIT . ' (' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=edit') . ') ' . BUTTON_DELETE . ' (' . xtc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=delete') . ')');
$customers_status_inputs_string = '';
$languages = xtc_get_languages();
for ($i=0; $i<sizeof($languages); $i++) {
$customers_status_inputs_string .= '
' . xtc_image(DIR_WS_CATALOG.'lang/'. $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . '' . xtc_get_customers_status_name($cInfo->customers_status_id, $languages[$i]['id']);
}
$contents[] = array('text' => $customers_status_inputs_string);
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . ' ' . $cInfo->customers_status_discount . '%');
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INT RO . '
' . ENTRY_OT_XMEMBER . ' ' . $customers_status_ot_discount_flag_array[$cInfo->customers_status_ot_discount_flag]['text'] . ' (' . $cInfo->customers_status_ot_discount_flag . ')' . ' - ' . $cInfo->customers_status_ot_discount . '%');
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_GRADUATED_PRICES_INTRO . '
' . ENTRY_GRADUATED_PRICES . ' ' . $customers_status_graduated_prices_array[$cInfo->customers_status_graduated_prices]['text'] . ' (' . $cInfo->customers_status_graduated_prices . ')' );
$contents[] = array('text' => '
' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES_INT RO . '
' . ENTRY_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES . ' '
Christian
31.01.2007, 15:19
habe die dateien mit der ausnagsversion verglichen und keinen unterschied gefunden.
liegt es am MySql?
ich habe 4.keine ahnung
fiese möpp
31.01.2007, 21:00
''>ZITAT(Christian @ Jan 31 2007, 15:19) 19900
habe die dateien mit der ausnagsversion verglichen und keinen unterschied gefunden.
liegt es am MySql?
ich habe 4.keine ahnung
[/b]
Die MySQL Version wird von phpmyadmin angezeigt.
Schau auch mal in die configure.php (Admin und Catalog), ob dort die Sessions (STORE_SESSIONS) in der DB oder im Filesystem gespeichert werden.
Überprüfe die Dateien customers_status und application_top auf Leerzeichen.
Vor dem "<?php" am Anfang und
nach dem "?>" am Ende dürfen keine Zeichen mehr stehen. Auch keine unsnichtbaren wie Leerstellen und Zeilenwechsel.
Gruß
Hen
Christian
31.01.2007, 22:56
''>ZITAT(fiese möpp @ Jan 31 2007, 21:00) 19941
Die MySQL Version wird von phpmyadmin angezeigt.
Schau auch mal in die configure.php (Admin und Catalog), ob dort die Sessions (STORE_SESSIONS) in der DB oder im Filesystem gespeichert werden.
[/b]
werden in der Mysql gespeichert, habe ich bei der installation so angegeben und ist auch übernommen worden.
''>ZITAT</div>
Überprüfe die Dateien customers_status und application_top auf Leerzeichen.
Vor dem "<?php" am Anfang und
nach dem "?>" am Ende dürfen keine Zeichen mehr stehen. Auch keine unsnichtbaren wie Leerstellen und Zeilenwechsel.[/b]
Habe ich gemacht passt alles. Habe es aber nur im Text Editor überprüft.
werde es morgen mit Notepad++ noch mal machen.
ich bin eucht am verzweifeln!!! Aber danke das Ihr mir helft!!!
Also ich bin ziemlich sicher, daß in deiner customers_status in der ersten Zeile eine Leerzeile steht. Die Fehlermeldung sagt klar customer_status Zeile 1.
Check das nochmal genauestens in allen Schritten.
Datei runterladen, korrigieren, wieder hochladen, Datei-Datum und -Zeit auf Server kontrollieren (ob wirklich überschrieben). Datei im rnichtigen Ordner runter und hochgeladen? "admin/customers_status.php"
Gruß
Hen
Christian
01.02.2007, 16:52
Hi
also ich habe jetzt in ca. 2 stunden den Quellcode 3 mal durchgeschaut und nichts gefunden.
Ich habe die Costumers_stats mal angehängt. also ich sehe, das ich nichts sehe.
Bitte helft mir weiter :rolleyes: :unsure:
Ich schon. Da waren ein paar ungültige Zeichen am Anfang. Sollte jetzt funktionieren.
Gruß
Hen
Christian
01.02.2007, 21:28
Super!!!! es geht!!! Danke!!!!
eine Frage habe ich jetzt noch:
ich habe mir das mit Notepad++ angesehen aber keine Zeichen gefunden, was hast ich falsch gemacht?
Ich kenne Notepad++ nicht.
Besorg dir einen Codeeditor. Welcher insbesondere mit den unterschiedlichen Zeilenwechseln der Unix- und Windowswelt klar kommt. Ich benutze phped. Aber da gibts noch ne Reihe anderer guter. Jeder hat da so seinen Favoriten. Kannst ja mal die anderen fragen was die so benutzen. Oder googlen nach php-Editoren.
Gruß
Hen
Christian
02.02.2007, 06:35
Notepad++ ist eigentlich auch eine Editor für PhP, C++, Html, etc.
verstehe ich nicht das er das nicht hinbekommen hat.
Nochmals Danke!!!
fiese möpp
02.02.2007, 11:39
Benutze auch Notepad++. Der ist einfach schön schnell. Ich glaube, in deren Forum sollte man mal diese Datei posten.
Ansonsten Aptana(Eclipse) hat es rnichtig angezeigt.
Edit: Bug ist bekannt
http://sourceforge.net/tracker/index.php?f...amp;atid=612382 (http://anonym.to/?http://sourceforge.net/tracker/index.php?func=detail&aid=1580764&group_id=95717&atid=612382)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.