<?php

// -- Init -----------------------------------------------------------------------------------------

	// For easy modification
	$site_code	= "ivoclarvivadent";
#	$no_session	= false;
	$oracle_db 	= "ivoclaradmin:ivoclar0adm:plnx";
	$mysql_db	= "root:m@ster@w0rk:localhost:ivoclar2004";
        $bartrack_db = 'root:m@ster@w0rk:twinpeaks.interestate.com:bartrack';
	
	// Absolute Paths
	$globalSettings->general->paths->absolute->troyce		= "/www/troyce/";
	$globalSettings->general->paths->absolute->site			= "/www/site/".$site_code."_nl/";
	$globalSettings->general->paths->absolute->inc			= "/www/site/".$site_code."_nl/inc/";
	$globalSettings->general->paths->absolute->private		= "/www/site/".$site_code."_nl/private/";
	$globalSettings->general->paths->absolute->public		= "/www/site/".$site_code."_nl/public/";
	$globalSettings->general->paths->absolute->templates	= "/www/site/".$site_code."_nl/private/templates/";
	$globalSettings->general->paths->absolute->barcode	= $globalSettings->general->paths->absolute->private."barcodes/";
	$globalSettings->general->paths->absolute->external	= $globalSettings->general->paths->absolute->site."external/";
	$globalSettings->general->paths->absolute->data	= $globalSettings->general->paths->absolute->external."data/";

	// Virtual Paths
	$globalSettings->general->paths->virtual->private		= "/intra/";
	$globalSettings->general->paths->virtual->style			= "/style/";
	$globalSettings->general->paths->virtual->js			= "/javascript/";
	$globalSettings->general->paths->virtual->templates		= "/intra/templates/";
	
	// Page settings
	$globalSettings->general->html->author					= "Martijn Polak & Maarten Schermer - Amgate : info@amgate.com";
	$globalSettings->general->html->copyright				= "© Amgate b.v.".date("Y").": www.amgate.com - info@amgate.com";
	$globalSettings->general->html->title					= "Ivoclar Vivadent";
	$globalSettings->general->html->stylesheets				= $globalSettings->general->paths->virtual->style."style.css";
	$globalSettings->general->html->javascripts				= $globalSettings->general->paths->virtual->js."javascript.js";
	$globalSettings->general->html->xhtmlCompliant			= false;
	
	// Old style (for backwards compatibility)
	$abs_path        										= $globalSettings->general->paths->absolute->site;
	$abs_path_inc    										= $globalSettings->general->paths->absolute->inc;
	$abs_path_troyce										= $globalSettings->general->paths->absolute->troyce;
	$abs_path_tmpl   										= $globalSettings->general->paths->absolute->templates;
	$abs_path_public 										= $globalSettings->general->paths->absolute->public;
	$vir_path_tmpl   										= $globalSettings->general->paths->virtual->templates;
  
// -- Modules --------------------------------------------------------------------------------------
 	
	// Troyce® I3A V2.01
	$globalSettings->ti3a0201->paths->absolute			= $globalSettings->general->paths->absolute->private."ti3a0201/";
	$globalSettings->ti3a0201->paths->virtual			= $globalSettings->general->paths->virtual->private."ti3a0201/";
	$globalSettings->ti3a0201->db->connectionString		= $oracle_db;
	$globalSettings->ti3a0201->db->connectionType		= "O";
	$abs_path_ti3a0201 									= $globalSettings->ti3a0201->paths->absolute;
	$vir_path_ti3a0201 									= $globalSettings->ti3a0201->paths->virtual;
	$db_con_string_ti3a0201 							= $globalSettings->ti3a0201->db->connectionString;
	$page_when_not_authorized 							= "/?p=loginfout";
	$include_user_not_authorized						= "notauthorized.tpl";

	//Language V1.00
	$globalSettings->clng0100->paths->absolute			= $globalSettings->general->paths->absolute->inc."clng0100/";
	$globalSettings->clng0100->paths->virtual			= $globalSettings->general->paths->virtual->private."clng0100/";
	$globalSettings->clng0100->paths->blackbox			= $globalSettings->clng0100->paths->absolute."class.language.php";
	$globalSettings->clng0100->db->connectionString		= $mysql_db;
	$globalSettings->clng0100->db->connectionType		= "M";

	//Navigation V1.00
	$globalSettings->cnav0100->paths->absolute			= $globalSettings->general->paths->absolute->inc."cnav0100/";
	$globalSettings->cnav0100->paths->virtual			= $globalSettings->general->paths->virtual->private."cnav0100/";
	$globalSettings->cnav0100->paths->blackbox			= $globalSettings->cnav0100->paths->absolute."class.navigation.php";
	
	// Store
	$globalSettings->csto0100->paths->absolute			= $globalSettings->general->paths->absolute->inc."csto0100/";
	$globalSettings->csto0100->paths->virtual			= $globalSettings->general->paths->virtual->private."csto0100/";
	$globalSettings->csto0100->paths->blackbox			= $globalSettings->csto0100->paths->absolute."class.store.php";
	$globalSettings->csto0100->db->connectionString		= $mysql_db;
	$globalSettings->csto0100->db->connectionType		= "M";
	$globalSettings->csto0100->barcodePrefix        = '+DIVO';
	$globalSettings->csto0100->barcodePostfix       = 'AN';
	$globalSettings->csto0100->combiTableLink       = '/table.pdf';
        $globalSettings->csto0100->persPriceSalesOrgs = array('3010');
        $globalSettings->csto0100->persPriceDistChannels = array('01');
	
	// Software
	$globalSettings->asft0100->paths->absolute			= $globalSettings->general->paths->absolute->troyce."asft0100/";
	$globalSettings->asft0100->paths->virtual			= $globalSettings->general->paths->virtual->private."asft0100/";
	$globalSettings->asft0100->paths->blackbox			= $globalSettings->asft0100->paths->absolute."class.asft.php";
	$globalSettings->asft0100->db->connectionString		= $bartrack_db;
	$globalSettings->asft0100->db->connectionType		= "M";

	$software[0]["ID"] = 9;
	$software[0]["name"] = 'Bartrack 1.3.18';
	$software[0]["platform"] = 'Microsoft Windows 95/98/NT4';
	$software[1]["ID"] = 10;
	$software[1]["name"] = 'Bartrack 1.3.18';
	$software[1]["platform"] = 'Microsoft Windows ME/2000/XP';
	
// -- Includes -------------------------------------------------------------------------------------

	if ((!$no_session) || ($no_session = null)) {
		session_start();
		require_once $globalSettings->general->paths->absolute->inc."ti3a0201/settings.php";
		require_once 'class.tplhtml.php';
		
	}

 	$globalSettings->general->smarty->clear                                 = true;
 	$globalSettings->general->smarty->cache                                 = false; 

?>
