<?php

/**

 * Magento

 *

 * NOTICE OF LICENSE

 *

 * This source file is subject to the Open Software License (OSL 3.0)

 * that is bundled with this package in the file LICENSE.txt.

 * It is also available through the world-wide-web at this URL:

 * http://opensource.org/licenses/osl-3.0.php

 * If you did not receive a copy of the license and are unable to

 * obtain it through the world-wide-web, please send an email

 * to license@magentocommerce.com so we can send you a copy immediately.

 *

 * DISCLAIMER

 *

 * Do not edit or add to this file if you wish to upgrade Magento to newer

 * versions in the future. If you wish to customize Magento for your

 * needs please refer to http://www.magentocommerce.com for more information.

 *

 * @category   Mage

 * @package    Mage

 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)

 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

 */

if (version_compare(phpversion(), '5.2.0', '<') === true) {

	echo '<div style="font:12px/1.35em arial, helvetica, sans-serif;">

<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
<h3 style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">
Whoops, it looks like you have an invalid PHP version.</h3></div><p>Magento supports PHP 5.2.0 or newer.
<a href="http://www.magentocommerce.com/install" target="">Find out</a> how to install</a>
 Magento using PHP-CGI as a work-around.</p></div>';
	exit ;

}

/**

 * Error reporting

 */

error_reporting(E_ALL | E_STRICT);

/**

 * Compilation includes configuration file

 */

define('MAGENTO_ROOT', getcwd());

$compilerConfig = MAGENTO_ROOT . '/includes/config.php';

if (file_exists($compilerConfig)) {

	include $compilerConfig;

}

$mageFilename = MAGENTO_ROOT . '/app/Mage.php';

$maintenanceFile = 'maintenance.flag';

if (!file_exists($mageFilename)) {

	if (is_dir('downloader')) {

		header("Location: downloader");

	} else {

		echo $mageFilename . " was not found";

	}

	exit ;

}

if (file_exists($maintenanceFile)) {

	include_once dirname(__FILE__) . '/errors/503.php';

	exit ;

}

require_once $mageFilename;

#Varien_Profiler::enable();

if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {

	Mage::setIsDeveloperMode(true);

}

ini_set('display_errors', 1);

umask(0);

switch($_SERVER['HTTP_HOST']) {

	# PartyLite

	case 'partylite.odd.de' :
		Mage::run('partylite', 'website');

		break;

	# EKHN

	case 'ekhn.odd.de' :
		Mage::run('ekhn', 'website');

		break;

	# EKHN www

	case 'www.ekhn.odd.de' :
		Mage::run('ekhn', 'website');

		break;

	# TECHNOGROUP

	/*case 'webshop.technogroup.com' :
		Mage::run('technogroup', 'website');

		break;

	# TECHNOGROUP www

	case 'www.webshop.technogroup.com' :
		Mage::run('technogroup', 'website');

		break;
		*/

	# FUCHS LUBRITECH

	case 'fuchs.odd.de' :
		Mage::run('fuchs', 'website');

		break;

	# odd Printshop

	case 'printshop.odd.de' :
		Mage::run('odd_printshop', 'website');

		break;

	# Stadtwerke

	case 'stadtwerke.odd.de' :
		Mage::run('stadtwerke', 'website');

		break;

	# URANO

	case 'urano.odd.de' :
		Mage::run('urano', 'website');

		break;

	# VIBRACOUSTIC

/* 	case 'vibracoustic.odd.de' :
		Mage::run('vibracoustic', 'website');

		break; */

	# SCHOTT

	case 'schott.odd-wehosting.de' :
		Mage::run('schott', 'website');

		break;

	# CGM

	case 'www.cgm-printshop.de' :
		Mage::run('cgm', 'website');

		break;

	case 'cgm-printshop.de' :
		Mage::run('cgm', 'website');

		break;

	# RKW

	case 'rkw.odd.de' :
		Mage::run('rkw', 'website');

		break;

	#Odd Demoshop

	case 'demoshop.odd.de' :
		Mage::run('odd_demoshop', 'website');

		break;

	# Papier Mettler

	case 'mettler.odd.de' :
		Mage::run('mettler', 'website');

		break;

	#ENERGETIX Bingen

	case 'printshop.energetix.tv' :
		Mage::run('energetix', 'website');

		break;

	#Arnold Glas

	case 'arnoldglas.odd.de' :
		Mage::run('arnoldglas', 'website');

		break;

	#VAPIANO

	case 'vapiano.odd.de' :
		Mage::run('vapiano', 'website');

		break;

	#VORWERK

	case 'thermomix-printshop.at' :
		Mage::run('thermomix_at', 'website');

		break;

	case 'www.thermomix-printshop.at' :
		Mage::run('thermomix_at', 'website');

		break;

	case 'vorwerk-printshop.at' :
		Mage::run('thermomix_at', 'website');

		break;

	case 'www.vorwerk-printshop.at' :
		Mage::run('thermomix_at', 'website');

		break;

	#Konica Minolta

	//case 'km-shop.odd.de' :
		//Mage::run('konicaminolta', 'website');

		//break;

	#LOSTERIA

	case 'www.losteria-marketingportal.de' :
		Mage::run('losteria', 'website');

		break;

	#GZRM

	case 'gzrm.odd.de' :
		Mage::run('gzrm', 'website');

		break;

	#Optik Delker EOL

	case 'shoptransfer.odd.de' :
		Mage::run('delker_optik', 'website');

		break;
	
	
	# OMYA

	case 'omya.odd-webhosting.de' :
		Mage::run('omya', 'website');

		break;

	# SIMONA

	case 'simona-marketingportal.de' :
		Mage::run('sim', 'website');

		break;

	#Smartreak

	case 'shop.smartreak.com' :
		Mage::run('smartreak', 'website');

		break;

	#SofortPlakate

	case 'sofort-plakate.de' :
		Mage::run('sop', 'website');

		break;

	#DGV

	case 'dgv.odd.de' :
		Mage::run('dgv', 'website');

		break;

	#WUK

	case 'wuk.odd-webhosting.de' :
		Mage::run('wuk', 'website');

		break;

	#Fuchs Schmierstoffe

	case 'fuchs-printshop.de' :
		Mage::run('fuchs_schmierstoffe', 'website');

		break;

	#BVF

	case 'bvf.odd.de' :
		Mage::run('bvf', 'website');

		break;

	/*
	#Pampered Chef

	case 'pamperedchef.odd.de' :
		Mage::run('pampered_chef', 'website');

		break;
	*/

	# Transgourmet - DEV

	case 'www.transgourmet-w2p.de' :
		Mage::run('transgourmet', 'website');

		break;


	/* ########## DEV ##########*/
	

	#QDEV Shop

	case 'qdev.odd.de' :
		Mage::run('qdev', 'website');

		break;
		
	#DePex-Pro.de  DEV

	case 'www.depex-pro.de' :
		Mage::run('depexpro', 'website');

		break;

	#Faltschachtelmeister DEV

#	case 'faltschachtelmeister.de' :
#		Mage::run('faltschachtelmeister', 'website');

#		break;

	#Printmeister DEV
	case 'printmeister.odd-webhosting.de' :
		Mage::run('printmeister', 'website');
		break;

	#EMS

	case 'ems.odd.de' :
		Mage::run('ems', 'website');

		break;

	case 'flp-printshop.de' :
		Mage::run('flp', 'website');

		break;

	case 'www.flp-printshop.de' :
		Mage::run('flp', 'website');

		break;

	#20160903 - PJ TEST

	case '20160930-pj.your-printq.com' :
		Mage::run('pj_test_20160903', 'website');

		break;


	#VDI

	case 'vdi.odd-webhosting.de' :
		Mage::run('vdi', 'website');

		break;



	case 'www.vdi-serviceportal.de' :
		Mage::run('vdi', 'website');
	
		break;
	
	

	#HAG

	case 'hahnautomationgroup.odd.de' :
		Mage::run('hag', 'website');

		break;


		case 'hahnautomation.odd.de' :
			Mage::run('hag', 'website');
	
			break;
	
	
	#SOD

		case 'shop.de.sodexonet.com' :
			Mage::run('sod', 'website');
	
			break;

	#odd

	default :
		Mage::run();
}

/* Store or website code

 $mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';

 /* Run store or run website

 $mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';

 Mage::run($mageRunCode, $mageRunType);

 */
