www.Tobbivm.de

URL: www.tobbivm.de/?Archiv___TobbiVM___Installation_%28alt%29___2._config.php

2. config.php

Die in der Datei  config.php (als Vorlage dient die Datei demo.config.php) werden die globalen Einstellungen vorgenommen. Diese gelten für alle Shops.

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!
 * Database and domain settings for all Domains
 */
// @const string URL_0 to URL_5 for all shops. Not used
//               are empty = '', with 'http://www.' in lowercase!
const URL_0 = 'http://www.mastershop.de';
const URL_1 = 'http://www.clientshop1.de';  Wenn kein weiterer Shop angelegt werden soll dann in '' ändern.
const URL_2 = '';
const URL_3 = '';
const URL_4 = '';
const URL_5 = '';

Die Einstellungen für die Datenbank bekommst du von deinem Webspace-Anbieter!
// @const string DB_NAME Databasename
const DB_NAME = 'Databasename';
// @const string DB_HOST DB-Adress, mostly 'localhost'
const DB_HOST = 'localhost';
// @const string DB_USER DB-Username
const DB_USER = 'webrootname';
// @const string DB_PASSWORD DB-Password
const DB_PASSWORD = 'db-password';
// @const string DB_PREFIX DB-Präfix - e.g. more than one installation in Database
const DB_PREFIX = '';
An die folgende E-Mail-Adresse werden alle Systemmails gesendet
// @const string ADMIN_EMAIL Email for all systemmails
const ADMIN_EMAIL = 'admin@mastershop';
Mit dieser Firmenbezeichnung kannst du Testbestellungen vornehmen, z. B. um die Formulareinstellungen zu prüfen oder um die Mail-Einstellungen zu prüfen. Es werden dabei keine Änderungen am Warenbestand etc. vorgenommen. Auch hier ein möglichst kompliziertes Wort nehmen um Missbrauch zu vermeiden!
// @ TESTSHOPPER string Password for the testshopper
const TESTSHOPPER = 'TobbisVM-Shop';


Die folgenden Einstellungen sollten nur verändert werden wenn du einen leeren Shop installierst. Nicht verändern wenn du den Demo-Shop, der entsprechende Links beinhaltet, verwendest. Ansonsten musst du alle benutzten Bilder in den Artikeln neu verlinken.
/****************************************************************************
 * Category settings
 */
// @const string CATEGORY_IMAGE_PATH Path to category images
const CATEGORY_IMAGE_PATH = 'category';
// @const string CATEGORY_IMAGE_THUMB_PATH Path to category images Thumbnails
const CATEGORY_IMAGE_THUMB_PATH = 'thumb';

/****************************************************************************
 * Article settings
 */
// @const string ARTICLE_IMAGE_PATH Path to article images
const ARTICLE_IMAGE_PATH = 'article';
// @const string ARTICLE_IMAGE_THUMB_PATH Path to article images Thumbnails
const ARTICLE_IMAGE_THUMB_PATH = 'thumb';

/****************************************************************************
 * Filebrowser settings
 */
// @const string USER_IMAGE_PATH Path to user images
const USER_IMAGE_PATH = 'images/user/';

/****************************************************************************
 * Shop settings
 */
// @const string CURRENCY, Symbol for active Currency
const CURRENCY = ' ';
// @const string CURRENCY_CODE
const CURRENCY_CODE = 'EUR';
// @const boolean USER_LOGIN True if every customer must register
const USER_LOGIN = TRUE;

/****************************************************************************
 * Don't change the code after this point!
 */
// @const string $url Path to tobbivmshop (index.php)
define("URL", "http://" . $_SERVER["HTTP_HOST"]);

if (URL == URL_1)
 include_once 'config_1.php';
elseif (URL == URL_2)
 include_once 'config_2.php';
elseif (URL == URL_3)
 include_once 'config_2.php';
elseif (URL == URL_4)
 include_once 'config_4.php';
elseif (URL == URL_5)
 include_once 'config_5.php';
else
 include_once 'config_0.php';


Nach der Anpasung der Einträge muss die Datei „demo.config.php” in „config.php” umbenannt werden.