Du bist hier: Startseite > Archiv > TobbiVM > Installation (alt) > 3. config_0.php

3. config_0.php

Die in den Datei config_0.php bis config_5.php (als Vorlage dient die Datei demo.config_0.php) werden die Einstellungen für jeden einzelnen Shop vorgenommen. Diese gelten jeweils für den einzelnen Shop. Die Datei config_0.php steht für den Mastershop.

Hier, wie in allen Konfigurationsdateien, nur die entsprechend gekennzeichneten Stellen an deine Bedingungen anpassen. Der Übersichtlichkeit wegen wird hier die komplette Datei angezeigt.

Die blaue Schrift dient nur der Erklärung einzelner Anpassungen und darf nicht in der eigentlichen Datei stehen und der orange hervorgehobene Text muss entsprechend angepasst werden!

<?php

if (!defined('TOBBIVM'))
    header('location:/template/notrepassing.php');
/**
 * This file is part of TobbiVMShop.
 *
 * TobbiVMShop is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TobbiVMShop is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TobbiVMShop.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * Configuration Frontend
 *
 * @version    $Id$
 * @package    TobbiVM-Shop
 * @copyright  Copyright (C) 2016
 * @author     Norbert Gebert
 * @license    GPL3
 * @access       public
 */
/**
 * These values ​​must be adapted to your requirements!
 * single Domain settings
 */
// @const string TEMPLATE_PATH template-Path
const TEMPLATE_PATH = 'template'; Beinhaltet alle Template-Dateien für den jeweiligen Shop
// @const string LANGUAGE Language-ID
const LANGUAGE = 'de_DE';

/****************************************************************************
 * Mail settings for order e.g.
 * Only SMTP mail server are used!
 */
// @const string MAIL_HOSTNAME Set the hostname of the mail server
const MAIL_HOSTNAME = 'dein.mailserver.name';
// @const string MAIL_USER Username to use for SMTP authentication
const MAIL_USER = 'Mailserver-Benutzername';
// @const string MAIL_PASSWORD Password to use for SMTP authentication
const MAIL_PASSWORD = 'Mailserver-Passwort';
// @const integer MAIL_PORT Set the SMTP port number - likely to be 25, 465 or 587
const MAIL_PORT = 587;
// @const logical MAIL_AUTH Whether to use SMTP authentication
const MAIL_AUTH = TRUE;
// @const MAIL_SENDER to sending with order/billing-mails mails
const MAIL_SENDER = 'shop@mastershop'; Adresse unter der du über Bestellungen benachrichtigt werden willst
// @const MAIL_SENDER_NAME to send with order/billing-mail
const MAIL_SENDER_NAME = 'Domainname.com'; Absenderdomain-Name, in der Regel deine Shop-Domain
// @const Mail_SEND_REVOCATION Set to TRUE if send with the invoice, otherwise FALSE
const Mail_SEND_REVOCATION = TRUE; Widerufsbelehrung an Kunden senden
// @const MAIL_SEND_TERMS Set to TRUE if send your terms with the invoice, otherwise FALSE
const MAIL_SEND_TERMS = TRUE; AGB an Kunden senden
Soll die Rechnungsmail an den Kunden gesendet werden?
Wichtig wenn die Rechnungen über ein anderes Programm laufen sollen.
// @const MAIL_SEND_TO_CUSTOMER Set to TRUE then Mail send to customer

const MAIL_SEND_TO_CUSTOMER = TRUE

/****************************************************************************
 * Global settings
 */
Hier kann alles so bleiben wie es ist, die Standardwerte sollten nur in speziellen Fällen verändert werden
// @const string  IMAGE_EXTENSION List of allowed Imagetype as array
//                Upper and lower case are ignored
const IMAGE_EXTENSION = 'gif,jpg,png';
// @const integer MAX_ATTEMPTS Max of custome loginerrrors, then the user set to not active
const CUSTOMER_MAX_ATTEMPTS = 5;
// @const integer CUSTOMER_SESSION_TIME Set session lenght in seconds
const CUSTOMER_SESSION_TIME = 1800;
// @const string PHP_TIMEZONE        List of Timezones: http://www.php.net/manual/en/timezones.php
const PHP_TIMEZONE = 'Europe/Berlin';
// @const integer PERIOD Period for internal counter in seconds
const PERIOD = 1800; Zählerzeit für Besucherzähler

/****************************************************************************
 * Shop settings mail, URL e.g.
 */
Deine Adressdaten für verschiedene Formulare etc.
// @const string COMPANY_NAME
const COMPANY_NAME = 'Dein-Shop Master';
// @const string COMPANY_STREET
const COMPANY_STREET = 'VM-Masterweg 1';
// @const string COMPANY_CITY
const COMPANY_CITY = '11111 TobbiVM';
// @const string COMPANY_PHONE
const COMPANY_PHONE = '0 11 11 / 11 11';
// @const string COMPANY_FAX
const COMPANY_FAX = '0 11 11 / 11 11 11';
// @const string COMPANY_EMAIL
const COMPANY_EMAIL = '1111@deinShop.de';

/****************************************************************************
 * Meta settings
 */
// @const integer META_DESCRIPTION_LENGH, Lengh of Metadescription in Character
const META_DESCRIPTION_LENGH = 140; Standard, dieser Wert dient im Backend nur der Information
// @const integer META_KEYWORD_NUMBER, Number of keywords
const META_KEYWORD_NUMBER = 10; Standard, dieser Wert dient im Backend nur der Information
// @const string TEMPLATE_TITEL Title for The Page
const TEMPLATE_TITEL = 'Tobbivm Master-Shop';
Hier die Keywords einfügen die immer dann verwendet werden sollen wenn keine anderen Keywords angegeben werden. Z.B. wenn in der Artikelbeschreibung das entsprechende Feld leergelassen wird.
// @const string META_KEYWORDS, Standard if not set in Category/Article
const META_KEYWORDS = 'TobbiVM-Master-Shop, Shopsystem, Plugin, PHP, HTML, OpenSource, Javascript, CSS, Kostenlos, Script';
Hier die Metadescription einfügen die immer dann verwendet werden sollen wenn keine anderen Metadescription angegeben werden. Z.B. wenn in der Artikelbeschreibung das entsprechende Feld leergelassen wird.
// @const string META_DESCRIPTION, Standard if not set in Category/Article
const META_DESCRIPTION = 'Mit TobbiVM-Shop hast du ein, auf den deutschen Markt zugeschnittenes, zukunftssicheres Shopsystem. ';
Über diesen Wert ermitteln viele Angreifer welches Script auf deinem Webspace läuft. Wird z. B. „Joomla Version X.XX.XX” gefunden so können sie von vornherein feststellen ob es sich lohnt diesen Webspace anzugreifen. Hier bitte einen Phantasienamen eintragen der keine Rückschlüsse auf das Script zulässt.
// @const string META_GENERATOR, You can write everythind what you want to deceive Bots etc.
const META_GENERATOR = 'TobbiVM-Shop, a German Shopsystem';

/****************************************************************************

/**
 * User-Account settings
 * First: Settings for account regitration and
 * customer adresses
 */
Hier können die Felder festgelegt werden die bei einer Bestellung ausgefüllt werden müssen/sollen oder gar nicht erst angezeigt werden sollen. Dies gilt für Registrierung UND Gastanmeldung.
// @const integer COMPANY 0 = Not used, 1 = used, 2 = used AND required
const COMPANY = 1;
// @const integer FIRSTNAME 0 = Not used, 1 = used, 2 = used AND required
const FIRSTNAME = 2;
// @const integer LASTNAME 0 = Not used, 1 = used, 2 = used AND required
const LASTNAME = 2;
// @const integer STREET 0 = Not used, 1 = used, 2 = used AND required
const STREET = 2;
// @const integer ZIP_CODE 0 = Not used, 1 = used, 2 = used AND required
const ZIP_CODE = 2;
// @const integer CITY 0 = Not used, 1 = used, 2 = used AND required
const CITY = 2;
// @const integer COUNTRY 0 = Not used, 1 = used, 2 = used AND required
const COUNTRY = 2;
// @const integer STATE 0 = Not used, 1 = used, 2 = used AND required
const STATE = 2;
// @const integer PHONE 0 = Not used, 1 = used, 2 = used AND required
const PHONE = 2;
// @const integer FAX 0 = Not used, 1 = used, 2 = used AND required
const FAX = 1;
// @const integer MOBILE 0 = Not used, 1 = used, 2 = used AND required
const MOBILE = 1;
// @const integer EMAIL 0 = Not used, 1 = used, 2 = used AND required
const EMAIL = 2;
// @const integer ZIP_CODE_LENGH values 1 to 10
const ZIP_CODE_LENGH = 5;
// @const string DEFAULT_STATE
const DEFAULT_STATE = 'Deutschland';

/****************************************************************************
 * Captcha
 */
Hier muss nichts geändert werden. Die Angaben dienen nur der Anpassung an ein selbst erstelltes Design.
// @const CAPTCHA_ON Set to TRUE to use captcha
const CAPTCHA_ON = TRUE;
// @const CAPTCHA_FONTS Set the value of used fontfiles in module/class/captcha/font
const CAPTCHA_FONTS = 5;
// @const CAPTCHA_WIDTH Width of the captcha-field in pixel
const CAPTCHA_WIDTH = 140;
// @const CAPTCHA_HEIGHT Height of the captcha-field in pixel
const CAPTCHA_HEIGHT = 50;
// @const CAPTCHA_MAX Maximum operand value
const CAPTCHA_MAX = 55;
// @const CAPTCHA_BACKGOUND Backgroundcolor in; format: '#ffff00'
const CAPTCHA_BACKGOUND = '#40e0d0';

/****************************************************************************
 * Don't change the code after this point!
 */
// @const string SUFFIX
const SUFFIX = '';

const SECURE = '1542148735124951';
// @const integer SMTP_DEBUG Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
const SMTP_DEBUG = 0;

Nach der Anpasung der Einträge muss die Datei „demo.config_0.php” in „config_0.php” (bzw. „config_1.php…”) umbenannt werden.


Aktuell

Leider werden in den neueren Versionen von Flyspray Eingriffe in der Serverkonfiguration gefordert. Deren Sinn ist wohl nur dem dem Entwickler bekannt. Bisher lief Flyspray einwandfrei und zur vollsten Zufriedenheit, und jetzt solche Änderungen... Also Flyspray ist auf "normalen" Websites nicht mehr nutzbar und kann nur sicher auf gemieteten VPNs etc. benutzt werden. Für mich ein Eigentor und der Grund mich, nach ca. 12 Jahren der Benutzung, davon zu verabschieden. Im Moment bin ich noch in der Testphase von verschiedenen Bugtrackern.


Noch aktuell

Eine besondere Überraschung kommt in Kürze, zusammen mit der PHP8.x-tauglichen Version!

nach oben