* @version $Id: gui_default.conf.php,v 1.7 2007/09/21 15:49:24 adamfranco Exp $
 */
require_once HARMONI . 'Gui2/GuiManager.class.php';
require_once MYDIR . '/main/library/Gui2/SiteThemeSource.class.php';
require_once MYDIR . '/main/modules/view/SiteDispatcher.class.php';
// :: GUIManager setup ::
define("LOGO_URL", MYPATH . "/images/logo.gif");
$configuration = new ConfigurationProperties();
$configuration->addProperty('database_index', $dbID);
$configuration->addProperty('database_name', $dbName);
$configuration->addProperty('default_theme', 'RoundedCorners');
$configuration->addProperty('character_set', 'utf-8');
$configuration->addProperty('document_type', 'text/html');
$configuration->addProperty('document_type_definition', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
$configuration->addProperty('xmlns', 'http://www.w3.org/1999/xhtml');
// Enable linked theme CSS
$configuration->addProperty('css_url', $harmoni->request->mkURL('gui2', 'theme_css'));
$configuration->addProperty('css_url_theme_property', 'theme');
// Theme sources
$sources = array();
$sources[] = new Segue_Gui2_SiteThemeSource(array('database_index' => $dbID));
// Read-only themes
$sources[] = array('type' => 'directory', 'path' => MYDIR . '/themes-dist');
$sources[] = array('type' => 'directory', 'path' => MYDIR . '/themes-local');
$configuration->addProperty('sources', $sources);
$guiMgr = new Harmoni_Gui2_GuiManager();
$guiMgr->assignConfiguration($configuration);
$guiMgr->assignOsidContext($context);
Services::registerObjectAsService("GUIManager", $guiMgr);
$guiMgr->setHead($guiMgr->getHead() . "\n\t\t\n\t\t<link rel='stylesheet' type='text/css' href='" . MYPATH . "/images/SegueCommon.css' id='SegueCommon'/>\n");
// define('SEGUE_SITE_FOOTER', 'HELLO WORLD');
<?php

/**
 * Set up the HierarchyManager
 *
 * USAGE: Copy this file to hierarchy.conf.php to set custom values.
 *
 * @package segue.config
 * 
 * @copyright Copyright &copy; 2005, Middlebury College
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
 *
 * @version $Id: hierarchy_default.conf.php,v 1.4 2008/04/08 19:43:24 adamfranco Exp $
 */
// :: Set up the Hierarchy Manager ::
$configuration = new ConfigurationProperties();
$configuration->addProperty('database_index', $dbID);
$configuration->addProperty('database_name', $dbName);
$configuration->addProperty('harmoni_db_name', 'segue_db');
try {
    require_once HARMONI . "/oki2/AuthZ2/hierarchy/HierarchyManager.class.php";
    $mgr = new AuthZ2_HierarchyManager();
    $mgr->assignConfiguration($configuration);
    Services::registerObjectAsService("HierarchyManager", $mgr);
} catch (ConfigurationErrorException $e) {
    Services::startManagerAsService("HierarchyManager", $context, $configuration);
}
<?php

/**
 * Set up the AuthorizationManager
 *
 * USAGE: Copy this file to authorization.conf.php to set custom values.
 *
 * @package segue.config
 * 
 * @copyright Copyright &copy; 2005, Middlebury College
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
 *
 * @version $Id: authorization_default.conf.php,v 1.3 2007/09/04 18:00:42 adamfranco Exp $
 */
// :: Set up the Authorization System ::
$configuration = new ConfigurationProperties();
$configuration->addProperty('database_index', $dbID);
$configuration->addProperty('database_name', $dbName);
$configuration->addProperty('harmoni_db_name', 'segue_db');
try {
    require_once HARMONI . "/oki2/AuthZ2/authz/AuthorizationManager.class.php";
    $azMgr = new AuthZ2_AuthorizationManager();
    $azMgr->assignConfiguration($configuration);
    Services::registerObjectAsService("AuthorizationManager", $azMgr);
} catch (ConfigurationErrorException $e) {
    Services::startManagerAsService("AuthorizationManager", $context, $configuration);
    print "<div class='config_error'>" . _("Please run the Segue Updates under Admin Tools") . "</div>";
}
 /**
  * Sets up the services required for the DataManager, including: DataSetTypeManager,
  * DataTypeManager, DataSetManager, RecordTagManager
  * @return void
  * @access public
  * @param int $dbID The DB index from the {@link DBHandler} that we should use to look for our data.
  * @param optional array An array of {@link HarmoniType} objects corresponding to Schemas that should be pre-loaded in one DB query.
  * @abstract
  */
 function setup($dbID, $preloadTypes = null)
 {
     if (ini_get("magic_quotes_runtime")) {
         throwError(new Error("The DataManager requires that the php.ini config option <B>magic_quotes_runtime</B> be OFF.", "DataManager", true));
     }
     // let's setup all our services
     define("DATAMANAGER_DBID", $dbID);
     // ok, now on to registering everything
     $schemaManager = new SchemaManager($preloadTypes);
     $dataTypeManager = new DataTypeManager();
     $recordManager = new RecordManager();
     $tagManager = new RecordTagManager();
     Services::registerObjectAsService("SchemaManager", $schemaManager);
     Services::registerObjectAsService("DataTypeManager", $dataTypeManager);
     Services::registerObjectAsService("RecordManager", $recordManager);
     Services::registerObjectAsService("RecordTagManager", $tagManager);
     if (!Services::serviceRunning("Id")) {
         throwError(new Error("The DataManager requires the IdManager, but it is not running.", "DataManager", true));
     }
     debug::output("Activated Harmoni Data Manager.", DEBUG_SYS1, "DataManager");
 }