// MAHARA CONFIGURATION FILE // // Copy this file from config-dist.php to config.php, and change the values in // it to suit your environment. // // Information about this file is available on the Mahara wiki: // http://wiki.mahara.org/System_Administrator's_Guide/Installing_Mahara#Create_Mahara's_config.php // $cfg = new StdClass(); if (!defined('GC_SYMFONY_LOADED')) { require_once '/var/www/globalclassroom4/lib/model/gcr_model/gcr.class.php'; } if (isset($argv[2])) { $shortname = $argv[2]; if ((defined('GC_SYMFONY_LOADED') && GC_SYMFONY_LOADED) == false) { gcr::loadSymfony(); define('GC_SYMFONY_LOADED', true); } $institution = Doctrine::getTable('GcrInstitution')->findOneByShortName($shortname); GcrInstitutionTable::constructCurrentInstitution($institution); $cfg->dbtype = 'postgres8'; $cfg->dbhost = gcr::DBHostName; $cfg->dbport = gcr::DBPort; $cfg->dbname = gcr::DBName; $cfg->dataroot = gcr::moodledataDir . $shortname; $cfg->dbuser = '******' . $shortname . 'admin'; $cfg->dbpass = $CFG->current_app->getAdminPassword(); $cfg->dbprefix = gcr::maharaPrefix; $cfg->wwwroot = $CFG->current_app->getAppUrl(); define('GC_CRON_RUNNING', true); } else {