<?php

	// P3P compact platform privacy policy:
	// nonident disputes correct non-identifiable current[always] ours no-retention content
	Header( "P3P: CP=\"NOI DSP COR NID CURa OUR NOR CNT\"\r\n\r\n");

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

	require_once 'class.tplhtml_v2_0.php';
	require_once 'class.dbconnection_v1_0.php';

	// For easy modification
	$site_code 				= "rva";
	$oracle_db 				= $site_code."admin:".$site_code."0adm:plnx";
	$mysql_db				= "root:m@ster@w0rk:mysqlserver2.amgate.com:".$site_code;

	// 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/templates/";

	// 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					= "JS / TA / PvdW - Amgate : info@amgate.com";
	$globalSettings->general->html->copyright				= "Š Amgate b.v.".date("Y").": www.amgate.com - info@amgate.com";
	$globalSettings->general->html->title					= "Raad voor Accreditatie";
	$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->doctype					= DOCTYPE_STRICT;
	$globalSettings->general->html->xhtmlCompliant			= false;

	// Smarty settings
	$globalSettings->general->smarty->filters->truncate		= true;		// Remove all newlines, carriage returns and tabs from the template source
	$globalSettings->general->smarty->clear					= false;	// Clear all compiled templates before displaying
	$globalSettings->general->smarty->cache					= false;	// Cache compiled templates
	$globalSettings->general->smarty->use_sub_dirs			= false;	// Use subdirectories when caching templates

	// Plugins
	$globalSettings->general->plugins->init					= $globalSettings->general->paths->absolute->inc."general/init.php";

	// Project settings
	$globalSettings->general->project->code					= '10218';
	$globalSettings->general->project->languageCode			= "nl";
	$globalSettings->general->project->hostname				= "rva.nl";
	$globalSettings->general->project->mainOrganizationID	= 1;

// -- Modules [NEW] --------------------------------------------------------------------------------

	// TroyceŽ Agenda 3.03
	$globalSettings->tage0303->paths->ddi				= $globalSettings->general->paths->absolute->troyce."tage0303/class.tage.php";
	$globalSettings->tage0303->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tage0303/";
	$globalSettings->tage0303->paths->virtual			= $globalSettings->general->paths->absolute->troyce."tage0303/";
	$globalSettings->tage0303->paths->templates			= $globalSettings->general->paths->absolute->templates."tage0303/";
	$globalSettings->tage0303->db->connectionString		= $mysql_db;
	$globalSettings->tage0303->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tage0303->interchangeVersion		= 'tich0105';

	// TroyceŽ I3A V3.65
	$globalSettings->ti3a0365->paths->absolute			= $globalSettings->general->paths->absolute->troyce."ti3a0365/";
	$globalSettings->ti3a0365->paths->virtual			= $globalSettings->general->paths->absolute->troyce."mod_bin/ti3a0365/";
	$globalSettings->ti3a0365->paths->ddi				= $globalSettings->ti3a0365->paths->absolute."class.ti3a.php";
	$globalSettings->ti3a0365->db->connectionString		= $oracle_db;
	$globalSettings->ti3a0365->db->connectionType		= DB_TYPE_ORACLE;
	$globalSettings->ti3a0365->checkMembership			= true;
	$globalSettings->ti3a0365->interchangeVersion		= 'tich0105';

	// TroyceŽ TECC V3.00
	$globalSettings->tecc0300->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tecc0300/";
	$globalSettings->tecc0300->paths->virtual			= $globalSettings->general->paths->absolute->troyce."mod_bin/tecc0300/";
	$globalSettings->tecc0300->paths->ddi				= $globalSettings->tecc0300->paths->absolute."class.tecc.php";
	$globalSettings->tecc0300->db->connectionString		= $oracle_db;
	$globalSettings->tecc0300->db->connectionType		= DB_TYPE_ORACLE;
	$globalSettings->tecc0300->interchangeVersion		= 'tich0105';

	// TroyceŽ Dynamic Navigation 3.02
	$globalSettings->tdyn0302->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tdyn0302/";
	$globalSettings->tdyn0302->paths->ddi				= $globalSettings->tdyn0302->paths->absolute."class.tdyn.php";
	$globalSettings->tdyn0302->db->connectionString		= $mysql_db;
	$globalSettings->tdyn0302->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tdyn0302->interchangeVersion		= 'tich0105';

	// TroyceŽ Content Editor 2.07
	$globalSettings->tdyp0207->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tdyp0207/";
	$globalSettings->tdyp0207->paths->ddi				= $globalSettings->tdyp0207->paths->absolute."class.tdyp.php";
	$globalSettings->tdyp0207->db->connectionString		= $mysql_db;
	$globalSettings->tdyp0207->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tdyp0207->interchangeVersion		= 'tich0105';
	$globalSettings->tdyp0207->trackHistory				= (isset($no_history) && $no_history ? false : true);

	// TroyceŽ Interchange 1.05
	$globalSettings->tich0105->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tich0105/";
	$globalSettings->tich0105->paths->ddi				= $globalSettings->tich0105->paths->absolute."class.interchange.php";
	$globalSettings->tich0105->paths->virtual->uri		= "/uri/";
	$globalSettings->tich0105->paths->virtual->uli		= "/uli/";
	$globalSettings->tich0105->db->connectionString		= $mysql_db;
	$globalSettings->tich0105->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tich0105->db->connectionMymanager	= "mymanageradmin:mymanager0adm:plnx";
	$globalSettings->tich0105->trackHistory				= (isset($no_history) && $no_history ? false : true);

	// TroyceŽ Personal Publishing V3.05
	$globalSettings->tppu0305->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tppu0305/";
	$globalSettings->tppu0305->paths->ddi				= $globalSettings->tppu0305->paths->absolute."class.tppu.php";
	$globalSettings->tppu0305->db->connectionString		= $mysql_db;
	$globalSettings->tppu0305->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tppu0305->trackHistory				= (isset($no_history) && $no_history ? false : true);
	$globalSettings->tppu0305->interchangeVersion		= 'tich0105';

	// TroyceŽ Forum V2.08
	$globalSettings->tfor0208->paths->ddi				= $globalSettings->general->paths->absolute->troyce."tfor0208/class.tfor.php";
	$globalSettings->tfor0208->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tfor0208/";
	$globalSettings->tfor0208->paths->virtual			= $globalSettings->general->paths->absolute->troyce."tfor0208/";
	$globalSettings->tfor0208->db->connectionString		= $mysql_db;
	$globalSettings->tfor0208->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tfor0208->interchangeVersion		= 'tich0105';
	$globalSettings->tfor0208->trackHistory				= true;

	//TroyceŽ Mailing V3.00
	$globalSettings->tmai0300->paths->ddi				= $globalSettings->general->paths->absolute->troyce."tmai0300/class.tmai.php";
	$globalSettings->tmai0300->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tmai0300/";
	$globalSettings->tmai0300->paths->virtual			= $globalSettings->general->paths->virtual->private."tmai0300/";
	$globalSettings->tmai0300->db->connectionString		= $mysql_db;
	$globalSettings->tmai0300->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tmai0300->interchangeVersion		= 'tich0105';

	//TroyceŽ Reaction V3.06
	$globalSettings->trea0306->paths->absolute			= $globalSettings->general->paths->absolute->troyce."trea0306/";
	$globalSettings->trea0306->paths->virtual			= $globalSettings->general->paths->virtual->private."trea0306/";
	$globalSettings->trea0306->paths->ddi				= $globalSettings->trea0306->paths->absolute."class.trea.php";
	$globalSettings->trea0306->interchangeVersion		= 'tich0105';
	$globalSettings->trea0306->db->connectionString		= $mysql_db;
	$globalSettings->trea0306->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->trea0306->trackHistory				= true;

	// Troyce Survey 4.03
	$globalSettings->tsur0403->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tsur0403/";
	$globalSettings->tsur0403->paths->ddi				= $globalSettings->tsur0403->paths->absolute."class.tsur.php";
	$globalSettings->tsur0403->paths->virtual			= $globalSettings->general->paths->virtual->private."tsur0403/";
	$globalSettings->tsur0403->db->connectionString		= $mysql_db;
	$globalSettings->tsur0403->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tsur0403->interchangeVersion		= 'tich0105';

	// TroyceŽ Web Guide V4.01
	$globalSettings->tweg0404->paths->ddi				= $globalSettings->general->paths->absolute->troyce."tweg0404/class.tweg.php";
	$globalSettings->tweg0404->paths->absolute			= $globalSettings->general->paths->absolute->troyce."tweg0404/";
	$globalSettings->tweg0404->paths->virtual			= $globalSettings->general->paths->absolute->troyce."tweg0404/";
	$globalSettings->tweg0404->db->connectionString		= $mysql_db;
	$globalSettings->tweg0404->db->connectionType		= DB_TYPE_MYSQL;
	$globalSettings->tweg0404->interchangeVersion		= 'tich0105';

	//TroyceŽ Management Information V3.00
	$globalSettings->tsta0300->paths->ddi                   = $globalSettings->general->paths->absolute->troyce."tsta0300/class.tsta.php";
	$globalSettings->tsta0300->paths->absolute              = $globalSettings->general->paths->absolute->troyce."tsta0300/";
	$globalSettings->tsta0300->paths->virtual               = $globalSettings->general->paths->virtual->private."tsta0300/";    
	$globalSettings->tsta0300->interchangeVersion           = 'tich0105';   
	$globalSettings->tsta0300->db->connectionString         = $mysql_db;
	$globalSettings->tsta0300->db->connectionType           = "M";          
	$globalSettings->tsta0300->db->connectionMymanager      = "mymanageradmin:mymanager0adm:plnx";


// -- Modules [CUSTOM] -----------------------------------------------------------------------------

	// cins0100
	$globalSettings->cins0100->paths->ddi				= $globalSettings->general->paths->absolute->inc.'cins0100/class.cins0100.php';
	$globalSettings->cins0100->db->connectionString		= "root:m@ster@w0rk:mysqlserver2.amgate.com:rva_v1";
 	$globalSettings->cins0100->db->connectionType		= DB_TYPE_MYSQL;
 	$globalSettings->cins0100->trackHistory    			= true;

 	// cins0200
	$globalSettings->cins0200->paths->ddi				= $globalSettings->general->paths->absolute->inc.'cins0200/class.cins0200.php';
	$globalSettings->cins0200->db->connectionString		= $mysql_db;
 	$globalSettings->cins0200->db->connectionType		= DB_TYPE_MYSQL;
  	$globalSettings->cins0200->trackHistory    			= true;
	$globalSettings->cins0200->interchangeVersion		= 'tich0105';

	//Screens V1.00
 	$globalSettings->cscr0100->paths->ddi     = "class.screens_v1_0.php";
 	$globalSettings->cscr0100->db->connectionString   = $mysql_db;
 	$globalSettings->cscr0100->db->connectionType   = 'M';

?>
