<?php

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

	// For easy modification
	$site_code 				= "ifosworld_org";
	$oracle_db 				= "ifosadmin:ifos0adm:plnx";
	$mysql_db				= "root:m@ster@w0rk:mysqlserver2.amgate.com:ifosworld";

	// Absolute Paths
	$globalSettings->general->paths->absolute->troyce		= "/www/troyce/";
	$globalSettings->general->paths->absolute->site			= "/www/site/".$site_code."/";
	$globalSettings->general->paths->absolute->inc			= "/www/site/".$site_code."/inc/";
	$globalSettings->general->paths->absolute->private		= "/www/site/".$site_code."/private/";
	$globalSettings->general->paths->absolute->public		= "/www/site/".$site_code."/public/";
	$globalSettings->general->paths->absolute->templates	= "/www/site/".$site_code."/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					= " - Amgate : info@amgate.com";
	$globalSettings->general->html->copyright				= "Š Amgate b.v.".date("Y").": www.amgate.com - info@amgate.com";
	$globalSettings->general->html->title					= "IFOS World";
	$globalSettings->general->html->stylesheets				= $globalSettings->general->paths->virtual->style."screen.css";
	$globalSettings->general->html->javascripts				= $globalSettings->general->paths->virtual->js."javascript.js";
	$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					= '7328';
	$globalSettings->general->project->languageCode			= "nl";
	$globalSettings->general->project->hostname				= "www.ifosworld.org";
	$globalSettings->general->project->mainOrganizationID	= 1;

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

	// 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		= 'O';
	$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		= "O";
	$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		= 'M';
	$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		= "M";
	$globalSettings->tdyp0207->interchangeVersion		= 'tich0105';
	$globalSettings->tdyp0207->trackHistory				= ($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		= "M";
	$globalSettings->tich0105->db->connectionMymanager	= "mymanageradmin:mymanager0adm:plnx";
	$globalSettings->tich0105->trackHistory				= ($no_history ? false : true);

	//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		= "M";
		
	// 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		= "M";
	$globalSettings->tage0303->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] -----------------------------------------------------------------------------

// -- Custom Session Handler [Required when using Interchange blocks] --------------------------------------------

	require 'class.sessionhandler_v1_0.php';
	$g_obj_session = new sessionHandler();

	// Used to write current session data before parsing a block
	function session_write() {
		global $g_obj_session;
		$g_obj_session->commit();
	}

	error_reporting(E_ALL);

?>